Revert "x86: remove the kernel code/data/bss resources from /proc/iomem"
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 14 Apr 2016 18:18:57 +0000 (11:18 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 14 Apr 2016 19:55:32 +0000 (12:55 -0700)
commit4046d6e81f33b7ef50d6668b78076d54c5e066b6
tree82e71d01a1deffd840e034c19f9c5bc4d8495c63
parent90de6800c240dfe089e254116a7c055e70b709fd
Revert "x86: remove the kernel code/data/bss resources from /proc/iomem"

This reverts commit c4004b02f8e5b9ce357a0bb1641756cc86962664.

Sadly, my hope that nobody would actually use the special kernel entries
in /proc/iomem were dashed by kexec.  Which reads /proc/iomem explicitly
to find the kernel base address.  Nasty.

Anyway, that means we can't do the sane and simple thing and just remove
the entries, and we'll instead have to mask them out based on permissions.

Reported-by: Zhengyu Zhang <zhezhang@redhat.com>
Reported-by: Dave Young <dyoung@redhat.com>
Reported-by: Freeman Zhang <freeman.zhang1992@gmail.com>
Reported-by: Emrah Demir <ed@abdsec.com>
Reported-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/kernel/setup.c