On Wed, 25 Jul 2018 13:22:36 -0700Thank you Steve, much appreciated feedback, I have asked the security developers to keep this in mind and come up with a correct fix.
Mark Salyzyn <salyzyn@xxxxxxxxxxx> wrote:
From: Nick Desaulniers <ndesaulniers@xxxxxxxxxx>Wait!!!! This breaks perf and trace-cmd! They require this to be able
Switch from 0x%lx to 0x%pK to print the kernel addresses.
Fixes: CVE-2017-0630
to print various strings in trace events. This file is root read only,
as the CVE says.
NAK for this fix. Come up with something that doesn't break perf and
trace-cmd. That will not be trivial, as the format is stored in the
ring buffer with an address, then referenced directly. It also handles
trace_printk() functions that simply point to the string format itself.
A fix would require having a pointer be the same that is referenced
inside the kernel as well as in this file. Maybe make the format string
placed in a location that doesn't leak where the rest of the kernel
exists?
-- Steve