mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 09:00:28 +00:00
Grab the process lock around psignal().
Noticed by: tanimura
This commit is contained in:
parent
344d118fd4
commit
7063595315
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79872
|
@ -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