]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r357234, r357365, r357375:
authorKristof Provost <kp@FreeBSD.org>
Tue, 4 Feb 2020 04:29:54 +0000 (04:29 +0000)
committerKristof Provost <kp@FreeBSD.org>
Tue, 4 Feb 2020 04:29:54 +0000 (04:29 +0000)
commitbb480c19961fd8c64c86f345af39454a9cffa905
treef7de4b4da873e36fb669f468d99648df0726f1c3
parent03746bf0ae7883be9450abd549010f5a74392d1c
MFC r357234, r357365, r357375:

tests: Test for an epair panic

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>
tests/sys/net/Makefile
tests/sys/net/if_epair.c [new file with mode: 0644]