Fix SIOCGDRVSPEC/BRDGGIFSSTP ioctl: make it copyin() the user
provided buffer length before trying to use it. Reviewed by: thompsa Approved by: bz (mentor) MFC after: 3 days
This commit is contained in:
parent
786e4fc47d
commit
b8f45801b0
@ -421,7 +421,7 @@ const struct bridge_control bridge_control_table[] = {
|
||||
BC_F_COPYOUT },
|
||||
|
||||
{ bridge_ioctl_gifsstp, sizeof(struct ifbpstpconf),
|
||||
BC_F_COPYOUT },
|
||||
BC_F_COPYIN|BC_F_COPYOUT },
|
||||
|
||||
{ bridge_ioctl_sproto, sizeof(struct ifbrparam),
|
||||
BC_F_COPYIN|BC_F_SUSER },
|
||||
|
Loading…
Reference in New Issue
Block a user