diff options
author | Jann Horn <jannh@google.com> | 2019-02-20 22:34:54 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-22 20:49:28 +0100 |
commit | 52baf9878b65872a7fc735d7fae3350ea9f30646 (patch) | |
tree | 4cf2045a11e399b9fc4a6930be848a3554c7d752 /Documentation/networking/switchdev.txt | |
parent | ipv6: route: purge exception on removal (diff) | |
download | linux-52baf9878b65872a7fc735d7fae3350ea9f30646.tar.xz linux-52baf9878b65872a7fc735d7fae3350ea9f30646.zip |
net: socket: add check for negative optlen in compat setsockopt
__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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/networking/switchdev.txt')
0 files changed, 0 insertions, 0 deletions