]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r317660, r317710
authorbrooks <brooks@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 15 May 2017 23:13:49 +0000 (23:13 +0000)
committerbrooks <brooks@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 15 May 2017 23:13:49 +0000 (23:13 +0000)
commit22d5c69edf9b8c8e022d7dbf6425c56008adf161
treed96f31d598a40545372e984b02f4375da1d4f4da
parent6ed620c5c11da3d8b97690b92ee047da056b01b6
MFC r317660, r317710

r317660:
Support clnt_raw's use of FD_SETSIZE as a fake file descriptor.

Accomplish this by allocating space for it in __svc_xports and allowing
it to be registered.  The failure to allocate space was causing an
out-of-bounds read in svc_getreq_common().  The failure to register
caused PR 211804.

The bug was found with CHERI bounds checking.

PR: 211804
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Reviewed by: ngie
Differential Revision: https://reviews.freebsd.org/D10528

r317710:
Remove expected failure now that it was fixed in r317660.

PR: 211804
Reviewed by: ngie
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D10576

git-svn-id: svn://svn.freebsd.org/base/stable/10@318327 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/netbsd-tests/lib/libc/rpc/t_rpc.c
lib/libc/rpc/svc.c