freebsd-dev/sys/ofed/drivers/infiniband/ulp/sdp
Mark Johnston f161d294b9 Add missing sockaddr length and family validation to various protocols
Several protocol methods take a sockaddr as input.  In some cases the
sockaddr lengths were not being validated, or were validated after some
out-of-bounds accesses could occur.  Add requisite checking to various
protocol entry points, and convert some existing checks to assertions
where appropriate.

Reported by:	syzkaller+KASAN
Reviewed by:	tuexen, melifaro
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D29519
2021-05-03 13:35:19 -04:00
..
sdp_bcopy.c
sdp_cma.c SDP: Fix brain-o from r351162 2019-08-17 10:11:34 +00:00
sdp_dbg.h
sdp_main.c Add missing sockaddr length and family validation to various protocols 2021-05-03 13:35:19 -04:00
sdp_proc.c
sdp_rx.c SDP: Also log a nice status string in RX WC error dbg() 2019-08-17 03:06:46 +00:00
sdp_tx.c
sdp_zcopy.c
sdp.h OFED: Unbreak SDP support in ibcore 2019-08-17 18:54:07 +00:00