diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-08 12:51:04 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-08 12:51:04 -0800 |
commit | c0f3ea1589394deac2d840c685f57c69e4ac4243 (patch) | |
tree | 4dd33e19df563af8733b2c1070131e2c5ece44c9 /kernel/module.c | |
parent | d6a2cf07f0c91e339d2c53f1e1ca6e731af2e72a (diff) | |
download | linux-c0f3ea1589394deac2d840c685f57c69e4ac4243.tar.bz2 |
stop using '%pK' for /proc/kallsyms pointer values
Not only is it annoying to have one single flag for all pointers, as if
that was a global choice and all kernel pointers are the same, but %pK
can't get the 'access' vs 'open' time check right anyway.
So make the /proc/kallsyms pointer value code use logic specific to that
particular file. We do continue to honor kptr_restrict, but the default
(which is unrestricted) is changed to instead take expected users into
account, and restrict access by default.
Right now the only actual expected user is kernel profiling, which has a
separate sysctl flag for kernel profile access. There may be others.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/module.c')
0 files changed, 0 insertions, 0 deletions