Re: [GIT PULL] x86/mm changes for v4.4

From: Linus Torvalds
Date: Thu Nov 05 2015 - 17:05:01 EST


On Thu, Nov 5, 2015 at 1:27 PM, Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> No, I have that. I suspect CONFIG_EFI_PGT_DUMP instead.

Yes, that seems to show the tables, and agrees with the problem address.

So for me I have:

WARNING: CPU: 1 PID: 1 at arch/x86/mm/dump_pagetables.c:225
note_page+0x5dc/0x780()
x86/mm: Found insecure W+X mapping at address
ffff88000005f000/0xffff88000005f000

and that 005f000 address also shows up in the firmware tables:

ACPI: 6 ACPI AML tables successfully acquired and loaded
---[ User Space ]---
0x0000000000000000-0x000000000005f000 380K RW
GLB NX pte
0x000000000005f000-0x0000000000060000 4K RW
GLB x pte
0x0000000000060000-0x0000000000200000 1664K RW
GLB NX pte
...
---[ Low Kernel Mapping ]---
0xffff880000000000-0xffff88000005f000 380K RW
GLB NX pte
0xffff88000005f000-0xffff880000060000 4K RW
GLB x pte
0xffff880000060000-0xffff880000200000 1664K RW
GLB NX pte
...

and there's quite a few other pages there that are RW but not marked
NX. I suspect they come from the EFI runtime services because the
pattern seems to match what I see in that area, but there's at least a
PSE mapping at START_KERNEL_map too, etc.

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/