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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75933C3A59D for ; Fri, 21 Oct 2022 18:29:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229448AbiJUS3o (ORCPT ); Fri, 21 Oct 2022 14:29:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229727AbiJUS3m (ORCPT ); Fri, 21 Oct 2022 14:29:42 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A8FA38AC for ; Fri, 21 Oct 2022 11:29:38 -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 ams.source.kernel.org (Postfix) with ESMTPS id 488E2B82CCE for ; Fri, 21 Oct 2022 18:29:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBD5DC433D6; Fri, 21 Oct 2022 18:29:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1666376975; bh=Yl6xQb5hUhoPuBqIz3GyeTJgxtRETCKXI9vrQ4FZHSI=; h=Date:To:From:Subject:From; b=O6H1MGg8Z9BjY0WeHPZBW56BB6UkO8rGJkT6h3AMk1sgBx7dpfjhy/Gn1KuqIwKru FnyWnscX4V9WP9M2aUJy8YlU/VJ0cBVBFd9ZTMMICQX9/qO/kHbhZyTLvAAr0zy2Jb 0mZvNgEBOBiz02SlYcIeP0T4wDnQ5uI25O33YdCk= Date: Fri, 21 Oct 2022 11:29:35 -0700 To: mm-commits@vger.kernel.org, ubizjak@gmail.com, ndesaulniers@google.com, nathan@kernel.org, memxor@gmail.com, keescook@chromium.org, glider@google.com, elver@google.com, ashimida@linux.alibaba.com, arnd@arndb.de, andreyknvl@gmail.com, ojeda@kernel.org, akpm@linux-foundation.org From: Andrew Morton Subject: + compiler-gcc-remove-attribute-support-check-for-__no_sanitize_address__.patch added to mm-unstable branch Message-Id: <20221021182935.DBD5DC433D6@smtp.kernel.org> Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The patch titled Subject: compiler-gcc: remove attribute support check for `__no_sanitize_address__` has been added to the -mm mm-unstable branch. Its filename is compiler-gcc-remove-attribute-support-check-for-__no_sanitize_address__.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/compiler-gcc-remove-attribute-support-check-for-__no_sanitize_address__.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Miguel Ojeda Subject: compiler-gcc: remove attribute support check for `__no_sanitize_address__` Date: Fri, 21 Oct 2022 13:59:53 +0200 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 Link: https://lkml.kernel.org/r/20221021115956.9947-2-ojeda@kernel.org Signed-off-by: Miguel Ojeda Cc: Alexander Potapenko Cc: Andrey Konovalov Cc: Arnd Bergmann Cc: Dan Li Cc: Kees Cook Cc: Kumar Kartikeya Dwivedi Cc: Marco Elver Cc: Nathan Chancellor Cc: Nick Desaulniers Cc: Uros Bizjak Signed-off-by: Andrew Morton --- include/linux/compiler-gcc.h | 4 ---- 1 file changed, 4 deletions(-) --- a/include/linux/compiler-gcc.h~compiler-gcc-remove-attribute-support-check-for-__no_sanitize_address__ +++ a/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__)) _ Patches currently in -mm which might be from ojeda@kernel.org are compiler-gcc-be-consistent-with-underscores-use-for-no_sanitize.patch compiler-gcc-remove-attribute-support-check-for-__no_sanitize_address__.patch compiler-gcc-remove-attribute-support-check-for-__no_sanitize_thread__.patch compiler-gcc-remove-attribute-support-check-for-__no_sanitize_undefined__.patch compiler-gcc-document-minimum-version-for-__no_sanitize_coverage__.patch