--- - branch: MAIN date: Thu Feb 14 01:00:08 UTC 2013 files: - new: '1.159' old: '1.158' path: src/sys/kern/uipc_syscalls.c pathrev: src/sys/kern/uipc_syscalls.c@1.159 type: modified - new: '1.141' old: '1.140' path: src/sys/kern/uipc_usrreq.c pathrev: src/sys/kern/uipc_usrreq.c@1.141 type: modified id: 20130214T010008Z.5d41721f0e34788f4935abe770d32a866dd4e37b log: | 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 module: src subject: 'CVS commit: src/sys/kern' unixtime: '1360803608' user: riastradh