]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "x86/mm: Limit mmap() of /dev/mem to valid physical addresses"
authorIngo Molnar <mingo@kernel.org>
Fri, 27 Oct 2017 08:03:13 +0000 (10:03 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 27 Oct 2017 08:06:49 +0000 (10:06 +0200)
commit174c21aba4b32c403772ebc019beba639c1b8ae3
tree819926797df844de9ae09fc211daf07390ca5a04
parentaf344335df914e88aa96332afe7a10a4bb08c87b
Revert "x86/mm: Limit mmap() of /dev/mem to valid physical addresses"

This reverts commit e87006a6583ab7e6854c4789d08a9bf1c00316e0.

There's unanticipated interaction with some boot parameters like 'mem=',
which now cause the new checks via valid_mmap_phys_addr_range() to be too
restrictive, crashing a Qemu bootup in fact, as reported by Fengguang Wu.

So while the motivation of the change is still entirely valid, we
need a few more rounds of testing to get it right - it's way too late
after -rc6, so revert it for now.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Craig Bergstrom <craigb@google.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Luis R. Rodriguez <mcgrof@suse.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Toshi Kani <toshi.kani@hp.com>
Cc: dsafonov@virtuozzo.com
Cc: kirill.shutemov@linux.intel.com
Cc: mhocko@suse.com
Cc: oleg@redhat.com
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/io.h
arch/x86/mm/mmap.c