Bug 16271 - smbd panic on locking calls for fd's without data access
Summary: smbd panic on locking calls for fd's without data access
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-10-06 12:16 UTC by Volker Lendecke
Modified: 2026-10-08 15:10 UTC (History)
1 user (show)

See Also:


Attachments
Patch for 4.25 (57.59 KB, patch)
2026-10-08 15:08 UTC, Volker Lendecke
vl: review? (slow)
Details
Patch for 4.24 (4.49 KB, patch)
2026-10-08 15:10 UTC, Volker Lendecke
vl: review? (slow)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Volker Lendecke 2026-10-06 12:16:25 UTC
For a stat open doing locking calls panics smbd.
Comment 1 Samba QA Contact 2026-10-08 10:24:12 UTC
This bug was referenced in samba master:

aa343533d4ce9cca45c8ec973e8ebc5194a678cb
f9907fbc2a5d74ac1010de535ee691e9415d3e3a
40fe39f1453e7fef42ddcf80d413cf95bc6947d0
47902bfe9cf1e0b91c5df0fe46d4a8cf503243f4
88ebea78086492d5c05bf12c216724b1b1209dfc
f6064b1ee55d33c7e91aac928192644f1f3ea132
f651ab9e956f45f7a0381e8bedf577c631389a19
756f3e7b9735e283501be0ba13c3c82d34a92e7c
207150e698e5c6d9427291203c942f076c8da1af
19b2724a139dec43958bb5aca45bc85c7cf84c17
Comment 2 Volker Lendecke 2026-10-08 15:08:23 UTC
Created attachment 19275 [details]
Patch for 4.25
Comment 3 Volker Lendecke 2026-10-08 15:10:08 UTC
Created attachment 19276 [details]
Patch for 4.24

Just backported the fix without the test. The test does not apply cleanly. As this is quite obvious, I think the test+knowfail -> fix-knowfail dance is not really required.

I can also backport the test if you think it's required, but it's a bit more work.