]> 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)
commitb1e9d9d4ae05dd2c2f191d8c4452d5f9fdfa84bc
tree82e71d01a1deffd840e034c19f9c5bc4d8495c63
parent4991d18874b83bfdf1f494f1a68f7ca4d2f32ab0
Revert "x86: remove the kernel code/data/bss resources from /proc/iomem"

This reverts commit 9bfce212b98939c8017b2d2a13f1bfbacb7b90df.

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