git: if_tap: Disallow change network device type
    Aaron LI 
    aly at crater.dragonflybsd.org
       
    Mon Jul 16 23:58:45 PDT 2018
    
    
  
commit fbae8fc9ab5d7b5dd6de56568897941ff6311568
Author: Aaron LI <aly at aaronly.me>
Date:   Tue Jul 17 14:29:44 2018 +0800
    if_tap: Disallow change network device type
    
    Disallow ioctl(2) to change the network device type of tap(4).
    Otherwise, page faults and panics can happen when access uninitialized
    fields in the "struct ifnet" which are specific to the network device
    type.
    
    Obtained-from: FreeBSD (revision 326362)
Summary of changes:
 share/man/man4/tap.4 | 11 +++++++++--
 sys/net/tap/if_tap.c |  3 ++-
 sys/net/tap/if_tap.h |  6 +++---
 3 files changed, 14 insertions(+), 6 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fbae8fc9ab5d7b5dd6de56568897941ff6311568
-- 
DragonFly BSD source repository
    
    
More information about the Commits
mailing list