Bug 16284 - smbXsrv_session_update stores sessions with num_channels = 0, which smbstatus fails to parse
Summary: smbXsrv_session_update stores sessions with num_channels = 0, which smbstatus...
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: 4.25.0
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL: https://gitlab.com/samba-team/samba/-...
Keywords:
Depends on:
Blocks:
 
Reported: 2026-10-19 12:41 UTC by Stefan Metzmacher
Modified: 2026-10-30 12:52 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Metzmacher 2026-10-19 12:41:03 UTC
There's a time between storing smbXsrv_session_global with num_channels = 0
and deleting the session. This gap can be larger on could filesystems in the backend, where requests are still pending.

Within that gap smbstatus tries to parse the invalid records,
because the range() statement in idl doesn't allow 0 on ndr_pull.
Comment 1 Samba QA Contact 2026-10-20 16:26:03 UTC
This bug was referenced in samba master:

aeceb075cad8dcdc0ee42796cafff73deef58251
0cb2a0bb0131f156d42cb72636efa5640b80db6c
12950913856db6194a19b0b130c82872f7d74fe0
e8a7a189e92960bd5864c5c38e29d814f3a92752
Comment 2 Samba QA Contact 2026-10-30 12:52:03 UTC
This bug was referenced in samba master:

93716b6344576aa4dd30d53633b06ece905f2319
f6fddd2232c9f94b591d52b5689d3ee03cc19be6