summaryrefslogtreecommitdiff
path: root/bsp/efm32/Libraries/SConscript
diff options
context:
space:
mode:
authoryi chen <[email protected]>2026-07-09 11:49:33 +0800
committerRbb666 <[email protected]>2026-07-22 21:50:12 +0800
commit4fbdf331d12a820feaa7b5724c28bd78b651074a (patch)
tree7063ee28365637fdd5f7b51d07d4a8453c460ded /bsp/efm32/Libraries/SConscript
parent69b66ad4112103f83328b1729b6b586efb5a6da1 (diff)
lwp: copy timeout into kernel space in sys_select()
sys_select() passed the raw user-space timeout pointer straight through to select(), unlike readfds/writefds/exceptfds which are all validated with lwp_user_accessable() and copied into kernel memory first. A malicious or buggy user thread could pass a timeout pointing at unmapped or otherwise invalid memory, which select() would then dereference directly (timeout->tv_sec / timeout->tv_usec) without any check, from kernel context. Validate and copy it into a kernel-local struct timeval the same way the fd_set arguments already are, before it reaches select(). Fixes #10298 Signed-off-by: yi chen <[email protected]>
Diffstat (limited to 'bsp/efm32/Libraries/SConscript')
0 files changed, 0 insertions, 0 deletions