Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148411857
D52278.1786713978.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
411 B
Referenced Files
None
Subscribers
None
D52278.1786713978.diff
View Options
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -1045,8 +1045,7 @@
crextend(newcred, ngrp);
p = td->td_proc;
PROC_LOCK(p);
- oldcred = p->p_ucred;
- crcopy(newcred, oldcred);
+ oldcred = crcopysafe(p, newcred);
if ((error = priv_check_cred(oldcred, PRIV_CRED_SETGROUPS)) != 0) {
PROC_UNLOCK(p);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 14, 1:26 PM (9 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29406850
Default Alt Text
D52278.1786713978.diff (411 B)
Attached To
Mode
D52278: linux: setgroups(): Avoid allocation under the process lock
Attached
Detach File
Event Timeline
Log In to Comment