]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r326362:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 8 Dec 2017 15:37:36 +0000 (15:37 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 8 Dec 2017 15:37:36 +0000 (15:37 +0000)
commitb8d24dcf58ecc6c53832540c883f1af4c9e3e940
tree3ce8326759f9229134db53202d77dc4eaf6fe4d3
parent1ad6c4a84f29757fb87ad6c535717625f1ff8e39
MFC r326362:
Disallow TUN and TAP character device IOCTLs to modify the network device
type to any value. This can cause page faults and panics due to accessing
uninitialized fields in the "struct ifnet" which are specific to the network
device type.

Found by: jau@iki.fi
PR: 223767
Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/8@326694 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
share/man/man4/tap.4
share/man/man4/tun.4
sys/net/if_tap.c
sys/net/if_tun.c