From: Kuniyuki Iwashima <kuniyu@amazon.com>
To: <smfrench@gmail.com>
Cc: <bharathsm@microsoft.com>, <ematsumiya@suse.de>,
<kuni1840@gmail.com>, <kuniyu@amazon.com>,
<linux-cifs@vger.kernel.org>, <pc@manguebit.com>,
<samba-technical@lists.samba.org>, <sprasad@microsoft.com>,
<tom@talpey.com>, <wangzhaolong1@huawei.com>
Subject: Re: [PATCH 0/2] cifs: Revert bogus fix for CVE-2024-54680 and its followup commit.
Date: Wed, 2 Apr 2025 19:18:35 -0700 [thread overview]
Message-ID: <20250403021927.53033-1-kuniyu@amazon.com> (raw)
In-Reply-To: <CAH2r5mt68AFyJGdBcPB+eqzdAdbx=0QXC_U8MY-te26Wb0ye5w@mail.gmail.com>
From: Steve French <smfrench@gmail.com>
Date: Wed, 2 Apr 2025 20:14:03 -0500
> might be helpful if there were eBPF tracepoints for some of this that
> would be able to log warnings optionally if refcount issue on
> sock_release and/or rmmod
I just posted a fix and there explained that the socket and module
refcnt discrepancy is totally fine without LOCKDEP.
https://lore.kernel.org/netdev/20250403020837.51664-1-kuniyu@amazon.com/
So, in this case, the helpful warning is one logged by hlock_class().
As it returns NULL and triggers null-ptr-derf, it means something went
wrong, and I guess it was acceptable because LOCKDEP is not enabled in
production.
Btw, I posted v2 with Cc: stable tags as requested by Greg, so please
drop this v1.
https://lore.kernel.org/linux-cifs/20250402202714.6799-1-kuniyu@amazon.com/
Thanks!
>
>
> On Wed, Apr 2, 2025 at 3:03 PM Kuniyuki Iwashima <kuniyu@amazon.com> wrote:
> >
> > Commit e9f2517a3e18 ("smb: client: fix TCP timers deadlock after
> > rmmod") was not only a bogus fix for the LOCKDEP issue but also
> > introduced a real TCP socket leak.
> >
> > I'm working on the LOCKDEP fix on the networking side, so let's
> > revert the commit and its followup fix.
> >
> > For details, please see each commit.
> >
> >
> > Kuniyuki Iwashima (2):
> > Revert "smb: client: Fix netns refcount imbalance causing leaks and
> > use-after-free"
> > Revert "smb: client: fix TCP timers deadlock after rmmod"
> >
> > fs/smb/client/connect.c | 34 +++++++++-------------------------
> > 1 file changed, 9 insertions(+), 25 deletions(-)
> >
> > --
> > 2.48.1
next prev parent reply other threads:[~2025-04-03 2:19 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-02 20:02 [PATCH 0/2] cifs: Revert bogus fix for CVE-2024-54680 and its followup commit Kuniyuki Iwashima
2025-04-02 20:02 ` [PATCH 1/2] Revert "smb: client: Fix netns refcount imbalance causing leaks and use-after-free" Kuniyuki Iwashima
2025-04-03 3:16 ` Wang Zhaolong
2025-04-03 9:59 ` Wang Zhaolong
2025-04-03 17:26 ` Kuniyuki Iwashima
2025-04-03 17:32 ` Steve French
2025-04-03 17:46 ` Kuniyuki Iwashima
2025-04-02 20:02 ` [PATCH 2/2] Revert "smb: client: fix TCP timers deadlock after rmmod" Kuniyuki Iwashima
2025-04-03 3:12 ` Wang Zhaolong
2025-04-03 1:14 ` [PATCH 0/2] cifs: Revert bogus fix for CVE-2024-54680 and its followup commit Steve French
2025-04-03 2:18 ` Kuniyuki Iwashima [this message]
2025-04-03 3:19 ` Steve French
2025-04-03 10:14 ` Wang Zhaolong
2025-04-11 7:04 ` Kuniyuki Iwashima
2025-04-12 17:28 ` Steve French
2025-04-12 19:10 ` Kuniyuki Iwashima
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=20250403021927.53033-1-kuniyu@amazon.com \
--to=kuniyu@amazon.com \
--cc=bharathsm@microsoft.com \
--cc=ematsumiya@suse.de \
--cc=kuni1840@gmail.com \
--cc=linux-cifs@vger.kernel.org \
--cc=pc@manguebit.com \
--cc=samba-technical@lists.samba.org \
--cc=smfrench@gmail.com \
--cc=sprasad@microsoft.com \
--cc=tom@talpey.com \
--cc=wangzhaolong1@huawei.com \
/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