diff options
author | 2025-01-15 08:42:20 -0800 | |
---|---|---|
committer | 2025-01-20 16:36:33 -0800 | |
commit | d640627663bfe7d8963c7615316d7d4ef60f3b0b (patch) | |
tree | 791aa6f47ee1a4c641a0664f87137f95887e2a3a /scripts/lib/kdoc/kdoc_parser.py | |
parent | tcp_cubic: fix incorrect HyStart round start detection (diff) | |
download | linux-rng-d640627663bfe7d8963c7615316d7d4ef60f3b0b.tar.xz linux-rng-d640627663bfe7d8963c7615316d7d4ef60f3b0b.zip |
net/rose: prevent integer overflows in rose_setsockopt()
In case of possible unpredictably large arguments passed to
rose_setsockopt() and multiplied by extra values on top of that,
integer overflows may occur.
Do the safest minimum and fix these issues by checking the
contents of 'opt' and returning -EINVAL if they are too large. Also,
switch to unsigned int and remove useless check for negative 'opt'
in ROSE_IDLE case.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Nikita Zhandarovich <n.zhandarovich@fintech.ru>
Link: https://patch.msgid.link/20250115164220.19954-1-n.zhandarovich@fintech.ru
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions