From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7EC0EC2D0A3 for ; Fri, 6 Nov 2020 09:45:07 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B3DA3208FE for ; Fri, 6 Nov 2020 09:45:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="LuxRfjl9"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="tJ/08p9B" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B3DA3208FE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=k4S8plrnMCsPfPHyhvE13wuhW1LjhWt3zaZNVywqqAA=; b=LuxRfjl9K0rHizYc+Xk3PKgmq r8k+352ZvxGZPfdqIyEYF2tcmDUnKHIZmemb40Lbmmigmnl926DTBYit4co3ZmctF2IKnnpZP5JV4 6HJnKRyPdRFvRZH7xiMiC5cWrkPRoFZy43tGnmeRX+m+z9ZlBhis6QsSkLiiouW/XeXOmBhVc54Az qt6kuxYtD8dbFOvfMYbPhvFCzPZFEswBya+UFpNmuX4bKjQisp8mIbVwqu7qVRrinoXGJweuDiNKa WvOowLfUwZLXS6zzHsGyS8TG05d+SOgkzbKCHbbskEJSXUR1beam/JWneI6PUi07B9xhGC9LES4M3 46BIKKGTA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kayIU-0005TH-Jp; Fri, 06 Nov 2020 09:44:42 +0000 Received: from mail-io1-xd43.google.com ([2607:f8b0:4864:20::d43]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kayIR-0005Sj-Qg for linux-arm-kernel@lists.infradead.org; Fri, 06 Nov 2020 09:44:40 +0000 Received: by mail-io1-xd43.google.com with SMTP id n12so840102ioc.2 for ; Fri, 06 Nov 2020 01:44:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=kKXmeFK4IT0iUDxEvASZoWTF63u7wMJJ7vCAA7uoI5w=; b=tJ/08p9Bp5If8OPmIlMsLxShek2Rd3cEB79sXWLGNzaA3L8AXpDxU+xV8Aw4TBwV+5 I+Mk1d1QO9zKAMwb7guSbtwBJbsGBseBX2+u3NMaa9uwRm2NRnwsndCmzt24tjmmkCvG O14WgRMIwuIxNDogIfm+oCW2F0WpW0Bx0tjRW03EJ2syyj1qGW8RUSoAysNcTZ7S/YvE YvpKBoWjsFCjDL8Qy/hcSygSVJF05pB0JCq8CpxpatBDpQnrg0x/NMWe9Op84L+vd9de Z50Zv4MM6E7sTjLgxJDHOgx1v9zGUbhPEochlP53BMMWoDc0SByLIOQl2ONd0WoylC73 NXQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=kKXmeFK4IT0iUDxEvASZoWTF63u7wMJJ7vCAA7uoI5w=; b=fkNJ1tH6JHdlf5cWxxWJZfViaRYFfTv1X9864x5xoce+NgL+qf4X5AZ+PD4Np2P+1B +SNnvRwzcn8+6k/luY4xuqIXgO3JTjc2NDHcde6c2l6DX+erBVQPpwSPlWlVG1ztVvl3 kkiRU7rz7sJNB2J+E8W3zhNpCdeDSwKWms4rGf6cQXnAybmXqZsKwTSVqD78HdwYTLEj zO0jQUvLTH4C4zdGAjup60Btyn7NIuYCnJKy+qdZrNiS4oth3htD3E4fi90kczQ9N3+F ksG32iJN8Ldwl11j1CAx9mc9Q5rt/bVzZmm4NZEbbCyv5+n0W/Oqr5zNFnY/VwZwBsuo OGgg== X-Gm-Message-State: AOAM533DI+PZofoojNNmMJjgg+m+NavparD6NWJ9l7RzEuNCA6Z8Ax/o UQsOIZI71nGll6Mgvi4oLPw= X-Google-Smtp-Source: ABdhPJyq/7bnDoHfJY+eHTgGntwyNB00YWedJD95DZ6Xpx8xtF90aa+TO80FgGvISHa2QQCsmbipNQ== X-Received: by 2002:a5e:8916:: with SMTP id k22mr826518ioj.6.1604655877579; Fri, 06 Nov 2020 01:44:37 -0800 (PST) Received: from ubuntu-m3-large-x86 ([2604:1380:45f1:1d00::1]) by smtp.gmail.com with ESMTPSA id r4sm694366ilj.43.2020.11.06.01.44.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 01:44:36 -0800 (PST) Date: Fri, 6 Nov 2020 02:44:34 -0700 From: Nathan Chancellor To: Ard Biesheuvel Subject: Re: [PATCH 2/5 v16] ARM: Replace string mem* functions for KASan Message-ID: <20201106094434.GA3268933@ubuntu-m3-large-x86> References: <20201019084140.4532-1-linus.walleij@linaro.org> <20201019084140.4532-3-linus.walleij@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201106_044439_896347_D9C0A139 X-CRM114-Status: GOOD ( 20.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stephen Rothwell , Florian Fainelli , Ahmad Fatoum , Arnd Bergmann , Abbott Liu , Linus Walleij , Russell King , kasan-dev , Mike Rapoport , Linux-Next Mailing List , Alexander Potapenko , Dmitry Vyukov , Andrey Ryabinin , Naresh Kamboju , Linux ARM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Nov 06, 2020 at 09:28:09AM +0100, Ard Biesheuvel wrote: > On Fri, 6 Nov 2020 at 09:26, Linus Walleij wrote: > > > > On Fri, Nov 6, 2020 at 8:49 AM Naresh Kamboju wrote: > > > > > arm KASAN build failure noticed on linux next 20201106 tag. > > > gcc: 9.x > > > > > > Build error: > > > --------------- > > > arch/arm/boot/compressed/string.c:24:1: error: attribute 'alias' > > > argument not a string > > > 24 | void *__memcpy(void *__dest, __const void *__src, size_t __n) > > > __alias(memcpy); > > > | ^~~~ > > > arch/arm/boot/compressed/string.c:25:1: error: attribute 'alias' > > > argument not a string > > > 25 | void *__memmove(void *__dest, __const void *__src, size_t > > > count) __alias(memmove); > > > | ^~~~ > > > arch/arm/boot/compressed/string.c:26:1: error: attribute 'alias' > > > argument not a string > > > 26 | void *__memset(void *s, int c, size_t count) __alias(memset); > > > | ^~~~ > > > > > > Reported-by: Naresh Kamboju > > > > > > Build details link, > > > https://builds.tuxbuild.com/1juBs4tXRA6Cwhd1Qnhh4vzCtDx/ > > > > This looks like a randconfig build. > > > > Please drill down and try to report which combination of config > > options that give rise to this problem so we have a chance of > > amending it. > > > > AFAIK there is an incompatible change in -next to change the > definition of the __alias() macro Indeed. The following diff needs to be applied as a fixup to treewide-remove-stringification-from-__alias-macro-definition.patch in mmotm. Cheers, Nathan diff --git a/arch/arm/boot/compressed/string.c b/arch/arm/boot/compressed/string.c index 8c0fa276d994..cc6198f8a348 100644 --- a/arch/arm/boot/compressed/string.c +++ b/arch/arm/boot/compressed/string.c @@ -21,9 +21,9 @@ #undef memcpy #undef memmove #undef memset -void *__memcpy(void *__dest, __const void *__src, size_t __n) __alias(memcpy); -void *__memmove(void *__dest, __const void *__src, size_t count) __alias(memmove); -void *__memset(void *s, int c, size_t count) __alias(memset); +void *__memcpy(void *__dest, __const void *__src, size_t __n) __alias("memcpy"); +void *__memmove(void *__dest, __const void *__src, size_t count) __alias("memmove"); +void *__memset(void *s, int c, size_t count) __alias("memset"); #endif void *memcpy(void *__dest, __const void *__src, size_t __n) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel