Message ID | 20240620152312.1032323-1-nnac123@linux.ibm.com (mailing list archive) |
---|---|
Headers | show |
Series | ibmvnic: Fix TX skb leak after device reset | expand |
Hello: This series was applied to netdev/net.git (main) by David S. Miller <davem@davemloft.net>: On Thu, 20 Jun 2024 10:23:10 -0500 you wrote: > These 2 patches focus on resolving a possible skb leak after > a subset of the ibmvnic reset processes. > > Essentially, the driver maintains a free_map which contains indexes to a > list of tracked skb's addresses on xmit. Due to a mistake during reset, > the free_map did not accurately map to free indexes in the skb list. > This resulted in a leak in skb because the index in free_map was blindly > trusted to contain a NULL pointer. So this patchset addresses 2 issues: > 1. We shouldn't blindly trust our free_map (lets not do this again) > 2. We need to ensure that our free_map is accurate in the first place > > [...] Here is the summary with links: - [net,1/2] ibmvnic: Add tx check to prevent skb leak (no matching commit) - [net,2/2] ibmvnic: Free any outstanding tx skbs during scrq reset https://git.kernel.org/netdev/net/c/49bbeb5719c2 You are awesome, thank you!
Hello: This series was applied to netdev/net.git (main) by Paolo Abeni <pabeni@redhat.com>: On Thu, 20 Jun 2024 10:23:10 -0500 you wrote: > These 2 patches focus on resolving a possible skb leak after > a subset of the ibmvnic reset processes. > > Essentially, the driver maintains a free_map which contains indexes to a > list of tracked skb's addresses on xmit. Due to a mistake during reset, > the free_map did not accurately map to free indexes in the skb list. > This resulted in a leak in skb because the index in free_map was blindly > trusted to contain a NULL pointer. So this patchset addresses 2 issues: > 1. We shouldn't blindly trust our free_map (lets not do this again) > 2. We need to ensure that our free_map is accurate in the first place > > [...] Here is the summary with links: - [net,1/2] ibmvnic: Add tx check to prevent skb leak https://git.kernel.org/netdev/net/c/0983d288caf9 - [net,2/2] ibmvnic: Free any outstanding tx skbs during scrq reset (no matching commit) You are awesome, thank you!