]> 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]>
Wed, 3 Jun 2026 04:02:35 +0000 (01:02 -0300)
commit165d81c4e29137617aff2750bbd9f0b9afb383e1
tree0b28d21a25ad8c0730b69183edc70aca85f5cb03
parent0c76ae71f7619c1611b44a2132102402446a320c
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