Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162635357
D55341.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
487 B
Referenced Files
None
Subscribers
None
D55341.diff
View Options
diff --git a/sys/kern/kern_procctl.c b/sys/kern/kern_procctl.c
--- a/sys/kern/kern_procctl.c
+++ b/sys/kern/kern_procctl.c
@@ -267,7 +267,11 @@
error = cr_cansignal(w->cr, w->target, w->rk->rk_sig);
if (error != 0) {
- if (*w->error == ESRCH) {
+ /*
+ * Hide ESRCH errors to ensure that this function
+ * cannot be used as an oracle for process visibility.
+ */
+ if (error != ESRCH && *w->error == 0) {
w->rk->rk_fpid = w->target->p_pid;
*w->error = error;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 16, 7:08 AM (6 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35128570
Default Alt Text
D55341.diff (487 B)
Attached To
Mode
D55341: procctl(PROC_REAP_KILL): align error reporting with pgkill(2)
Attached
Detach File
Event Timeline
Log In to Comment