Re: [net] ixgbe: fix crash in build_skb Rx code path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jeff Kirsher <jeffrey.t.kirsher@xxxxxxxxx>
Date: Fri, 23 Feb 2018 12:39:41 -0800

> From: Emil Tantilov <emil.s.tantilov@xxxxxxxxx>
> 
> 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")
> CC: stable <stable@xxxxxxxxxxxxxxx>
> Reported-by: Ambarish Soman <asoman@xxxxxxxxxx>
> Suggested-by: Alexander Duyck <alexander.h.duyck@xxxxxxxxx>
> Signed-off-by: Emil Tantilov <emil.s.tantilov@xxxxxxxxx>
> Tested-by: Andrew Bowers <andrewx.bowers@xxxxxxxxx>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@xxxxxxxxx>

Applied, thanks Jeff.



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]