Thread (2 messages) flat view 2 messages, 2 authors, 2019-02-22

Re: [PATCH net] net: socket: add check for negative optlen in compat setsockopt

From: David Miller <davem@davemloft.net>
Date: 2019-02-22 19:50:39
Also in: lkml

From: Jann Horn <jannh@google.com>
Date: Wed, 20 Feb 2019 22:34:54 +0100
__sys_setsockopt() already checks for `optlen < 0`. Add an equivalent check
to the compat path for robustness. This has to be `> INT_MAX` instead of
`< 0` because the signedness of `optlen` is different here.

Signed-off-by: Jann Horn <jannh@google.com>
Applied and queued up for -stable, thanks Jann.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help