OSDN Git Service

Merge branch 'kallsyms-restrictions'
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Nov 2017 00:33:33 +0000 (16:33 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Nov 2017 00:33:33 +0000 (16:33 -0800)
commit9d5604101e40c1d9d020384de11f0d68398c8844
tree964f879da4eaa770214ea79850d53b52729c20d1
parentba1029c9cbc5af834467bf264e58f9d1074735fb
parentc0f3ea1589394deac2d840c685f57c69e4ac4243
Merge branch 'kallsyms-restrictions'

Merge /proc/kallsyms pointer value restrictions.

Instead of using %pK, and making it about root access (at the wrong
time, no less), make the whole choice of whether to show the actual
pointer value be very explicit to the kallsyms code.

In particular, we can now default to not doing so, and yet avoid
annoying kernel profiling by actually looking at whether kernel
profiling is allowed or not (by default it is not).

This is all mostly preparation for the real "let's stop leaking kernel
addresses" work that Tobin Harding is working on.

Small steps.

* kallsyms-restrictions:
  stop using '%pK' for /proc/kallsyms pointer values