Module Name: src Committed By: snj Date: Tue Jul 25 01:55:21 UTC 2017
Modified Files: src/sys/kern [netbsd-8]: uipc_domain.c src/sys/net [netbsd-8]: rtsock.c src/sys/sys [netbsd-8]: socket.h Log Message: Pull up following revision(s) (requested by ozaki-r in ticket #140): sys/kern/uipc_domain.c: 1.97-1.99 sys/net/rtsock.c: 1.225-1.227 sys/sys/socket.h: 1.123 Restore the original length of a sockaddr for netmask route(8) passes a sockaddr for netmask that is truncated with its prefixlen. However the kernel basically doesn't expect such format and may read beyond the data. So restore the original length of the the data at the beginning of the kernel for the rest components. Failures of ATF tests such as route_flags_blackhole6 should be fixed. -- Avoid DIAGNOSTIC warning with previous fix and simplify it (don't require memory alloc/free). -- put the code that returns the sizeof the socket by family in one place. -- don't warn about AF_LINK sockets with sa_len less than the size of the sockaddr -- don't print diagnostic for AF_LINK To generate a diff of this commit: cvs rdiff -u -r1.96 -r1.96.10.1 src/sys/kern/uipc_domain.c cvs rdiff -u -r1.213.2.1 -r1.213.2.2 src/sys/net/rtsock.c cvs rdiff -u -r1.122 -r1.122.2.1 src/sys/sys/socket.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.