diff options
| author | Namjae Jeon <linkinjeon@kernel.org> | 2026-10-17 00:18:02 +0900 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-10-21 08:55:34 +0900 |
| commit | dc6aa1ba8b7fff8800ad9bf143f17d308e02ec68 (patch) | |
| tree | 0e0687d0e62f5c585d34ba9be48a2c8075e4cf89 /scripts/Makefile.thinlto | |
| parent | add8d7fb04efe564193df73581889c62fc0016f1 (diff) | |
| download | linux-dc6aa1ba8b7fff8800ad9bf143f17d308e02ec68.tar.gz linux-dc6aa1ba8b7fff8800ad9bf143f17d308e02ec68.zip | |
ksmbd: limit sessions on each connection
The pending setup limit only counts InProgress sessions. A client can
complete authentication repeatedly and retain an unbounded number of Valid
sessions on one connection.
Reserve a connection slot before allocating a session and retain a
connection reference while authentication is in progress. The first SMB3
channel takes over that reservation; binding to another connection reserves
one slot there. Reauthentication and authentication continuation reuse the
existing reservation. Return slots on allocation or insertion failure,
channel removal, and final session destruction.
Accept max_sessions_per_connection in reserved startup-request space and
default to 64 when older tools leave it zero. Keep the request size and
existing field offsets unchanged. Expose the configured limit in procfs.
The existing connection limits bound the aggregate number of sessions
without a separate global session allocation limit.
Fixes: d7fd1f98607f ("ksmbd: follow SMB2 session expiration semantics")
Cc: stable@vger.kernel.org
Reported-by: Abdifatah Suruur <suruurism@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
