diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2018-10-08 21:53:48 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-10-10 15:16:13 +0200 |
commit | c200dac78fec66d87ef262cac38cfe4feabdf737 (patch) | |
tree | d9893837b598939b240f23b17f927c289bb065fc /sound | |
parent | resource: Clean it up a bit (diff) | |
download | linux-c200dac78fec66d87ef262cac38cfe4feabdf737.tar.xz linux-c200dac78fec66d87ef262cac38cfe4feabdf737.zip |
x86/mm: Do not warn about PCI BIOS W+X mappings
PCI BIOS requires the BIOS area 0x0A0000-0x0FFFFFF to be mapped W+X for
various legacy reasons. When CONFIG_DEBUG_WX is enabled, this triggers the
WX warning, but this is misleading because the mapping is required and is
not a result of an accidental oversight.
Prevent the full warning when PCI BIOS is enabled and the detected WX
mapping is in the BIOS area. Just emit a pr_warn() which denotes the
fact. This is partially duplicating the info which the PCI BIOS code emits
when it maps the area as executable, but that info is not in the context of
the WX checking output.
Remove the extra %p printout in the WARN_ONCE() while at it. %pS is enough.
Reported-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Borislav Petkov <bp@suse.de>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Kees Cook <keescook@chromium.org>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lkml.kernel.org/r/alpine.DEB.2.21.1810082151160.2455@nanos.tec.linutronix.de
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions