Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:51168 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbeHOIiT (ORCPT ); Wed, 15 Aug 2018 04:38:19 -0400 Date: Wed, 15 Aug 2018 07:47:33 +0200 From: Greg Kroah-Hartman To: Guenter Roeck Cc: stable@vger.kernel.org, Jiri Kosina , Thomas Gleixner Subject: Re: [PATCH v4.9] x86/speculation/l1tf: Unbreak !__HAVE_ARCH_PFN_MODIFY_ALLOWED architectures Message-ID: <20180815054733.GB10151@kroah.com> References: <1534299286-19000-1-git-send-email-linux@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1534299286-19000-1-git-send-email-linux@roeck-us.net> Sender: stable-owner@vger.kernel.org List-ID: On Tue, Aug 14, 2018 at 07:14:46PM -0700, Guenter Roeck wrote: > From: Jiri Kosina > > commit 6c26fcd2abfe0a56bbd95271fce02df2896cfd24 upstream > > pfn_modify_allowed() and arch_has_pfn_modify_check() are outside of the > !__ASSEMBLY__ section in include/asm-generic/pgtable.h, which confuses > assembler on archs that don't have __HAVE_ARCH_PFN_MODIFY_ALLOWED (e.g. > ia64) and breaks build: > > include/asm-generic/pgtable.h: Assembler messages: > include/asm-generic/pgtable.h:538: Error: Unknown opcode `static inline bool pfn_modify_allowed(unsigned long pfn,pgprot_t prot)' > include/asm-generic/pgtable.h:540: Error: Unknown opcode `return true' > include/asm-generic/pgtable.h:543: Error: Unknown opcode `static inline bool arch_has_pfn_modify_check(void)' > include/asm-generic/pgtable.h:545: Error: Unknown opcode `return false' > arch/ia64/kernel/entry.S:69: Error: `mov' does not fit into bundle > > Move those two static inlines into the !__ASSEMBLY__ section so that they > don't confuse the asm build pass. > > Fixes: 42e4089c7890 ("x86/speculation/l1tf: Disallow non privileged high MMIO PROT_NONE mappings") > Signed-off-by: Jiri Kosina > Signed-off-by: Thomas Gleixner > (cherry picked from commit 6c26fcd2abfe0a56bbd95271fce02df2896cfd24) > [groeck: Context changes] > Signed-off-by: Guenter Roeck > --- > include/asm-generic/pgtable.h | 25 +++++++++++++------------ > 1 file changed, 13 insertions(+), 12 deletions(-) Thanks for this and the other backport of this patch, now applied. greg k-h