Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2729383lqp; Mon, 25 Mar 2024 07:45:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXSmmHBoZdOW8RXbzlRGu+YuunqXaSaZi1d09odhunZBxt1qT/6YnEoiSF2McLDgotLvv7wZJI1B5dEyv3zebVr8g7cppBvACBW0U6HFA== X-Google-Smtp-Source: AGHT+IEiEGJvePfDt/+5V1OTc7+1TMXkvl6gwfR7TA1292pz6XgHlxhx55Pk4sqyzixKKDXzEw6e X-Received: by 2002:a0d:fb87:0:b0:611:7132:e6ba with SMTP id l129-20020a0dfb87000000b006117132e6bamr2574714ywf.40.1711377909653; Mon, 25 Mar 2024 07:45:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711377909; cv=pass; d=google.com; s=arc-20160816; b=aDmCnBnHDiXn0cAOPwsmwfV8mNycS1h3+sPDUfiKsryKvZxds1xVsUjztUeCqUBOD9 8xN0CSDBprXSICBba5rI18FF//7nnexVp/A7ASiqx8eMi8vKC6Fi4UezwCub7/BuMKuR YHKbF0JX1JLJYXG/qeddTtjMsRQIbXEi+qogCZM3P1vWWo7Apj6p2b56ylMvFDgt67yQ 1fzoW8B8TpgstIudwCH0CEV6p50aEO8ihfTl24HBW+1GIVHGG4xg50Ki6LlbJCFR2hKx NGKz0AqY2tE4Vw99OnBVc/upCCZLBaaIyynT5ixEE0EYM49zPN8IWFLggQMAOjNaEXWJ ye5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=zToQ2s3VZ1f9ao1pi2MnYEMv2dwpUwcL76sBj0wUmpc=; fh=wCLODowslsMzeL729uJUYSqnG940xxzd1YhLi5UGecc=; b=E6OTgkJZ5r0zBZmaJO2kwq8wm40l/F67BmeJ9QHuGc4xSHE0PNFrY4fnQORPbs/p06 B6Z4iRDLRmYywaMQQ6sI8x1C7K0VnjkYE+c1htDMa7fUwLIaPi6Prg+3uS6vaNJtdqmA 1vuQtZ8+v1PiQBrfAH2fkS6crTBZ36dnidOfv/LMcvoHy0sHoLSbRRF8BbD5oi6qlGbJ eaenOzT50MQXCvmLBwXeR+z2exLbXFFy0G6txOg/9QSt+DlwbtBkuXlqxMIzj37DCULw 4q0V4fdx2hVb9HnFK4lYdw1/9xo8J97n69y7Z6VIuXIFMeKGt5ftfojNF8DlvO7aI1Kc R/2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GNQmhMTm; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-116904-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116904-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id gu15-20020a056214260f00b0068f08ce8109si7836259qvb.505.2024.03.25.07.45.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 07:45:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116904-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GNQmhMTm; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-116904-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116904-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 54CC01C382FC for ; Mon, 25 Mar 2024 14:45:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E13D13F00F; Mon, 25 Mar 2024 11:44:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GNQmhMTm" Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86FCD131BB8 for ; Mon, 25 Mar 2024 11:01:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711364496; cv=none; b=V61aN6VTZOhRHOR67hEp4M/SfwPfVrK8fU0XJgS4T4KuTVv1xr12/pbw+OQ+G7l4IEqsO1G1q8juze5GZGXh8hrTgFLQKIUXPEXD9Tehjbpk7pPw2tp9jZVUCEO25CDx2BXMYrZ3zU+c8tt2SPMN1oswW2HNad+CsN/cCr4Xnm0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711364496; c=relaxed/simple; bh=w+tFws1Bi1xV3hntGpTyALeY+3d+ukcMl4+G4jlt5Zc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ERAaqYV15Te8yDZ6UR4NBRexKY7yI3dsOjJZw5Sw2wZtFgiNhr8UC+Lov+HQFW39E9vnSi36XHOGqnUe1Oc4Ws7FBV2gcLpifoMJ7RhUFht9KPAQQ3FkQ3ZNhJ7rYjieje24+6T9epEi7B5J7Co37J3g6gLgbPd9KMbF8tSM39Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GNQmhMTm; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-56c0d1bddc1so1018069a12.3 for ; Mon, 25 Mar 2024 04:01:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711364492; x=1711969292; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zToQ2s3VZ1f9ao1pi2MnYEMv2dwpUwcL76sBj0wUmpc=; b=GNQmhMTm3SDKGbKL0NDUCTWaoxlTgYWa1r1FQGkpHxLgS2eULuUNyXHPf1fRwna42c SBGJYqoMN0Qju9isQbLxvOJQAAIbgIcRTSmlZNpZsTOaXf2edilFl0n1waMte4b6zZYP zhJqwsBJd+SiytEkZ5NOkK8BpcE6lIRaPsqWokJGS5o0Tt1+V99wL+rr+Jbrcg8b8V/v 5pMmjr9Dg9skE4/QcLIneKQrm45XeQbRKXpYfY8ugzB83PrGwmh0Ykys5p+/33CB1ISW wBdtv1Xf+U7XkIhlXubDNe/s2MmX8iSBi+B5bqihs3XHUAt+6v9u4puVyO/pz1wvGAb5 3Jog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711364492; x=1711969292; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zToQ2s3VZ1f9ao1pi2MnYEMv2dwpUwcL76sBj0wUmpc=; b=fn1SaLhY4Qe8cP9cVHwX4sZ/2YORaJLuBnD5TbTjAnmgmrWmbRxBwyymw52O0wXjWF peVI7nWs2OEFylmm2iWQVHwimsw2m66uU1WagRlIGDuTlkBm9tsmZEjEmsodu4CkYjOe tFTtA26StSqxi4V8l+GePxv1JYLzSztPMIoSN32TRJdPecwzCynMGpCZBpQ0JmVZJEA/ k/VvKdwJIj8NNzQzE+bXKhAcScz2+12bTVLA3Y76pCwO3eCGYs6s7fmbM0wUqwAFAYoX fju+6dseX8+kR/eAtTYsHM1h2yBCmtNuaMcokmFNDAd0oGfu5gMJiMxdLIKq5IwLH0D+ X8Sw== X-Forwarded-Encrypted: i=1; AJvYcCVwvraVBd2NsQJGpCYmgoQDPZiYhQ2jFO3zi3iVFqbvY2V6Ounce7T0Hokx+pqXx8HJLNLedxkbwMpeubzwiAlrM+wZ9c3JQ3+NJMQ2 X-Gm-Message-State: AOJu0YxkFxARpRrPzr05i6RVEOwk2R/8aOdlv7LCWzTM4dH76RSt2weu oYzSeNelFse+SC9xBVU1UX3iKcuHzh9ZpoxGVDCl/IbkXQTaP9MU75EFDJSe7aN4Ng== X-Received: by 2002:a50:9341:0:b0:566:e3c7:921f with SMTP id n1-20020a509341000000b00566e3c7921fmr5580729eda.22.1711364491654; Mon, 25 Mar 2024 04:01:31 -0700 (PDT) Received: from fedora.iskraemeco.si ([193.77.86.250]) by smtp.gmail.com with ESMTPSA id y17-20020aa7c251000000b00569a2f698d7sm2891787edo.49.2024.03.25.04.01.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 04:01:31 -0700 (PDT) From: Uros Bizjak To: x86@kernel.org, linux-kernel@vger.kernel.org Cc: Uros Bizjak , kernel test robot , Ingo Molnar , Andy Lutomirski , Brian Gerst , Denys Vlasenko , "H . Peter Anvin" , Linus Torvalds , Peter Zijlstra , Josh Poimboeuf Subject: [PATCH] x86/percpu: Disable named address spaces for KCSAN Date: Mon, 25 Mar 2024 12:01:09 +0100 Message-ID: <20240325110128.615933-1-ubizjak@gmail.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit -fsanitize=thread (KCSAN) is at the moment incompatible with named address spaces in a similar way as KASAN - see GCC PR sanitizer/111736: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111736 The patch disables named address spaces with KCSAN. Reported-by: kernel test robot Signed-off-by: Uros Bizjak Cc: Ingo Molnar Cc: Andy Lutomirski Cc: Brian Gerst Cc: Denys Vlasenko Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Josh Poimboeuf Closes: https://lore.kernel.org/oe-lkp/202403251658.8e92a8bc-lkp@intel.com --- arch/x86/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 39886bab943a..4fff6ed46e90 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2439,6 +2439,8 @@ config USE_X86_SEG_SUPPORT # with named address spaces - see GCC PR sanitizer/111736. # depends on !KASAN + # -fsanitize=thread (KCSAN) is also incompatible. + depends on !KCSAN config CC_HAS_SLS def_bool $(cc-option,-mharden-sls=all) -- 2.44.0