From: David Miller <davem@davemloft.net>
To: ykaneko0929@gmail.com
Cc: netdev@vger.kernel.org, horms@verge.net.au,
magnus.damm@gmail.com, linux-sh@vger.kernel.org
Subject: Re: [PATCH v2] sh_eth: Fix skb alloc size and alignment adjust rule.
Date: Fri, 21 Nov 2014 15:05:44 -0500 (EST) [thread overview]
Message-ID: <20141121.150544.2240809721107766779.davem@davemloft.net> (raw)
In-Reply-To: <1416479721-23089-1-git-send-email-ykaneko0929@gmail.com>
From: Yoshihiro Kaneko <ykaneko0929@gmail.com>
Date: Thu, 20 Nov 2014 19:35:21 +0900
> From: Mitsuhiro Kimura <mitsuhiro.kimura.kc@renesas.com>
>
> 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 <mitsuhiro.kimura.kc@renesas.com>
> Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
> ---
>
> The previous version of this patch was a part of the patch series as follows:
> [PATCH 2/3] sh_eth: Fix skb alloc size and alignment adjust rule.
>
> This series is based on net tree.
>
> v2 [Yoshihiro Kaneko]
> * Update as suggested by Sergei Shtylyov
> - Fixed the coding style
> - Corrected the comment
> - Removed {SH2_SH3|SH4}_SKB_RX_ALIGN
Please compile test your changes on 64-bit platforms:
drivers/net/ethernet/renesas/sh_eth.c: In function ‘sh_eth_set_receive_align’:
drivers/net/ethernet/renesas/sh_eth.c:922:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
next prev parent reply other threads:[~2014-11-21 20:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-20 10:35 [PATCH v2] sh_eth: Fix skb alloc size and alignment adjust rule Yoshihiro Kaneko
2014-11-21 20:05 ` David Miller [this message]
2014-11-27 11:26 ` Yoshihiro Kaneko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141121.150544.2240809721107766779.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=horms@verge.net.au \
--cc=linux-sh@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=ykaneko0929@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox