From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Subject: Re: [PATCH] can: Use correct type in sizeof() in nla_put() Date: Fri, 30 Oct 2015 15:01:28 +0100 Message-ID: <201510301501.28536.marex@denx.de> References: <1446209299-6250-1-git-send-email-marex@denx.de> <5633734A.3040504@pengutronix.de> Mime-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: linux-can@vger.kernel.org, Wolfgang Grandegger , netdev@vger.kernel.org To: "Marc Kleine-Budde" Return-path: Received: from mail-out.m-online.net ([212.18.0.9]:51292 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031335AbbJ3OBd (ORCPT ); Fri, 30 Oct 2015 10:01:33 -0400 In-Reply-To: <5633734A.3040504@pengutronix.de> Sender: netdev-owner@vger.kernel.org List-ID: On Friday, October 30, 2015 at 02:40:26 PM, Marc Kleine-Budde wrote: > On 10/30/2015 01:48 PM, Marek Vasut wrote: > > The sizeof() is invoked on an incorrect variable, likely due to some > > copy-paste error, and this might result in memory corruption. Fix this. > > > > Signed-off-by: Marek Vasut > > Cc: Wolfgang Grandegger > > Cc: Marc Kleine-Budde > > Cc: netdev@vger.kernel.org > > Applies to can and added stable on Cc. Are you absolutelly positive this doesn't break kernel ABI please ? I am a little worried there, since the size of can_clock and can_ctrlmode structures differ. Best regards, Marek Vasut