For reentrant VFS calls where the incoming pathname refers to a file in a snapshot, the function convert_sbuf() which implements the logic behind shadow:fixinodes isn't called.
This bug was referenced in samba master: 03e36502f450d14656a824b36c33607ff418f0bf 40cf129abb51fa18a3bb6553da9c544f4d2d1f14 18a30d939e6f7d49300f235385953412f9e971b9 2c9ae4b78cd0d5a3686e79a7497fd3da9f87a307 b32e56d6eb29bfb5f368602edbc10d4b8bc9b4f0 745ded9afe12fda6d45638097a32b01122748649 0a0b438b8ab534eeb552a58ad72a714988e84d89 3aabc9825ca108641c2becf322fa0bd90ea18424 4a7e483c516cf2b9767919a764f05c43f4620cd7 c7d6745858f2efdd24ed6fd353ec5ece898033fa
Created attachment 16702 [details] Patch for 4.14 cherry-picked from master with additional patch Backport from master. Needed an additional patch, cf 7/8. Please remember to add your signed-off to 7/8 if you're happy with the patch. Thanks!
Fwiw, not backporting this to 4.13 as the tests won't work there due to the lack of the dev/ino path/handle check in openat_pathref_fsp(). I think the fix itself is correct even for 4.13, but without the test to prove this I'd much rather keep 4.13 unchanged/broken and 4.14 and 4.15 fixed.
Created attachment 16708 [details] Patch for 4.14 cherry-picked from master with additional patch With my RB+.
Re-assigning to Karolin for inclusion in 4.14.next.
(In reply to Jeremy Allison from comment #6) Pushed to autobuild-v4-14-test.
This bug was referenced in samba v4-14-test: e12c92d0175ea8a0057e9bc6b01ad65ce9153d84 93383852f0dec537e2f9b062f113c6f5747a80b9 a2ac4ee3d71480b3fc15b6a2e6308bb467b14e6b 5ae4300a36b63de302af174a8fc6bd29dbecac82 9d6d585ca00f7d001932fab8fc16b6a72ec3ec89 262d09c511a66562f397af099cfdef588813d1ab 8222ff1110c3ff506e3153b3294f2979206cdbfd 3228383d8ae56d53dd8d726eec8e81353b988624
Pushed to v4-14-test. Closing out bug report. Thanks!
This bug was referenced in samba v4-14-stable (Release samba-4.14.7): e12c92d0175ea8a0057e9bc6b01ad65ce9153d84 93383852f0dec537e2f9b062f113c6f5747a80b9 a2ac4ee3d71480b3fc15b6a2e6308bb467b14e6b 5ae4300a36b63de302af174a8fc6bd29dbecac82 9d6d585ca00f7d001932fab8fc16b6a72ec3ec89 262d09c511a66562f397af099cfdef588813d1ab 8222ff1110c3ff506e3153b3294f2979206cdbfd 3228383d8ae56d53dd8d726eec8e81353b988624