]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r326362:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 8 Dec 2017 15:30:59 +0000 (15:30 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 8 Dec 2017 15:30:59 +0000 (15:30 +0000)
commit6a5f0fc1d4afb92d9f2b70ad8f47b054caa6555b
treea8e7ea53067f026c95f5ac62a9008a292f35fb04
parent0a287ab0d54d9a8edc4341bc033dfccd884a2be0
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/9@326693 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