mbox series

[net,v2,0/2] Fix use-after-free after the TLS device goes down and up

Message ID 20210601120800.2177503-1-maximmi@nvidia.com (mailing list archive)
Headers show
Series Fix use-after-free after the TLS device goes down and up | expand

Message

Maxim Mikityanskiy June 1, 2021, 12:07 p.m. UTC
This small series fixes a use-after-free bug in the TLS offload code.
The first patch is a preparation for the second one, and the second is
the fix itself.

v2 changes:

Remove unneeded EXPORT_SYMBOL_GPL.

Maxim Mikityanskiy (2):
  net/tls: Replace TLS_RX_SYNC_RUNNING with RCU
  net/tls: Fix use-after-free after the TLS device goes down and up

 include/net/tls.h             | 10 +++++-
 net/tls/tls_device.c          | 60 ++++++++++++++++++++++++++++-------
 net/tls/tls_device_fallback.c |  7 ++++
 net/tls/tls_main.c            |  1 +
 4 files changed, 66 insertions(+), 12 deletions(-)

Comments

Jakub Kicinski June 1, 2021, 9:57 p.m. UTC | #1
On Tue, 1 Jun 2021 15:07:58 +0300 Maxim Mikityanskiy wrote:
> This small series fixes a use-after-free bug in the TLS offload code.
> The first patch is a preparation for the second one, and the second is
> the fix itself.

Acked-by: Jakub Kicinski <kuba@kernel.org>
patchwork-bot+netdevbpf@kernel.org June 1, 2021, 11:30 p.m. UTC | #2
Hello:

This series was applied to netdev/net.git (refs/heads/master):

On Tue, 1 Jun 2021 15:07:58 +0300 you wrote:
> This small series fixes a use-after-free bug in the TLS offload code.
> The first patch is a preparation for the second one, and the second is
> the fix itself.
> 
> v2 changes:
> 
> Remove unneeded EXPORT_SYMBOL_GPL.
> 
> [...]

Here is the summary with links:
  - [net,v2,1/2] net/tls: Replace TLS_RX_SYNC_RUNNING with RCU
    https://git.kernel.org/netdev/net/c/05fc8b6cbd4f
  - [net,v2,2/2] net/tls: Fix use-after-free after the TLS device goes down and up
    https://git.kernel.org/netdev/net/c/c55dcdd435aa

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html