[Intel-wired-lan] [PATCH net v2] i40e/i40evf: proper update of the page_offset field
Bowers, AndrewX
andrewx.bowers at intel.com
Thu May 25 18:18:06 UTC 2017
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Björn Töpel
> Sent: Sunday, May 14, 2017 9:52 PM
> To: netdev at vger.kernel.org; intel-wired-lan at lists.osuosl.org
> Cc: Topel, Bjorn <bjorn.topel at intel.com>
> Subject: [Intel-wired-lan] [PATCH net v2] i40e/i40evf: proper update of the
> page_offset field
>
> From: Björn Töpel <bjorn.topel at intel.com>
>
> In f8b45b74cc62 ("i40e/i40evf: Use build_skb to build frames")
> i40e_build_skb updates the page_offset field with an incorrect offset, which
> can lead to data corruption. This patch updates page_offset correctly, by
> properly setting truesize.
>
> Note that the bug only appears on architectures where PAGE_SIZE is
> 8192 or larger.
>
> Fixes: f8b45b74cc62 ("i40e/i40evf: Use build_skb to build frames")
> Signed-off-by: Björn Töpel <bjorn.topel at intel.com>
> ---
> drivers/net/ethernet/intel/i40e/i40e_txrx.c | 3 ++-
> drivers/net/ethernet/intel/i40evf/i40e_txrx.c | 3 ++-
> 2 files changed, 4 insertions(+), 2 deletions(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list