[Intel-wired-lan] [PATCH] ixgbe: fix crash in build_skb Rx code path
Bowers, AndrewX
andrewx.bowers at intel.com
Mon Feb 12 17:47:34 UTC 2018
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Emil Tantilov
> Sent: Wednesday, February 7, 2018 2:23 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH] ixgbe: fix crash in build_skb Rx code path
>
> Add check for build_skb enabled ring in ixgbe_dma_sync_frag().
> In that case &skb_shinfo(skb)->frags[0] may not always be set which can
> lead to a crash. Instead we derive the page offset from skb->data.
>
> Fixes: 42073d91a214
> ("ixgbe: Have the CPU take ownership of the buffers sooner")
> Reported-by: Ambarish Soman <asoman at redhat.com>
> Suggested-by: Alexander Duyck <alexander.h.duyck at intel.com>
> Signed-off-by: Emil Tantilov <emil.s.tantilov at intel.com>
> ---
> drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list