mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Grab the process lock around psignal().
Noticed by: tanimura
This commit is contained in:
parent
344d118fd4
commit
7063595315
1 changed files with 2 additions and 0 deletions
|
|
@ -273,7 +273,9 @@ smbfs_writevnode(struct vnode *vp, struct uio *uiop,
|
|||
if (uiop->uio_resid == 0)
|
||||
return 0;
|
||||
if (p && uiop->uio_offset + uiop->uio_resid > p->p_rlimit[RLIMIT_FSIZE].rlim_cur) {
|
||||
PROC_LOCK(p);
|
||||
psignal(p, SIGXFSZ);
|
||||
PROC_UNLOCK(p);
|
||||
return EFBIG;
|
||||
}
|
||||
smb_makescred(&scred, p, cred);
|
||||
|
|
|
|||
Loading…
Reference in a new issue