Netdev List
 help / color / mirror / Atom feed
From: Kuniyuki Iwashima <kuniyu@google.com>
To: Wentao Guan <guanwentao@uniontech.com>
Cc: edumazet@google.com, ncardwell@google.com, kuba@kernel.org,
	 netdev@vger.kernel.org, melotti@google.com,
	stable@vger.kernel.org
Subject: Re: [PATCH net] tcp: cancel cloned request timers without waiting
Date: Thu, 19 Nov 2026 06:22:49 +0000	[thread overview]
Message-ID: <av6VHCsEnrAMOx0M@google.com> (raw)
In-Reply-To: <0907415D86226AEA+20261119025619.3485277-2-guanwentao@uniontech.com>

On Thu, 19 Nov 2026 10:56:20 +0800, Wentao Guan wrote:
> When a cloned request is migrated again, its timer has the same lockdep
> class as the running request callback. Using timer_delete_sync() through
> __inet_csk_reqsk_queue_drop(..., false) can therefore trigger a
> recursive-locking splat and disable lockdep.

This is net-next material.


> 
> The clone is unhashed when inet_ehash_insert() fails, so
> reqsk_queue_unlink() is a no-op. Its timer is pinned to the current CPU,
> allowing it to be cancelled without waiting for its callback. Use
> timer_delete() and drop the timer reference directly instead of
> synchronously deleting it through the queue helper.

This change depnds on 4e2b3ef19e0e, without that, __reqsk_free()
frees reqsk immediately and timer triggers UAF.

So please mention the commit.


> 
> Fixes: 97c8a3c1f73d ("tcp: Fix potential UAF in reqsk_timer_handler().")
> Cc: stable@vger.kernel.org

Please drop two tags above.

---
pw-bot: cr

  parent reply	other threads:[~2026-11-19  6:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19  2:56 [PATCH net] tcp: cancel cloned request timers without waiting Wentao Guan
2026-11-19  3:03 ` netdev-bot+sinfo
2026-11-19  6:22 ` Kuniyuki Iwashima [this message]
2026-11-19  6:40   ` 关文涛

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=av6VHCsEnrAMOx0M@google.com \
    --to=kuniyu@google.com \
    --cc=edumazet@google.com \
    --cc=guanwentao@uniontech.com \
    --cc=kuba@kernel.org \
    --cc=melotti@google.com \
    --cc=ncardwell@google.com \
    --cc=netdev@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox