From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2A8138F5B; Tue, 8 Jul 2025 16:42:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751992970; cv=none; b=IjgWfj07xOwMGHEWwT3+tA11cFWyiEd5NO58UN9JRfZgknTOQw81Tof7m3zsYBFcFYnd5Pvh8cm17n0oFwmgGll4aL1sD/pVfFu8sCgCElkZcv2EMxrFSWwQsfFf4RQZ9yN87RDmGcYy1Lu/GrqRHq8zLBNWyT8T2OT+qPtcIec= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751992970; c=relaxed/simple; bh=YBatTsqo9WkKGzhIoHTYfZBJPgjDmfXnCLhoKasCH7Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=k1pC0PPR6pThO3+9swAH64CHVnBmT8M61Ko1rh755wTW1nG64PWFiwVTF/KK5qB0N3rW9GznuaUTYzCxEJjjaXjM7qiOa68oP52tD0sA8P9CkVH1nGVZ0/EXJlILtIxJAwqf4Wr5wOit0HpakrslLTszjp6MmeX7JHVv0mWORqo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iJSPtOR9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="iJSPtOR9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A81FDC4CEED; Tue, 8 Jul 2025 16:42:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751992970; bh=YBatTsqo9WkKGzhIoHTYfZBJPgjDmfXnCLhoKasCH7Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iJSPtOR9Ct/e8acRmnF+XUQeRDYUgaoBR4joYoVRDvfO6n4yBzG/MlaRaABepfnBP 9V2S8Ou7beKiohUOKYCb0C1FstLk/twETa3zkuBIrES6NXdKiTJa/Egh8Tcth4bGxl WBdulknS8W+L7AS5DkfNHDyCACS8HvBPdWcwq7qo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, kernel test robot , Eric Biggers , Nathan Chancellor , Marco Elver , Kees Cook , Sasha Levin Subject: [PATCH 6.12 144/232] ubsan: integer-overflow: depend on BROKEN to keep this out of CI Date: Tue, 8 Jul 2025 18:22:20 +0200 Message-ID: <20250708162245.211448753@linuxfoundation.org> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250708162241.426806072@linuxfoundation.org> References: <20250708162241.426806072@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kees Cook [ Upstream commit d6a0e0bfecccdcecb08defe75a137c7262352102 ] Depending on !COMPILE_TEST isn't sufficient to keep this feature out of CI because we can't stop it from being included in randconfig builds. This feature is still highly experimental, and is developed in lock-step with Clang's Overflow Behavior Types[1]. Depend on BROKEN to keep it from being enabled by anyone not expecting it. Link: https://discourse.llvm.org/t/rfc-v2-clang-introduce-overflowbehaviortypes-for-wrapping-and-non-wrapping-arithmetic/86507 [1] Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-lkp/202505281024.f42beaa7-lkp@intel.com Fixes: 557f8c582a9b ("ubsan: Reintroduce signed overflow sanitizer") Acked-by: Eric Biggers Link: https://lore.kernel.org/r/20250528182616.work.296-kees@kernel.org Reviewed-by: Nathan Chancellor Acked-by: Marco Elver Signed-off-by: Kees Cook Signed-off-by: Sasha Levin --- lib/Kconfig.ubsan | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Kconfig.ubsan b/lib/Kconfig.ubsan index 37655f58b8554..4e4dc430614a4 100644 --- a/lib/Kconfig.ubsan +++ b/lib/Kconfig.ubsan @@ -118,6 +118,8 @@ config UBSAN_UNREACHABLE config UBSAN_SIGNED_WRAP bool "Perform checking for signed arithmetic wrap-around" + # This is very experimental so drop the next line if you really want it + depends on BROKEN depends on !COMPILE_TEST # The no_sanitize attribute was introduced in GCC with version 8. depends on !CC_IS_GCC || GCC_VERSION >= 80000 -- 2.39.5