mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Linux semop system call return EINVAL in case when the invalid nsops
or semid values specified. MFC after: 1 month
This commit is contained in:
parent
c10e04f5a0
commit
b8bec5a415
1 changed files with 2 additions and 0 deletions
|
|
@ -513,6 +513,8 @@ linux_semop(struct thread *td, struct linux_semop_args *args)
|
|||
int nsops;
|
||||
} */ bsd_args;
|
||||
|
||||
if (args->nsops < 1 || args->semid < 0)
|
||||
return (EINVAL);
|
||||
bsd_args.semid = args->semid;
|
||||
bsd_args.sops = PTRIN(args->tsops);
|
||||
bsd_args.nsops = args->nsops;
|
||||
|
|
|
|||
Loading…
Reference in a new issue