5458a63bca
if_epair abused the ifr_data field to insert its second interface in IFC_IFLIST. If userspace provides a value for ifr_data it would get dereferenced by the kernel leading to a panic. Reported by: Ilja Van Sprundel <ivansprundel@ioactive.com> MFC after: 3 days
27 lines
505 B
Makefile
27 lines
505 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
TESTSDIR= ${TESTSBASE}/sys/net
|
|
BINDIR= ${TESTSDIR}
|
|
|
|
ATF_TESTS_SH+= if_lagg_test
|
|
ATF_TESTS_SH+= if_clone_test
|
|
ATF_TESTS_SH+= if_tun_test
|
|
ATF_TESTS_SH+= if_vlan
|
|
ATF_TESTS_C+= if_epair
|
|
|
|
TESTS_SUBDIRS+= routing
|
|
|
|
# The tests are written to be run in parallel, but doing so leads to random
|
|
# panics. I think it's because the kernel's list of interfaces isn't properly
|
|
# locked.
|
|
TEST_METADATA+= is_exclusive=true
|
|
|
|
MAN=
|
|
PROGS+= randsleep
|
|
|
|
WARNS?= 6
|
|
|
|
.include <bsd.test.mk>
|