Re: [PATCH] kernel: introduce prctl(PR_LOG_UACCESS)

From
Peter Zijlstra <peterz@infradead.org>
Date
2021-09-22 19:58:46
Also in
lkml
Reply to
Steven Rostedt, 2021-09-22
On Wed, Sep 22, 2021 at 03:22:50PM -0400, Steven Rostedt wrote:
On Wed, 22 Sep 2021 19:46:47 +0200
David Hildenbrand [off-list ref] wrote:
quoted
quoted
All signals except SIGKILL and SIGSTOP are masked for the interval
between the prctl() and the next syscall in order to prevent handlers
for intervening asynchronous signals from issuing syscalls that may
cause uaccesses from the wrong syscall to be logged.  
Stupid question: can this be exploited from user space to effectively 
disable SIGKILL for a long time ... and do we care?
I first misread it too, but then caught my mistake reading it a second
time. It says "except SIGKILL". So no, it does not disable SIGKILL.
Disabling SIGINT might already be a giant nuisance. Letting through
SIGSTOP but not SIGCONT seems awkward. Blocking SIGTRAP seems like a bad
idea too. Blocking SIGBUS as delivered by #MC will be hillarious.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Thread (12 messages) 12 messages, 7 authors, last reply 2021-11-23
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help