From: Stefan Metzmacher <metze@samba.org>
To: Namjae Jeon <linkinjeon@kernel.org>, Steve French <smfrench@gmail.com>
Cc: linux-cifs@vger.kernel.org, samba-technical@lists.samba.org,
Tom Talpey <tom@talpey.com>, Long Li <longli@microsoft.com>,
Paulo Alcantara <pc@manguebit.org>,
David Howells <dhowells@redhat.com>
Subject: Re: [PATCH v3 0/4] smb: smbdirect/client/server: relax WARN_ON_ONCE(SMBDIRECT_SOCKET_*) checks
Date: Fri, 28 Nov 2025 14:35:06 +0100 [thread overview]
Message-ID: <788d9b9e-e693-437f-bb56-1b84868b4250@samba.org> (raw)
In-Reply-To: <CAKYAXd9ykY7y0PGFcibQMUjQxb9_usEqKEJFrWJCBFuNesji1A@mail.gmail.com>
Am 28.11.25 um 13:11 schrieb Namjae Jeon:
> On Fri, Nov 28, 2025 at 7:17 PM Stefan Metzmacher <metze@samba.org> wrote:
>>
>> Am 28.11.25 um 05:53 schrieb Steve French:
>>> On Thu, Nov 27, 2025 at 9:19 PM Namjae Jeon <linkinjeon@kernel.org> wrote:
>>>
>>>> On Fri, Nov 28, 2025 at 12:54 AM Stefan Metzmacher <metze@samba.org>
>>>> wrote:
>>>>>
>>>>> Am 26.11.25 um 02:07 schrieb Namjae Jeon:
>>>>>> On Wed, Nov 26, 2025 at 8:50 AM Namjae Jeon <linkinjeon@kernel.org>
>>>> wrote:
>>>>>>>
>>>>>>> On Tue, Nov 25, 2025 at 11:22 PM Stefan Metzmacher <metze@samba.org>
>>>> wrote:
>>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> here are some small cleanups for a problem Nanjae reported,
>>>>>>>> where two WARN_ON_ONCE(sc->status != ...) checks where triggered
>>>>>>>> by a Windows 11 client.
>>>>>>>>
>>>>>>>> The patches should relax the checks if an error happened before,
>>>>>>>> they are intended for 6.18 final, as far as I can see the
>>>>>>>> problem was introduced during the 6.18 cycle only.
>>>>>>>>
>>>>>>>> Given that v1 of this patchset produced a very useful WARN_ONCE()
>>>>>>>> message, I'd really propose to keep this for 6.18, also for the
>>>>>>>> client where the actual problem may not exists, but if they
>>>>>>>> exist, it will be useful to have the more useful messages
>>>>>>>> in 6.16 final.
>>>>>> Anyway, Applied this patch-set to #ksmbd-for-next-next.
>>>>>> Please check the below issue.
>>>>>
>>>>> Steve, can you move this into ksmbd-for-next?
>>>> Steve, There are more patches in ksmbd-for-next-next.
>>>> Please apply the following 6 patches in #ksmbd-for-next-next to
>>>> #ksmbd-for-next.
>>>>
>>>> 3858665313f1 (HEAD -> ksmbd-for-next-next, origin/ksmbd-for-next-next)
>>>> ksmbd: ipc: fix use-after-free in ipc_msg_send_request
>>>> b9c7d4fe6e93 smb: client: relax WARN_ON_ONCE(SMBDIRECT_SOCKET_*)
>>>> checks in recv_done() and smbd_conn_upcall()
>>>> 6c5ceb636d08 smb: server: relax WARN_ON_ONCE(SMBDIRECT_SOCKET_*)
>>>> checks in recv_done() and smb_direct_cm_handler()
>>>> d02a328304e5 smb: smbdirect: introduce
>>>> SMBDIRECT_CHECK_STATUS_{WARN,DISCONNECT}()
>>>> 340255e842d5 smb: smbdirect: introduce SMBDIRECT_DEBUG_ERR_PTR() helper
>>>> 01cba263d1bd ksmbd: vfs: fix race on m_flags in vfs_cache
>>
>> It seems these are the v2 patches, please use v3,
>> the difference is that the __SMBDIRECT_SOCKET_DISCONNECT
>> defines are moved up in order to let the patches on top work
>> with out modifications. I noticed the difference while
>> doing a rebase on ksmbd-for-next and get conflicts.
> Right, Sorry for missing v3 patches.
>
> Steve, Please apply updated 4 patches in ksmbd-for-next-next to ksmbd-for-next.
>
> fc86cca6087f (HEAD -> ksmbd-for-next-next, origin/ksmbd-for-next-next)
> smb: client: relax WARN_ON_ONCE(SMBDIRECT_SOCKET_*) checks in
> recv_done() and smbd_conn_upcall()
> 111b7cb1b7f6 smb: server: relax WARN_ON_ONCE(SMBDIRECT_SOCKET_*)
> checks in recv_done() and smb_direct_cm_handler()
> 12059ee95a5b smb: smbdirect: introduce
> SMBDIRECT_CHECK_STATUS_{WARN,DISCONNECT}()
> 3658d5ac7908 smb: smbdirect: introduce SMBDIRECT_DEBUG_ERR_PTR() helper
Given that we missed linux-next for this week anyway,
we could also add everything from my for-6.19/fs-smb-20251128-v5
branch, which is rebased on smfrench-smb3-kernel/ksmbd-for-next with
the top 3 commits replaced by the top 3 commits from
smfrench-smb3-kernel/ksmbd-for-next-next.
And has the patches from David's cifs-cleanup branch
as well as my smbdirect.ko patches.
metze
next prev parent reply other threads:[~2025-11-28 13:35 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-25 14:21 [PATCH v3 0/4] smb: smbdirect/client/server: relax WARN_ON_ONCE(SMBDIRECT_SOCKET_*) checks Stefan Metzmacher
2025-11-25 14:21 ` [PATCH v3 1/4] smb: smbdirect: introduce SMBDIRECT_DEBUG_ERR_PTR() helper Stefan Metzmacher
2025-11-25 14:21 ` [PATCH v3 2/4] smb: smbdirect: introduce SMBDIRECT_CHECK_STATUS_{WARN,DISCONNECT}() Stefan Metzmacher
2025-11-25 14:21 ` [PATCH v3 3/4] smb: server: relax WARN_ON_ONCE(SMBDIRECT_SOCKET_*) checks in recv_done() and smb_direct_cm_handler() Stefan Metzmacher
2025-11-25 14:21 ` [PATCH v3 4/4] smb: client: relax WARN_ON_ONCE(SMBDIRECT_SOCKET_*) checks in recv_done() and smbd_conn_upcall() Stefan Metzmacher
2025-11-25 23:50 ` [PATCH v3 0/4] smb: smbdirect/client/server: relax WARN_ON_ONCE(SMBDIRECT_SOCKET_*) checks Namjae Jeon
2025-11-26 1:07 ` Namjae Jeon
2025-11-27 15:54 ` Stefan Metzmacher
2025-11-28 3:18 ` Namjae Jeon
[not found] ` <CAH2r5mv0BLnF9+ori1ZfoaYfBLXcscjuFkkAjggSY+aroKDRiw@mail.gmail.com>
2025-11-28 10:17 ` Stefan Metzmacher
2025-11-28 12:11 ` Namjae Jeon
2025-11-28 13:35 ` Stefan Metzmacher [this message]
2025-11-28 15:00 ` Namjae Jeon
2025-11-28 18:05 ` Steve French
2025-11-26 7:16 ` Stefan Metzmacher
2025-11-26 15:17 ` Namjae Jeon
2025-11-26 15:18 ` Stefan Metzmacher
2025-11-26 16:03 ` Stefan Metzmacher
2025-11-26 23:10 ` Namjae Jeon
2025-11-27 15:45 ` Stefan Metzmacher
2025-11-27 15:50 ` Stefan Metzmacher
2025-11-28 3:20 ` Namjae Jeon
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=788d9b9e-e693-437f-bb56-1b84868b4250@samba.org \
--to=metze@samba.org \
--cc=dhowells@redhat.com \
--cc=linkinjeon@kernel.org \
--cc=linux-cifs@vger.kernel.org \
--cc=longli@microsoft.com \
--cc=pc@manguebit.org \
--cc=samba-technical@lists.samba.org \
--cc=smfrench@gmail.com \
--cc=tom@talpey.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.