summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGael Blivet <gael.blivet@gmail.com>2026-07-07 11:55:05 +0200
committerNamjae Jeon <linkinjeon@kernel.org>2026-08-17 15:00:35 +0900
commit92db30225eba52d330eda2dd92311afac47bb7df (patch)
treef529f965f4cad4ed4ff7d5b251723344503c08eb
parent9870bbb55a2fc70a3d0945f85c4ff8a4fbb99a8e (diff)
downloadlinux-92db30225eba52d330eda2dd92311afac47bb7df.tar.gz
linux-92db30225eba52d330eda2dd92311afac47bb7df.zip
ksmbd: quiet mdssvc RPC log spam
macOS routinely probes the mdssvc RPC pipe to check for Spotlight search support. __rpc_method() already falls through to returning 0 (unsupported) for it via the default case, but that path also logs "Unsupported RPC: mdssvc" via pr_err on every single probe -- which happens often enough during normal macOS browsing/backup activity to spam the kernel log. Add an explicit case that returns the same value without the log line; behavior is unchanged, this only removes noise for an expected, routine client behavior. Assisted-by: Claude:claude-sonnet-5 Signed-off-by: Gael Blivet <gael.blivet@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
-rw-r--r--fs/smb/server/mgmt/user_session.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/smb/server/mgmt/user_session.c b/fs/smb/server/mgmt/user_session.c
index f99c86284ba3..eaa044da3280 100644
--- a/fs/smb/server/mgmt/user_session.c
+++ b/fs/smb/server/mgmt/user_session.c
@@ -308,6 +308,9 @@ static int __rpc_method(char *rpc_name)
if (!strcmp(rpc_name, "\\lsarpc") || !strcmp(rpc_name, "lsarpc"))
return KSMBD_RPC_LSARPC_METHOD_INVOKE;
+ if (!strcmp(rpc_name, "\\mdssvc") || !strcmp(rpc_name, "mdssvc"))
+ return 0; /* mdssvc unsupported: quiet, expected macOS probe */
+
pr_err("Unsupported RPC: %s\n", rpc_name);
return 0;
}