Re: [PATCH 2/2] Yama: add PTRACE exception tracking

From: Eric Paris
Date: Wed Jun 30 2010 - 11:41:33 EST

On Tue, Jun 29, 2010 at 8:40 PM, Kees Cook <kees.cook@xxxxxxxxxxxxx> wrote:
> Some application suites have external crash handlers that depend on
> being able to use PTRACE to generate crash reports (KDE, Chromium, etc).
> Since the inferior process generally knows the PID of the debugger,
> it can use PR_SET_PTRACER to allow a specific PID and its descendants
> to perform the PTRACE instead of only a direct ancestor.
> Signed-off-by: Kees Cook <kees.cook@xxxxxxxxxxxxx>

any normal unpriv application:

while(1) {
prctl(PR_SET_PTRACER, 1, 0, 0, 0);

watch kernel run out of memory and bring down the box. Seems like
quite the DoS.....

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at