Skip to content

ksmbd hangs with macOS clients - "unsupported INVOKE method 45, alloc_hint : 52"? #516

@victorhooi

Description

@victorhooi

I'm running into a weird issue with ksmbd, where macOS clients seem to hang the server, requiring ksmbd to restart.

Specifically, when I try to open up multiple folders on the ksmbd share, after a while, the macOS client seems to disconnect. Anecdotally, I think this seems to be more pronounced with large folders with lots of files, or nested folders, although it's hard to be sure.

After that if I try to re-connect to the ksmbd share from macOS, it times out - but then if I restart the ksmbd service (sudo systemctl restart ksmbd), then the macOS clients can connect again.

I'm using the in-kernel ksmbd, and I am on kernel 6.18.6, on Debian Forky, on the ARM64 architecture (Ampere server):

> uname -a
Linux ampere-01 6.16.8+deb14-arm64 #1 SMP PREEMPT Debian 6.16.8-1 (2025-09-21) aarch64 GNU/Linux
> lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux forky/sid
Release:        n/a
Codename:       forky

If I look in the journalctl logs (sudo journalctl --unit ksmbd), I see:

Sep 09 16:55:56 ampere-01 systemd[1]: Stopping ksmbd.service - ksmbd userspace daemon...
Sep 09 16:55:56 ampere-01 ksmbd[1822255]: [ksmbd.mountd(worker)/1822255]: INFO: Terminated
Sep 09 16:55:56 ampere-01 ksmbd[1822254]: [ksmbd.mountd(manager)/1822254]: INFO: Terminated
Sep 09 16:56:03 ampere-01 ksmbd.control[2835645]: [ksmbd.control/2835645]: INFO: Terminated mountd
Sep 09 16:56:03 ampere-01 ksmbd.control[2835645]: [ksmbd.control/2835645]: INFO: Killed ksmbd
Sep 09 16:56:03 ampere-01 systemd[1]: ksmbd.service: Deactivated successfully.
Sep 09 16:56:03 ampere-01 systemd[1]: Stopped ksmbd.service - ksmbd userspace daemon.
Sep 09 16:56:03 ampere-01 systemd[1]: ksmbd.service: Consumed 1.752s CPU time, 3.1M memory peak, 84K memory swap peak.
Sep 09 16:56:03 ampere-01 systemd[1]: Starting ksmbd.service - ksmbd userspace daemon...
Sep 09 16:56:03 ampere-01 ksmbd[2835680]: [ksmbd.mountd/2835680]: INFO: Wrote `/run/ksmbd.lock'
Sep 09 16:56:03 ampere-01 ksmbd.mountd[2835679]: [ksmbd.mountd/2835679]: INFO: Started manager
Sep 09 16:56:03 ampere-01 ksmbd[2835680]: [ksmbd.mountd(manager)/2835680]: INFO: Started worker
Sep 09 16:56:03 ampere-01 systemd[1]: Started ksmbd.service - ksmbd userspace daemon.
Sep 09 16:56:13 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 09 16:56:13 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 09 16:56:14 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 09 18:25:44 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 09 18:25:45 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 09 18:25:46 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 09 18:25:48 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 09 18:25:49 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 09 18:25:50 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 09 18:25:51 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 10 04:54:45 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 10 04:54:45 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 10 04:54:45 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 10 04:54:45 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 10 04:54:45 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 10 04:54:45 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 10 04:54:46 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 11 13:27:57 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 11 13:27:57 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 11 13:27:58 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 11 13:27:58 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 11 13:27:58 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 11 13:27:59 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 11 13:29:00 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 12 21:32:16 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 12 21:32:17 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 12 21:32:17 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 12 21:32:17 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 12 21:32:17 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 12 21:32:17 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 12 21:32:17 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
Sep 12 23:27:54 ampere-01 ksmbd[2835681]: [ksmbd.mountd(worker)/2835681]: ERROR: LSARPC: unsupported INVOKE method 45, alloc_hint : 52
lines 1-52

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions