System freezes when setting /proc/sys/net/ipv4/tcp_adv_win_scale to a multiple of 32 and causing network traffic (for example ssh, wget, firefox, etc). Does NOT happen with ping It also happens with kernel 2.6.26 (debian lenny). there is no output via dmesg, no logging about any system events in /var/log/messages or /var/log/syslog and nothing or on tty1 for example echo 32 > /proc/sys/net/ipv4/tcp_adv_win_scale wget www.kernel.org I tested 16 >> working 32 >> freeze 33 >> working 31 >> working 64 >> freeze 65 >> working 96 >> freeze 128 >> freeze
Identical results on 32bit and 64bit systems
fixed in 2.6.37-rc4 "tcp: restrict net.ipv4.tcp_adv_win_scale (#20312)"
Thanks a lot, Alexey. Verified: shambhala:~#1> LANG=C echo 32 > /proc/sys/net/ipv4/tcp_adv_win_scale echo: write error: invalid argument shambhala:~#1> LANG=C echo 31 > /proc/sys/net/ipv4/tcp_adv_win_scale shambhala:~> LANG=C echo -31 > /proc/sys/net/ipv4/tcp_adv_win_scale shambhala:~> LANG=C echo -32 > /proc/sys/net/ipv4/tcp_adv_win_scale echo: write error: invalid argument On 2.6.37-rc5.
commit 0147fc058d11bd4009b126d09974d2c8f48fef15 Author: Alexey Dobriyan <adobriyan@gmail.com> Date: Mon Nov 22 12:54:21 2010 +0000 tcp: restrict net.ipv4.tcp_adv_win_scale (#20312)