Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information