Subject: Issue with /proc/sys/net/ipv4/tcp_mem

From: wangyufen <[email-masked]>
Date: Mon, 12 Oct 2015 17:38:32 +0800

Hi,

I tried on linux-4.1:
    linux:~# cat /proc/sys/net/ipv4/tcp_mem 
    8388608	12582912	16777216
    linux:~# echo 1234 >/proc/sys/net/ipv4/tcp_mem 
    -bash: echo: write error: Invalid argument
    linux:~# cat /proc/sys/net/ipv4/tcp_mem 
    1234	12582912	16777216

the echo operation got error, but value already written to tcp_mem.

I checked, patch f594d63199688ad568fb caused the issue.

thanks,
Wang