Patch "i40e/i40evf: Fix use after free in Rx cleanup path" has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
i40e/i40evf: Fix use after free in Rx cleanup path
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
i40e-i40evf-fix-use-after-free-in-rx-cleanup-path.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Sun Mar 18 16:55:33 CET 2018
From: Alexander Duyck <[email protected]>
Date: Tue, 21 Feb 2017 15:55:41 -0800
Subject: i40e/i40evf: Fix use after free in Rx cleanup path
From: Alexander Duyck <[email protected]>
[ Upstream commit 741b8b832a57402380be79d7d11a59eaf57fff3b ]
We need to reset skb back to NULL when we have freed it in the Rx cleanup path. I found one spot where this wasn't occurring so this patch fixes it.
--- drivers/net/ethernet/intel/i40e/i40e_txrx.c | 1 + drivers/net/ethernet/intel/i40evf/i40e_txrx.c | 1 + 2 files changed, 2 insertions(+)
drivers/net/ethernet/intel/i40e/i40e_txrx.c +1 -0
@@ -1820,6 +1820,7 @@ static int i40e_clean_rx_irq(struct i40e*/ if (unlikely (i40e_test_staterr (rx_desc,BIT (I40E_RXD_QW1_ERROR_SHIFT )))) {dev_kfree_skb_any (skb); + skb =NULL ;continue ; }
drivers/net/ethernet/intel/i40evf/i40e_txrx.c +1 -0
@@ -1262,6 +1262,7 @@ static int i40e_clean_rx_irq(struct i40e*/ if (unlikely (i40e_test_staterr (rx_desc,BIT (I40E_RXD_QW1_ERROR_SHIFT )))) {dev_kfree_skb_any (skb); + skb =NULL ;continue ; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/i40e-i40evf-fix-use-after-free-in-rx-cleanup-path.patch