]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit75b7892b63107b38b27783672a9482bf08c2511d
tree82e71d01a1deffd840e034c19f9c5bc4d8495c63
parent76030c7e2249eb62d0ff78bb11047f05b68792c6
Revert "x86: remove the kernel code/data/bss resources from /proc/iomem"

This reverts commit 17db9a4b4a5965a6e8bafcfb9b48d289f805ffa6.

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