Re: [PATCH] ksmbd: exempt FSCTL_PIPE_TRANSCEIVE from the generic file-id lookup
Namjae Jeon <[email protected]> Mon, 3 Aug 2026 16:00:49 +0900
| Newsgroups | org.kernel.vger.linux-cifs |
|---|---|
| Message-ID | <CAKYAXd-C8Nr537u7rm531FyWncoA=ZnnZHHai_37-xEup17N3w@mail.gmail.com> |
On Fri, Jul 31, 2026 at 8:56=E2=80=AFPM Ga=C3=ABl Blivet-Bailly <[email protected]> wrote: > > From: Gael Blivet <[email protected]> > > smb2_ioctl() rejects FSCTL_PIPE_TRANSCEIVE with > STATUS_OBJECT_NAME_NOT_FOUND before fsctl_pipe_transceive() runs. RPC > pipe IDs live in sess->rpc_handle_list, a separate namespace from the > ksmbd_file table the generic ksmbd_lookup_fd_slow() gate searches, so > the lookup always misses. > > Found while testing generic SMB browsing (Finder's "Connect to > Server"): every DCE/RPC bind over a named pipe (SRVSVC, WKSSVC, SAMR, > LSARPC) failed right after CREATE. Adding FSCTL_PIPE_TRANSCEIVE to the > same no_fileid_ioctl exemption as FSCTL_PIPE_WAIT fixes it, confirmed > by testing a build with and without the change. > > Fixes: 0726814421c2 ("ksmbd: add SMB3 request replay support") > Signed-off-by: Gael Blivet <[email protected]> > Assisted-by: Claude:claude-sonnet-5 Applied it to #ksmbd-for-next-next with ChenXiaoSong's reviewed/tested-by t= ags.