Re: [PATCH net] net: avoid signed overflows for SO_{SND|RCV}BUFFORCE

2016-12-02 Thread David Miller
From: Eric Dumazet Date: Fri, 02 Dec 2016 09:44:53 -0800 > From: Eric Dumazet > > CAP_NET_ADMIN users should not be allowed to set negative > sk_sndbuf or sk_rcvbuf values, as it can lead to various memory > corruptions, crashes, OOM... > > Note that before commit 82981930125a ("net: cleanups

[PATCH net] net: avoid signed overflows for SO_{SND|RCV}BUFFORCE

2016-12-02 Thread Eric Dumazet
From: Eric Dumazet CAP_NET_ADMIN users should not be allowed to set negative sk_sndbuf or sk_rcvbuf values, as it can lead to various memory corruptions, crashes, OOM... Note that before commit 82981930125a ("net: cleanups in sock_setsockopt()"), the bug was even more serious, since SO_SNDBUF an