The code that replies to an SMB1 SMBsplwr request is missing the code that sets up a reply buffer. Has been broken since 3.2.0 and someone just noticed :-). https://lists.samba.org/archive/samba/2021-April/235789.html Have fix, need bug-number.
Created attachment 16600 [details] git-am fix for master. Patch in ci.
Confirmed as fixed by submitter. Date: Thu, 29 Apr 2021 20:46:51 +0200 From: Mateusz Mikołajczyk <mikolajczyk.mateusz@gmail.com> To: Jeremy Allison <jra@samba.org> Cc: samba@lists.samba.org Subject: Re: [Samba] smbsrv_reply_printwrite not returning a response causing the print job to be truncated to 124 bytes amazing - works as expected :) thank you so much !! would you like me to create a patch / pull request? on the other hand I don't think it would be fair since you created it.. kind regards,
Created attachment 16602 [details] git-am fix for master including test. This includes the test for reference. Note I'm not planning to actually add this test to master, as it will really complicate removing the SMB1 code eventually. I wrote it for my own understanding and edification :-). I'm just going to push the raw fix to master, then create back-ports for supported versions.
This bug was referenced in samba master: 47d79d7e7e406f7dd204ded7c72cfed3e0761ad5
Created attachment 16603 [details] git-am fix for 4.14.next, 4.13.next. Cherry-picked from master.
Reassigning to Karolin for inclusion in 4.13 and 4.14.
(In reply to Ralph Böhme from comment #7) Pushed to autobuild-v4-{14,13}-test.
This bug was referenced in samba v4-14-test: 0ce7c5e7a6298f0f97129ec4e0889b1889d4bdcd
This bug was referenced in samba v4-13-test: aae24152b8d4691252fb56b095ed892e11b40bec
Pushed to both branches. Closing out bug report. Thanks!
This bug was referenced in samba v4-13-stable: aae24152b8d4691252fb56b095ed892e11b40bec
This bug was referenced in samba v4-14-stable (Release samba-4.14.5): 0ce7c5e7a6298f0f97129ec4e0889b1889d4bdcd