Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1518655lqt; Wed, 20 Mar 2024 06:34:40 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUyDFyaU+zs9jm+fU0AsBg2nAwKn5pCkkL+HPs995KHGp7VezIfCeDRxlCxMF3O4W1/ZC4QeFfZM1Y46WjI1sfbg8OGkzEbM+l9ZJauwA== X-Google-Smtp-Source: AGHT+IHt9bIwwESzyRf0NssD88EPlTYCAzSN+hikAG3AqzSi2sRV0JAZwmTNt/jbSykN/WqfMvTW X-Received: by 2002:a17:903:246:b0:1dd:da26:8597 with SMTP id j6-20020a170903024600b001ddda268597mr22192963plh.66.1710941679783; Wed, 20 Mar 2024 06:34:39 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ju9-20020a170903428900b001d9b8bc0fd8si12456929plb.68.2024.03.20.06.34.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 06:34:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108948-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linutronix.de header.s=2020 header.b=GxXmnk+1; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-108948-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108948-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2124E28554E for ; Wed, 20 Mar 2024 13:33:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66C5941211; Wed, 20 Mar 2024 13:33:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="GxXmnk+1"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="vsvWO/0c" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1632340BE2; Wed, 20 Mar 2024 13:33:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710941631; cv=none; b=jcv8Cmj5cirdumJWzzEdRxxEnZ8yyzFR5V3vIjj7TYKbBGupC8fSZo5AZGaAW+WTNRmVR4GU3709npoJ3p18Kms2OFG8HL04ljCvXwFpFQAxpJ55Ilz7aQQEMLGyWIPdwJgLck2Xd0p/ycN92FMkL9FU8H4pelTATw2qkgyLFZ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710941631; c=relaxed/simple; bh=GDiJZ38CTJw7wnpOWIhwLFBfLixZL6WvagrpsS+vtAI=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=rTiYRxmgKODDjsIXFFmlcDtRsLH71yu1nw2IvOt2Lc4V2Is73fG7EWQAbHzS73AhQnG5OpWb9Citd5Qp2Fw+ka+kSy2v3CZ9wcIr0G16Fxbpjx9hsCoa41nML/0lPbMYxnXJq7KCc0Mg/iHBClT8JRFsEuNXIFtXqBZ6zS315tQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=GxXmnk+1; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=vsvWO/0c; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Wed, 20 Mar 2024 13:33:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1710941627; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ex8bou4kB+2rtEdHnDeTFtmRS71UnWOZIqNtXLmn0Go=; b=GxXmnk+1VW3z+FpUrBibncFBWi9rlnubpnOlFnuDdW4w8fLnE1q3ZWdgRd4lgCpVjeb1z5 iNbOQxaq1XGaeBXsVg6XGRPf+L1gsu4Mcg+p6DXaTGfJ0svrXr/xEUeIrb78QeZNxFlxsP 5x2etzBWQnLV/20frZF4hVC1lpjeIMv1Qdjh0SobFrNKK95THt2K4Xy02o4M/bkFgcH+dx E455cSf8QHEvovyQuIPp5Lg1jsOsbsi8UIvv9ebGfDEJpfXChRedSODLMisnEp8fbiaCOR Dnk+NwJ77/RoO5jfSEYoBMHZt9QPjh9gxTGbAC5uR7GdMoGo6V/PNABktKEnLg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1710941627; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ex8bou4kB+2rtEdHnDeTFtmRS71UnWOZIqNtXLmn0Go=; b=vsvWO/0cXamxFoVFVXmw5hRpskPf+D6qzK1iqzRL9m+WPD0rqliWSoKLb6vC5qCXFqVyTq D9jJXGMVmBxVs4Aw== From: "tip-bot2 for Uros Bizjak" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/percpu] x86/percpu: Re-enable named address spaces with KASAN for GCC 13.3+ Cc: Uros Bizjak , Ingo Molnar , Andy Lutomirski , Josh Poimboeuf , Linus Torvalds , Ard Biesheuvel , Jakub Jelinek , Nick Desaulniers , Sean Christopherson , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240320124603.566923-1-ubizjak@gmail.com> References: <20240320124603.566923-1-ubizjak@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171094162686.10875.4624002937424858657.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the x86/percpu branch of tip: Commit-ID: f61f02d1ff788ae5ad485ef8edd88d9c93557994 Gitweb: https://git.kernel.org/tip/f61f02d1ff788ae5ad485ef8edd88d9c93557994 Author: Uros Bizjak AuthorDate: Wed, 20 Mar 2024 13:45:49 +01:00 Committer: Ingo Molnar CommitterDate: Wed, 20 Mar 2024 14:22:56 +01:00 x86/percpu: Re-enable named address spaces with KASAN for GCC 13.3+ Commit: 68fb3ca0e408 ("x86/percpu: Disable named address spaces for KASAN") .. disabled support for named address spaces with KASAN due to the incompatibility issue between named AS and KASAN. GCC 13.3 has fixed this issue (GCC PR sanitizer/111736) so the support for named address spaces can be re-enabled with KASAN for GCC compiler version >= 13.3. Note that the patch considers GCC 14 to be fixed - if somebody is using snapshots of the GCC 14 before the fix, they should upgrade. Signed-off-by: Uros Bizjak Signed-off-by: Ingo Molnar Cc: Andy Lutomirski Cc: Josh Poimboeuf Cc: Linus Torvalds Cc: Josh Poimboeuf Cc: Ard Biesheuvel Cc: Jakub Jelinek Cc: Nick Desaulniers Cc: Sean Christopherson Link: https://lore.kernel.org/r/20240320124603.566923-1-ubizjak@gmail.com --- arch/x86/Kconfig | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 7aed87c..09455d9 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2435,14 +2435,17 @@ endmenu config CC_HAS_NAMED_AS def_bool CC_IS_GCC && GCC_VERSION >= 120100 +config CC_HAS_NAMED_AS_FIXED_ASAN + def_bool CC_IS_GCC && GCC_VERSION >= 130300 + config USE_X86_SEG_SUPPORT def_bool y depends on CC_HAS_NAMED_AS # - # -fsanitize=kernel-address (KASAN) is at the moment incompatible - # with named address spaces - see GCC PR sanitizer/111736. + # -fsanitize=kernel-address (KASAN) is incompatible with named + # address spaces with GCC < 13.3 - see GCC PR sanitizer/111736. # - depends on !KASAN + depends on !KASAN || CC_HAS_NAMED_AS_FIXED_ASAN config CC_HAS_SLS def_bool $(cc-option,-mharden-sls=all)