]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r317660, r317710
authorbrooks <brooks@FreeBSD.org>
Mon, 15 May 2017 22:41:01 +0000 (22:41 +0000)
committerbrooks <brooks@FreeBSD.org>
Mon, 15 May 2017 22:41:01 +0000 (22:41 +0000)
commit83379d6a8d78669552953e860ff82b47ee49d390
treed1a72a78a86c411d86c3586afd00eb8b5befc302
parentf01e7bdca8673da4c93750765c20f2446363910c
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
contrib/netbsd-tests/lib/libc/rpc/t_rpc.c
lib/libc/rpc/svc.c