diff options
| author | Jaeyeong Lee <lee@jaeyeong.cc> | 2026-11-12 04:32:17 +0000 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-11-17 15:47:36 +0100 |
| commit | 81c8333141b9aa465d98bb4c035284556e699701 (patch) | |
| tree | 3e861fa4d213ecb96e3f49f5426ed39f81b5843f /tools/perf/scripts/python/bin | |
| parent | 8868b79a430e626ad72b11d355514bed34cbb8b9 (diff) | |
net/tls: serialize context removal in tls_device_down()
tls_device_down() moves each context to tls_device_down_list while
holding tls_device_lock. It then drops its reference and removes the
context after releasing the lock.
tls_device_queue_ctx_destruction() removes contexts from the same list
under tls_device_lock. If it removes an adjacent context while
tls_device_down() is deleting its node, the two list updates can
interleave. One update can then target a context freed by the other path,
causing a use-after-free write.
Drop the reference and remove the context in the existing
tls_device_lock critical section. Keep tls_device_free_ctx() after
releasing the lock.
This issue was found with a static analysis tool.
Fixes: f6336724a4d4 ("net/tls: Remove the context from the list in tls_device_down")
Cc: stable@vger.kernel.org
Signed-off-by: Jaeyeong Lee <lee@jaeyeong.cc>
Link: https://patch.msgid.link/20261112043209.102404-1-lee@jaeyeong.cc
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
