From patchwork Fri Feb 16 15:29:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 128602 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp685011ljc; Fri, 16 Feb 2018 07:31:25 -0800 (PST) X-Google-Smtp-Source: AH8x2241EgneDC/qctuon61VvfyxuiwqWosirDXCm/J4R1/wZzwqUbaDs1hA4rU20Wbo0HEIJB8c X-Received: by 2002:a17:902:e83:: with SMTP id 3-v6mr6194672plx.158.1518795084063; Fri, 16 Feb 2018 07:31:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518795084; cv=none; d=google.com; s=arc-20160816; b=maN0mQBTyYh7esQF2ZQhPgCDgtHBGCWuvztV7+nVkVQJQmWgrMJjpYk8h8e6HaJUsa pbkuxCZxCx2el8YY2VFfdW824W8nWOhNyTnwWkxcF9o5iekiyFPhdLyXdEiK6GSsvSa9 6a54Unj2K+ohr6FcCcos1vMp3y8rlN5nQxCTeU3SUo1l7Cw+rXgl5DfmKbX54N24wdtk XoHISM5dRp4v32PrqOAmBXGriNOtIvOMF4FwmIE9nZBkgdTwWpcQv9WEv60SVVxoqfan KV5ozHLC9URRKKFUNIh2I7ZW4UJklbxDNeRYVB2hffsTpOpMn1O8OHMLrfgVOSBtN5oA PnLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=fG46ZNVLTgu7XmWopUFaxxygs0qO24oNykNurXwDdYY=; b=F8c/Lq5Y79yVsTsLtT3ON1Dkx7Hth8V9MvT6hc9nEQuwsY7kHXFUSrj5jUZA9r4ury V7uze2h1vcE4jagK4kCq59ThzSYZNLKZ+PS0nwPQ7ZmWN5mNicffjSncJ6vr8dDgGEGD MzKRUWc/hrtTyiiRThl5Ngtg2EscAIL1V66xZrltdQp1CFOeaiRmIlnilWKqv8JspkK5 Q1fOYjnOo3LDhpQ9wJ7tPhphIfBOmEpE0p6qcoznJDXbHgM0t3or5H8gnHE05zmgtlC8 /UzqNEtkJvw67VG+aVqj5ewIuB0PFWVsa12RVNH8rxjMy9TUvEbt2P5BIdOn9UJr7CGs OU5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n7si1393337pga.250.2018.02.16.07.31.23; Fri, 16 Feb 2018 07:31:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758240AbeBPPbO (ORCPT + 28 others); Fri, 16 Feb 2018 10:31:14 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:36073 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755447AbeBPPbL (ORCPT ); Fri, 16 Feb 2018 10:31:11 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.145]) with ESMTPA (Nemesis) id 0LhTpQ-1eQWHL1yW8-00mf9s; Fri, 16 Feb 2018 16:29:55 +0100 From: Arnd Bergmann To: stable@vger.kernel.org Cc: Arnd Bergmann , Josh Poimboeuf , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Andrew Morton , Greg Kroah-Hartman , "Kirill A. Shutemov" , linux-kernel@vger.kernel.org Subject: [PATCH] [stable 4.14 patch] x86: fix KMEMCHECK warning about FRAME_POINTER Date: Fri, 16 Feb 2018 16:29:10 +0100 Message-Id: <20180216152949.1630609-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:1vfeA7f9UEU8w7UR1pad+xMCyvjoFKyuLmb5ehOCEro28QEm1vV WNA2HIlsPTTNosDrL31VXwhzCbtBLqqdXNAdgyDK4c3JOlIfshK26RaW/wdvftlcnewpvsB Higk1tj0akCNa0ZLMSYEjfrSTVJ59glHTk7YiGWtyqwRXUVro1BTN4JcqVzKTvv8/y5BKPa iwznWvyJMbtWPIx5U9iqw== X-UI-Out-Filterresults: notjunk:1; V01:K0:PiZ/lR/ABgo=:lAvh9angW0CPQkj+Th1mvu X5+X69Cl4YObsa4Ecu2rNZBW0i5zgk4GJtaLBCwPW1C6g3n26/f/YYAdXePr4+OWZvivljB9+ L5VQ8T6uhnm9yt+goZgOKKZJysKOKaj90eY2fibHERNGJ422mzDnQCszp2LIrh/EZfFXKOKeZ Mp49db5Wbf+CRLOEwCnKRQBshuCxFHptgNAb4hskWh+D2dkBuZCdxiKHO+Ei6LkUdX+vEalxo 2UuyvpS7hZpJpDa615Lq6vsFrQxld6BsSPwZnqHWzFw3ngtJosIRSQPuK3YMxI70aOsK+7Vo1 ELv2/iAU+IoSHtM6DkoIPistEHnAsKtgio7ac4aZRwJ9Ydkj2mbQKhXgKf1XYMrSwc1oTG17J svdVZg8zNvCTDPrx0XacYdmtz+7f03e6ObDNc6QPAuBQzTqf0kpmu0EU7tPVxJj1+f2FBPGIL H9NWzx3fxVGZP3cGNezcNFE4Z37/o0N3RlAkaOnMqdRUjCRX0H4bjFs2GaRMtoh1W6LlVDBKm nPU5c4rqinGYV8JyyS10QCAST+AKEDq8qpKFSRmgRFrwLbmV9N1eQg1T+nBNODw6UF4g6MgpU nVeMfRclK909oiy8j0ZHuCG8ZxNp28SiLchAyb+taXmZovEt2IjhHWNmzllGaBRF5iRHWw32G OXGhC1CMiEOAGivWm5vYuHSbTk6hPZYxMjW498iJXs4AHGtQx4igvss9rhLRvMerm2OLVHKt2 bmr6glwUZbwLrtfF3Jyb/txj5WEv7W7+g08Tiw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When KMEMCHECK is enabled without UNWINDER_FRAME_POINTER, we get a Kconfig warning, presumably harmless: warning: (FAULT_INJECTION_STACKTRACE_FILTER && LATENCYTOP && KMEMCHECK && LOCKDEP && UNWINDER_FRAME_POINTER) selects FRAME_POINTER which has unmet direct dependencies (DEBUG_KERNEL && (CRIS || M68K || FRV || UML || SUPERH || BLACKFIN || MN10300 || METAG) || ARCH_WANT_FRAME_POINTERS || !UNWINDER_ORC && !UNWINDER_GUESS) In newer mainline kernels, the KMEMCHECK option has been removed, so this no longer happens. Adding the unwinder as a direct dependency for KMEMCHECK works for 4.14-stable as well and documents the dependency better. Fixes: 81d387190039 ("x86/kconfig: Consolidate unwinders into multiple choice selection") Cc: Josh Poimboeuf Signed-off-by: Arnd Bergmann --- arch/x86/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 17de6acc0eab..3fc58c1a166b 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -111,7 +111,7 @@ config X86 select HAVE_ARCH_JUMP_LABEL select HAVE_ARCH_KASAN if X86_64 select HAVE_ARCH_KGDB - select HAVE_ARCH_KMEMCHECK + select HAVE_ARCH_KMEMCHECK if !UNWINDER_ORC && !UNWINDER_GUESS select HAVE_ARCH_MMAP_RND_BITS if MMU select HAVE_ARCH_MMAP_RND_COMPAT_BITS if MMU && COMPAT select HAVE_ARCH_COMPAT_MMAP_BASES if MMU && COMPAT