[PATCH v5] fs/proc, core/debug: Don't expose absolute kernel addresses via wchan

From: Ingo Molnar
Date: Thu Oct 01 2015 - 06:57:36 EST



* Andrey Ryabinin <ryabinin.a.a@xxxxxxxxx> wrote:

> 2015-10-01 13:39 GMT+03:00 Ingo Molnar <mingo@xxxxxxxxxx>:
> >
> > There's another problem as well: your change loses the PTRACE_MODE_READ permission
> > check.
>
> I guess, you should fix your patch than, because it removed this check
> likewise...

Doh, indeed. I didn't notice that bug in testing, because the wchan field of
/proc/PID/stat was 0/1 according to the ptrace check so 'ps' masked the symbol
accordingly - but the /proc/PID/wchan value was always accessible.

Updated patch below.

Thanks,

Ingo

=======================>