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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164861
@ -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