[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190222.115036.2198036492786822658.davem@davemloft.net>
Date: Fri, 22 Feb 2019 11:50:36 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: jannh@...gle.com
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net] net: socket: add check for negative optlen in
compat setsockopt
From: Jann Horn <jannh@...gle.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@...gle.com>
Applied and queued up for -stable, thanks Jann.
Powered by blists - more mailing lists