summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorKuniyuki Iwashima <kuniyu@google.com>2026-05-06 03:59:18 +0000
committerJakub Kicinski <kuba@kernel.org>2026-05-08 14:54:50 -0700
commit97c8a3c1f73d828de43a5a88e8a9a143efb2b661 (patch)
treef91874ec81bb38efe2e2191fa7eac529b7c97b66 /tools/perf/scripts/python/netdev-times.py
parentfcee7d82f27d6a8b1ddc5bbefda59b4e441e9bc0 (diff)
downloadlinux-97c8a3c1f73d828de43a5a88e8a9a143efb2b661.tar.gz
linux-97c8a3c1f73d828de43a5a88e8a9a143efb2b661.zip
tcp: Fix potential UAF in reqsk_timer_handler().
When TCP socket migration fails at inet_ehash_insert() in reqsk_timer_handler(), we jump to the no_ownership: label and free the new reqsk immediately with __reqsk_free(). Thus, we must stop the new reqsk's timer before jumping to the label, but the timer might be missed since the cited commit, resulting in UAF. As we are in the original reqsk's timer context, we can safely call timer_delete_sync() for the new reqsk. Let's pass false to __inet_csk_reqsk_queue_drop() to stop the new reqsk's timer. Fixes: 83fccfc3940c ("inet: fix potential deadlock in reqsk_queue_unlink()") Reported-by: Damiano Melotti <melotti@google.com> Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com> Link: https://patch.msgid.link/20260506035954.1563147-2-kuniyu@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions