It turns out that the credit handling has changed in Windows Server 2016, it now grants up to 8192 credits on an authenticated connection without the ramp of just adding 31 more credits per request. It also turns out that our client libraries/torture tests are missing credit charge handling and make it impossible to test size limits of various SMB2 requests.
Created attachment 15071 [details] Patch for v4-10-test
Created attachment 15072 [details] Patch for v4-9-test
Created attachment 15073 [details] Patch for v4-8-test
Re-assigning to Karolin for inclusion in 4.10.next, 4.9.next, (4.8.next?).
(In reply to Jeremy Allison from comment #4) Pushed to autobuild-v4-{10,9}-test.
(In reply to Karolin Seeger from comment #5) Pushed to both branches. Closing out bug report. Thanks!