From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl0-f70.google.com (mail-pl0-f70.google.com [209.85.160.70]) by kanga.kvack.org (Postfix) with ESMTP id BFA066B05AC for ; Wed, 9 May 2018 21:44:50 -0400 (EDT) Received: by mail-pl0-f70.google.com with SMTP id a5-v6so336645plp.8 for ; Wed, 09 May 2018 18:44:50 -0700 (PDT) Received: from mail.kernel.org (mail.kernel.org. [198.145.29.99]) by mx.google.com with ESMTPS id w63-v6si22087626pgd.32.2018.05.09.18.44.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 May 2018 18:44:49 -0700 (PDT) From: "Luis R. Rodriguez" Subject: [PATCH v2 0/2] mm: PAGE_KERNEL_* fallbacks Date: Wed, 9 May 2018 18:44:45 -0700 Message-Id: <20180510014447.15989-1-mcgrof@kernel.org> Sender: owner-linux-mm@kvack.org List-ID: To: arnd@arndb.de Cc: gregkh@linuxfoundation.org, willy@infradead.org, geert@linux-m68k.org, linux-m68k@lists.linux-m68k.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Luis R. Rodriguez" While dusting out the firmware loader closet I spotted a PAGE_KERNEL_* fallback hack. This hurts my eyes, and it should also be blinding others. Turns out we have other PAGE_KERNEL_* fallback hacks in other places. This moves them to asm-generic, and keeps track of architectures which need some love or review. At least 0-day was happy with the changes. Matthew Wilcox did put together a PAGE_KERNEL_RO patch for ia64, that needs review and testing, and if it goes well it should be merged. Luis R. Rodriguez (2): mm: provide a fallback for PAGE_KERNEL_RO for architectures mm: provide a fallback for PAGE_KERNEL_EXEC for architectures drivers/base/firmware_loader/fallback.c | 5 ---- include/asm-generic/pgtable.h | 36 +++++++++++++++++++++++++ mm/nommu.c | 4 --- mm/vmalloc.c | 4 --- 4 files changed, 36 insertions(+), 13 deletions(-) -- 2.17.0