Plan 9 from Bell Labs’s /usr/web/sources/patch/sorry/cifs-mtu-wrong/readme

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


nasty bug which appeared to cause incorrect sequence numbers when accessing very
large directories or reading the contents of some of the virtual files in the root of the cifs dir.

This is caused by having a larger ovvered receive buffer than the packet size, which makes the
windows server send multiple reply fragments, sadly the layering of the protocols is broken
and these fragments have the same sequence number in the lower SMB layer (ugh).

The fix is to just to ensure the receive buffer is always smaller than MTU and thus you always
get a reply in a single fragment.

-Steve

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.