Re: [PATCH net] net: socket: add check for negative optlen in compat setsockopt
From: David Miller
Date: Fri Feb 22 2019 - 14:50:39 EST
From: Jann Horn <jannh@xxxxxxxxxx>
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@xxxxxxxxxx>
Applied and queued up for -stable, thanks Jann.