]> git.baikalelectronics.ru Git - kernel.git/commit
x86: remove the kernel code/data/bss resources from /proc/iomem
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 6 Apr 2016 20:45:07 +0000 (13:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 6 Apr 2016 20:45:07 +0000 (13:45 -0700)
commit17db9a4b4a5965a6e8bafcfb9b48d289f805ffa6
tree982f8b511e4a46f4001a02a702fcd4d5f1fcd060
parent44f1ff73ab0b54fbcd6498a423ad41c8c6e094c7
x86: remove the kernel code/data/bss resources from /proc/iomem

Let's see if anybody even notices.  I doubt anybody uses this, and it
does expose addresses that should be randomized, so let's just remove
the code.  It's old and traditional, and it used to be cute, but we
should have removed this long ago.

If it turns out anybody notices and this breaks something, we'll have to
revert this, and maybe we'll end up using other approaches instead
(using %pK or similar).  But removing unnecessary code is always the
preferred option.

Noted-by: Emrah Demir <ed@abdsec.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/kernel/setup.c