Now
MAIN commitmail json YAML
src/sys/kern/uipc_syscalls.c@1.159
/
diff
/
nxr@1.159
src/sys/kern/uipc_usrreq.c@1.141 / diff / nxr@1.141
src/sys/kern/uipc_usrreq.c@1.141 / diff / nxr@1.141
Fix some screw cases in cmsg file descriptor passing.
- Don't leave garbage in the control buffer if allocating file
descriptors fails in unp_externalize.
- Scrub the space between CMSG_LEN and CMSG_SPACE to avoid kernel
memory disclosure in unp_externalize.
- Don't read past cmsg_len when closing file descriptors that
couldn't get delivered, in free_rights.
ok christos
- Don't leave garbage in the control buffer if allocating file
descriptors fails in unp_externalize.
- Scrub the space between CMSG_LEN and CMSG_SPACE to avoid kernel
memory disclosure in unp_externalize.
- Don't read past cmsg_len when closing file descriptors that
couldn't get delivered, in free_rights.
ok christos