The patch titled Subject: x86/mm/init.c: devmem_is_allowed() off by one has been added to the -mm tree. Its filename is x86-mm-initc-devmem_is_allowed-off-by-one.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: T Makphaibulchoke <tmac@xxxxxx> Subject: x86/mm/init.c: devmem_is_allowed() off by one Fix an off-by-one error in devmem_is_allowed(), which allows accesses to physical addresses 0x100000-0x100fff, an extra page past 1MB. Signed-off-by: T Makphaibulchoke <tmac@xxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: "H. Peter Anvin" <hpa@xxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/x86/mm/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN arch/x86/mm/init.c~x86-mm-initc-devmem_is_allowed-off-by-one arch/x86/mm/init.c --- a/arch/x86/mm/init.c~x86-mm-initc-devmem_is_allowed-off-by-one +++ a/arch/x86/mm/init.c @@ -319,7 +319,7 @@ unsigned long __init_refok init_memory_m */ int devmem_is_allowed(unsigned long pagenr) { - if (pagenr <= 256) + if (pagenr < 256) return 1; if (iomem_is_exclusive(pagenr << PAGE_SHIFT)) return 0; _ Patches currently in -mm which might be from tmac@xxxxxx are x86-mm-initc-devmem_is_allowed-off-by-one.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html