Bug 15931 - rpcd_mdssvc may crash because name mangling is not initialized
Summary: rpcd_mdssvc may crash because name mangling is not initialized
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: DCE-RPCs and pipes (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Jule Anger
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-07 14:12 UTC by Ralph Böhme
Modified: 2025-11-07 13:24 UTC (History)
1 user (show)

See Also:


Attachments
Patch for 4.22 and 4.23 cherry-picked from master (1.21 KB, patch)
2025-10-08 13:06 UTC, Ralph Böhme
vl: review+
Details

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Ralph Böhme 2025-10-08 07:45:24 UTC
Missing initializsation for name mangling, no idea how this can have ever worked.

SBT:

Oct 07 15:05:15 host rpcd_mdssvc[8706]:  PANIC (pid 
8706): Signal 11: Segmentation fault in 
4.22.4-Debian-4.22.4+dfsg-1-07-1
Oct 07 15:05:15 host rpcd_mdssvc[8706]: [2025/10/07 
15:05:15.729375,  0] lib/util/fault.c:303(log_stack_trace)
Oct 07 15:05:15 host rpcd_mdssvc[8706]:  BACKTRACE: 
26 stack frames:
Oct 07 15:05:15 host rpcd_mdssvc[8706]:    #0 
/usr/lib/x86_64-linux-gnu/samba/libgenrand-private-samba.so.0(log_stack_trace+0x2e) 
[0x7f2345f275be]
Oct 07 15:05:15 host rpcd_mdssvc[8706]:    #1 
/usr/lib/x86_64-linux-gnu/samba/libgenrand-private-samba.so.0(smb_panic+0x9) 
[0x7f2345f27859]
Oct 07 15:05:15 host rpcd_mdssvc[8706]:    #2 
/usr/lib/x86_64-linux-gnu/samba/libgenrand-private-samba.so.0(+0x28f1) 
[0x7f2345f278f1]
Oct 07 15:05:15 host rpcd_mdssvc[8706]:    #3 
/lib/x86_64-linux-gnu/libc.so.6(+0x3c050) [0x7f2345cda050]
Oct 07 15:05:15 host rpcd_mdssvc[8706]:    #4 
/usr/lib/x86_64-linux-gnu/samba/libsmbd-base-private-samba.so.0(mangle_is_8_3+0x13) 
[0x7f234651ecb3]
Oct 07 15:05:15 host rpcd_mdssvc[8706]:    #5 
/usr/lib/x86_64-linux-gnu/samba/libsmbd-base-private-samba.so.0(filename_convert_dirfsp_nosymlink+0xc83) 
[0x7f23464b2d63]
Oct 07 15:05:15 host rpcd_mdssvc[8706]:    #6 
/usr/lib/x86_64-linux-gnu/samba/libsmbd-base-private-samba.so.0(filename_convert_dirfsp_rel+0xc9) 
[0x7f23464b35a9]
Oct 07 15:05:15 host rpcd_mdssvc[8706]:    #7 
/usr/lib/x86_64-linux-gnu/samba/libsmbd-base-private-samba.so.0(fd_openat+0xf5) 
...
Comment 2 Samba QA Contact 2025-10-08 07:55:03 UTC
This bug was referenced in samba master:

708ae38a76a13a5b77373770149678233b4b3c37
Comment 3 Ralph Böhme 2025-10-08 13:06:58 UTC
Created attachment 18749 [details]
Patch for 4.22 and 4.23 cherry-picked from master
Comment 4 Jule Anger 2025-10-15 13:39:40 UTC
Pushed to autobuild-v4-{23,22}-test.
Comment 5 Samba QA Contact 2025-10-15 15:11:19 UTC
This bug was referenced in samba v4-23-test:

2dfa51684176faaef0a7af67e142fd4e076f89c6
Comment 6 Samba QA Contact 2025-10-15 16:05:20 UTC
This bug was referenced in samba v4-22-test:

c819724d5dfc47e06030c125703df9b8dde2bd8e
Comment 7 Jule Anger 2025-10-15 16:35:06 UTC
Closing out bug report.

Thanks!
Comment 8 Samba QA Contact 2025-10-16 14:37:35 UTC
This bug was referenced in samba v4-22-stable (Release samba-4.22.6):

c819724d5dfc47e06030c125703df9b8dde2bd8e
Comment 9 Samba QA Contact 2025-11-07 13:24:08 UTC
This bug was referenced in samba v4-23-stable (Release samba-4.23.3):

2dfa51684176faaef0a7af67e142fd4e076f89c6