]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
security: Round 6.4 socket copy_to_user SMAP compliance (K35)
authorTulio A M Mendes <[email protected]>
Mon, 25 May 2026 19:23:16 +0000 (16:23 -0300)
committerTulio A M Mendes <[email protected]>
Mon, 25 May 2026 19:23:16 +0000 (16:23 -0300)
commitb38533a8c3f21545c17cb405765424ce5562d8c9
tree170fc683b4d6356d13997566ffd1b1cec19cb857
parent83ec1ca58e4188337e5d99546b26386b163285fa
security: Round 6.4 socket copy_to_user SMAP compliance (K35)

K35: Add bounce buffers to sendmsg/recvmsg for SMAP compliance
- sendmsg: copy_from_user to kernel buffer before ksocket_send/ksocket_sendto
- recvmsg: ksocket_recvfrom to kernel buffer, then copy_to_user to user buffer
- Bounce buffer size limited to 4096 bytes per iov entry
- Ensures SMAP compliance by not passing user buffers directly to lwIP

Tests: 119/119 PASS (smoke test, SMP=4)
src/kernel/syscall.c