]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r326362:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 8 Dec 2017 15:26:57 +0000 (15:26 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 8 Dec 2017 15:26:57 +0000 (15:26 +0000)
commit41be1ee6378a1aa754f6755274e442352db1fc85
treee346d0e65af20e7ea8687f225f463474957902f4
parente714327f3bb2101945810f45282af36b2fc23263
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/10@326692 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