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.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 2905BC2D0A3 for ; Fri, 6 Nov 2020 09:44:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BF86020B80 for ; Fri, 6 Nov 2020 09:44:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="tJ/08p9B" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725893AbgKFJoj (ORCPT ); Fri, 6 Nov 2020 04:44:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725868AbgKFJoi (ORCPT ); Fri, 6 Nov 2020 04:44:38 -0500 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AABFC0613CF for ; Fri, 6 Nov 2020 01:44:38 -0800 (PST) Received: by mail-io1-xd44.google.com with SMTP id o11so811718ioo.11 for ; Fri, 06 Nov 2020 01:44:38 -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=iZc7kFVfBtTrU/tzfnjexQD9agkeBVdHddF4yqI/sSqyGggggGIA3TGhBkcxuiOQpm x/tzCy5Kle50n11PzVLKY/7p9fiUixC4Se1aDQkBRr3rxHR76v4JFXiBfo054kJAFOC3 jIApZS70IjFRd4ukDTMZ/gmUvZlKA6XlpMiwCpCzSc4RYStgKIe4EXKgp6s7StZeaEGh 1hzA3qnlJtQGN06ZJG/epX6dG0Oz/cJR6oqZ5MoQhYY+xyI3LTRyvKmkpJpT8ShRhRpD GpOZRtqLE8d9nS44YCT3r+4fZF0/ULR3kLiQD62yFmnP1zmGyqqrWR/923fGQtSzQp3A 1G+g== X-Gm-Message-State: AOAM533ucOjsrTFZ65PYz57ivkEYuPSHYuniGZOKtdmx5Z1aa9R8zlFh 9Kgk+VuDdsjlXDxfRiWKd9i2PQMSKlJiFg== 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 Cc: Linus Walleij , Naresh Kamboju , Linux-Next Mailing List , Florian Fainelli , Abbott Liu , Russell King , Andrey Ryabinin , Mike Rapoport , Ahmad Fatoum , Arnd Bergmann , kasan-dev , Alexander Potapenko , Linux ARM , Dmitry Vyukov , Stephen Rothwell 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-next@vger.kernel.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)