Re: [PATCH net-next] sock: consistent handling of extreme SO_SNDBUF/SO_RCVBUF values

2019-02-16 Thread David Miller
From: Guillaume Nault Date: Wed, 13 Feb 2019 04:30:34 +0100 > SO_SNDBUF and SO_RCVBUF (and their *BUFFORCE version) may overflow or > underflow their input value. This patch aims at providing explicit > handling of these extreme cases, to get a clear behaviour even with > values bigger than INT_M

[PATCH net-next] sock: consistent handling of extreme SO_SNDBUF/SO_RCVBUF values

2019-02-12 Thread Guillaume Nault
SO_SNDBUF and SO_RCVBUF (and their *BUFFORCE version) may overflow or underflow their input value. This patch aims at providing explicit handling of these extreme cases, to get a clear behaviour even with values bigger than INT_MAX / 2 or lower than INT_MIN / 2. For simplicity, only SO_SNDBUF and