From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751079AbdJBJCW (ORCPT ); Mon, 2 Oct 2017 05:02:22 -0400 Received: from mail-oi0-f48.google.com ([209.85.218.48]:56200 "EHLO mail-oi0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750944AbdJBJCU (ORCPT ); Mon, 2 Oct 2017 05:02:20 -0400 X-Google-Smtp-Source: AOwi7QCITFrzuO5YBCrSHoiTOeb/cmnVr/2SIbX2WCszTPawlmevu7wLncXEUAO2uJUlDDeyJfbWzVOYyGKocagzT1U= MIME-Version: 1.0 In-Reply-To: <20171002084119.3504771-1-arnd@arndb.de> References: <20171002084119.3504771-1-arnd@arndb.de> From: Arnd Bergmann Date: Mon, 2 Oct 2017 11:02:19 +0200 X-Google-Sender-Auth: e23mBehqivpjxSp0aC8NSKLsMkk Message-ID: Subject: Re: [PATCH] string.h: work around for increased stack usage To: Andrey Ryabinin Cc: David Laight , Mauro Carvalho Chehab , "David S . Miller" , Alexander Potapenko , Dmitry Vyukov , Masahiro Yamada , Andrew Morton , Kees Cook , Geert Uytterhoeven , Greg Kroah-Hartman , "linux-media @ vger . kernel . org" , "linux-kernel @ vger . kernel . org" , "kasan-dev @ googlegroups . com" , "linux-kbuild @ vger . kernel . org" , Arnd Bergmann Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 2, 2017 at 10:40 AM, Arnd Bergmann wrote: > > void fortify_panic(const char *name) __noreturn __cold; > + > +/* work around GCC PR82365 */ > +#if defined(CONFIG_KASAN) && !defined(__clang__) && GCC_VERSION <= 80000 > +#define fortify_panic(x) \ > + do { \ > + asm volatile(""); \ > + fortify_panic(x); \ > + } while (0) > +#endif This broke the build for the fortify_panic() definition in lib/string.c which clashes with the macro. I've fixed it locally by renaming it to __fortify_panic, but won't post the fixed version until I get some feedback on the basic approach. Arnd