From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Date: Sun, 30 Nov 2014 05:12:12 +0000 Subject: Re: [PATCH v3] sh_eth: Fix skb alloc size and alignment adjust rule. Message-Id: <20141129.211212.2189096129383310983.davem@davemloft.net> List-Id: References: <1417088040-32144-1-git-send-email-ykaneko0929@gmail.com> In-Reply-To: <1417088040-32144-1-git-send-email-ykaneko0929@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ykaneko0929@gmail.com Cc: netdev@vger.kernel.org, horms@verge.net.au, magnus.damm@gmail.com, linux-sh@vger.kernel.org From: Yoshihiro Kaneko Date: Thu, 27 Nov 2014 20:34:00 +0900 > From: Mitsuhiro Kimura > > In the current driver, allocation size of skb does not care the alignment > adjust after allocation. > And also, in the current implementation, buffer alignment method by > sh_eth_set_receive_align function has a bug that this function displace > buffer start address forcedly when the alignment is corrected. > In the result, tail of the skb will exceed allocated area and kernel panic > will be occurred. > This patch fix this issue. > > Signed-off-by: Mitsuhiro Kimura > Signed-off-by: Yoshihiro Kaneko Applied.