Re: [PATCH v2] ksmbd: quiet mdssvc RPC log spam in create_smb2_pipe

Namjae Jeon <[email protected]>
Newsgroups org.kernel.vger.linux-cifs
Message-ID <CAKYAXd8Hr2EaeoPm_wq0GZ_tEMP9Ntou+3S-90gXSCTngtYcSA@mail.gmail.com>
On Fri, Jul 10, 2026 at 1:51 AM Gaël Blivet-Bailly
<[email protected]> wrote:
>
> From: Gael Blivet <[email protected]>
>
> Follow-up to
> commit bb682f1496f7 ("ksmbd: quiet mdssvc RPC log spam"),
> which silenced __rpc_method()'s own "Unsupported RPC: mdssvc" log line
> but missed that ksmbd_session_rpc_open() failing for that same,
> now-still-rejected pipe also trips a second, separate pr_err() here in
> its caller. macOS's routine mdssvc (Spotlight) probes still spam the
> kernel log via this second site on every single probe, defeating the
> original commit's stated purpose.
>
> Suppress this specific case the same way the other site does; behavior
> is unchanged for every other RPC failure.
>
> __rpc_method() (mgmt/user_session.c) returns -ENOENT for mdssvc, not
> -EINVAL.
>
> Signed-off-by: Gael Blivet <[email protected]>
Applied it to #ksmbd-for-next-next.
Thanks!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.