Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3311958rwi; Fri, 21 Oct 2022 14:42:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5BcERs4y9lybLi7l+5BPkyaT5+Oi4wHsHeRvW/tiuij3sSv3HP7B0R9tRdWcrlXCi3XVzw X-Received: by 2002:a05:6a00:1946:b0:565:c337:c530 with SMTP id s6-20020a056a00194600b00565c337c530mr20823518pfk.47.1666388571382; Fri, 21 Oct 2022 14:42:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666388571; cv=none; d=google.com; s=arc-20160816; b=Y+7DCQ/CwyykYRdiQ0nAGk/uM0rqQUpRUX+lVwyrWQOiTAcOh+NC6R/79ojJaa88qq b2bSnXhRUXj//t2pxQ32r/jTJaT68iV8qSfSfnZHxTXRz4TSd9sSrN06/MgoKEKvP54y Uj5ZxfDKJjEgMq++faoJbR3AEBUDYeM3X+j9vlYml9FkmBECHyCr8q5hFBfH997Sy9U7 eHhPZdljNKGfMzOGlhk3alurVpMsE0uaI6WcAVW3SkEw0ijAIOLEwAo0rDyo/ARnZ6XU wsQKq6AoLsA3WUgUx1Gtr8w/zK5byAZEYlDt9xAq8Gk+3AIGRiLmrBH2juMEJIzD5VWU figg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=izxM3qd9H/WJQbg49Q3HZ+TOypA3Tj0AZDxRoSy3I8E=; b=QjhFyUYM4AiX97EKYYNCC8rg6Uu8ny4jPektNbV/g0UaDY3UcJkb0gJu6KcHJpjn0X 9v2gIhAMU3RoiuoZP7iSeoE6XtnYABXZcnIwVI5odAR4ShIpBhm3l2wPCdCz4iaY6EeO MGhsUzK6emMX9hJ+YUgpyuc2nf0V+GrDyflBF/sCGV3iZ2A+t9BV8Mn1/h7CBgLntRFh dwyFQeYpMqC5umCJ9t2IOoor85yv7r1+w0Q5Npd5w2kA2bimiUOGJWy2t3gdKvAcA6Zz 16bRXNLrHRnRNw5L25Dlh5XAz1pPlT9B0i1h49W+Lr/qvXSMqPzFxwW4v42X7+Da5fU7 9Y4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Hh8YtN8A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m16-20020a170902db1000b001865c1ecf30si174593plx.176.2022.10.21.14.42.38; Fri, 21 Oct 2022 14:42:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Hh8YtN8A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230199AbiJUVSW (ORCPT + 99 others); Fri, 21 Oct 2022 17:18:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230139AbiJUVSS (ORCPT ); Fri, 21 Oct 2022 17:18:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9387A2A4E24 for ; Fri, 21 Oct 2022 14:18:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D6C2561F8E for ; Fri, 21 Oct 2022 21:18:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A7D7C433D6; Fri, 21 Oct 2022 21:18:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666387094; bh=lNMTqMjhK1y8wiMz79oWkjOtjdhIp9WkAVwBJUh/kaU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Hh8YtN8AxnWUGkIkwfNjdnp3qyCNqcD/fifW3dmMQ2+g/DJHBOuem4WYf1CENjENw fm9/pZlUuwvAZKnTb1ZGFo9fGjiNA8cJoN2LmQSSzwk91+wdWnpoSdS6bivUhAhuoR WPAaLexRQR9SrWLIHcEPeXOJdTmFcRUarNadK5KGL7P4P9tMPNaXs6CKVhpCSQeyPU pwp8qFuxO1qNaolj6HmLAovHhZrawy4I7nTg43t8XwEGHTEo7SkZNV2pjm3YO7tlUU MXiWTvq8Mhvdjz5NFjmtuQiLupn4BdbEWZcDloW4xOX/u6SPNvEVQjeLBljj+UftEa onMMxnqzse3qw== Date: Fri, 21 Oct 2022 14:18:12 -0700 From: Nathan Chancellor To: Miguel Ojeda Cc: Andrey Konovalov , Marco Elver , Kees Cook , Arnd Bergmann , Andrew Morton , Kumar Kartikeya Dwivedi , Nick Desaulniers , Uros Bizjak , Dan Li , Alexander Potapenko , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/5] compiler-gcc: remove attribute support check for `__no_sanitize_address__` Message-ID: References: <20221021115956.9947-1-ojeda@kernel.org> <20221021115956.9947-2-ojeda@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221021115956.9947-2-ojeda@kernel.org> X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 21, 2022 at 01:59:53PM +0200, Miguel Ojeda wrote: > The attribute was added in GCC 4.8, while the minimum GCC version > supported by the kernel is GCC 5.1. > > Therefore, remove the check. > > Link: https://godbolt.org/z/84v56vcn8 > Signed-off-by: Miguel Ojeda Reviewed-by: Nathan Chancellor > --- > include/linux/compiler-gcc.h | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h > index b9530d3515ac..bfce7f4d0978 100644 > --- a/include/linux/compiler-gcc.h > +++ b/include/linux/compiler-gcc.h > @@ -82,11 +82,7 @@ > #define __noscs __attribute__((__no_sanitize__("shadow-call-stack"))) > #endif > > -#if __has_attribute(__no_sanitize_address__) > #define __no_sanitize_address __attribute__((__no_sanitize_address__)) > -#else > -#define __no_sanitize_address > -#endif > > #if defined(__SANITIZE_THREAD__) && __has_attribute(__no_sanitize_thread__) > #define __no_sanitize_thread __attribute__((__no_sanitize_thread__)) > -- > 2.38.1 > >