From nobody Mon Jun 8 15:38:05 2026 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 6631C39A81E; Thu, 28 May 2026 10:30:51 +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=1779964252; cv=none; b=mn3FZHh1+XScxr/jbWaqruWlLfevcCCVwMuNa/7qvkzbQ8zQmYynrObzGGi3UjPX7w+tx2eaODy4mLOYtJyxZhUX+QEIdeqfbMzHpnhRTyxMwAp8aulKmMjEGofhR8AVs7xQjReN55eQB7W6JK/XRWbdIQIERB0q5p15Ei6bVz8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779964252; c=relaxed/simple; bh=aTKwRiwUlWeCKR4Iv83fATX5+9VtWh6Gva8z8e/BinM=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=pi0SHITcx00M5ELSPL+0CC1TX+16gD6ykeh/iwGTlO/cvH/Ko5ru5kyISRpo0BQvqMlFFjQlYBHbfUwl4tBFHR4wnZ9Vx+a/5fn0+5yufmwTKIziUC/8jC1k0AwjBOAcnWrMruW5h76Xo/M0ROPZdcm7RbXhqxtU+jcGBOB06Zk= 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=zwm0+RfM; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=0VMBDqYl; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="zwm0+RfM"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="0VMBDqYl" Date: Thu, 28 May 2026 10:30:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1779964249; 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=88+WEK2Fa8oVNwfPnkVzmmxRVwJ/DBYxq7raPsnBads=; b=zwm0+RfMOYddK2EzJ2dIlIu3bM8WEpUSnc5eWAAe/OCchph41R3Iv0ZiGm+SAjZXw6t/4j SDT0yEIPfIofYVuj2FLneU5P6mAEU1DfADCmTdf9y8Vn4PeYXJ3EBDS6NYbWmM1Q8nSZhm MgQHq8NE5m6x8t7ci39lD2r6MDrHlFP55MGhMgUzU2fiftuFYYYq7ltDa3aU8MMvuVdmPC utH1yV15+V9Ogm7k1JlIs/OIElvFutIXsQCqFlZqErd0G6HBNkA0scmltDp2zRtHWjRlwd Lk4KdPsFFkqhlpUmUmbo2r30f1nbvNuj9qaFhtUzzCk1WV/gtX14QN8fRXTHwQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1779964249; 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=88+WEK2Fa8oVNwfPnkVzmmxRVwJ/DBYxq7raPsnBads=; b=0VMBDqYlkgDR9UJ4ss/wNMc/rkwIYlNYyJS4ZYA1UDhS7eJskfsUDmdFJWF/pXIF5Bpksf CbZnSJB07MjH63DQ== From: "tip-bot2 for Heiko Carstens" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: locking/core] seqlock: Allow UBSAN_ALIGNMENT to fail optimizing Cc: Arnd Bergmann , Heiko Carstens , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260519110315.1385307-1-hca@linux.ibm.com> References: <20260519110315.1385307-1-hca@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177996424772.1039918.9900251243741276489.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: quoted-printable The following commit has been merged into the locking/core branch of tip: Commit-ID: 88331c4ec23a28c1006ec532fa64763d4c695e90 Gitweb: https://git.kernel.org/tip/88331c4ec23a28c1006ec532fa64763d4= c695e90 Author: Heiko Carstens AuthorDate: Tue, 19 May 2026 13:03:15 +02:00 Committer: Peter Zijlstra CommitterDate: Thu, 28 May 2026 12:23:22 +02:00 seqlock: Allow UBSAN_ALIGNMENT to fail optimizing With gcc-15 and gcc-16 with UBSAN_ALIGNMENT enabled the compiler fails to inline and optimize __scoped_seqlock_bug() away on s390: s390x-16.1.0-ld: kernel/sched/build_policy.o: in function `__scoped_seqlock= _next': /.../seqlock.h:1286:(.text+0x22030): undefined reference to `__scoped_seqlo= ck_bug' Fix this by adding UBSAN_ALIGNMENT to the list of config options where a not inlined empty __scoped_seqlock_bug() is allowed. Closes: https://lore.kernel.org/r/20260515092057.810542-1-arnd@kernel.org/ Reported-by: Arnd Bergmann Signed-off-by: Heiko Carstens Signed-off-by: Peter Zijlstra (Intel) Link: https://patch.msgid.link/20260519110315.1385307-1-hca@linux.ibm.com --- include/linux/seqlock.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/linux/seqlock.h b/include/linux/seqlock.h index 5a40252..f865491 100644 --- a/include/linux/seqlock.h +++ b/include/linux/seqlock.h @@ -1259,14 +1259,15 @@ static __always_inline void __scoped_seqlock_cleanu= p(struct ss_tmp *sst) =20 extern void __scoped_seqlock_invalid_target(void); =20 -#if (defined(CONFIG_CC_IS_GCC) && CONFIG_GCC_VERSION < 90000) || defined(C= ONFIG_KASAN) +#if (defined(CONFIG_CC_IS_GCC) && CONFIG_GCC_VERSION < 90000) || \ + defined(CONFIG_KASAN) || defined(CONFIG_UBSAN_ALIGNMENT) /* * For some reason some GCC-8 architectures (nios2, alpha) have trouble * determining that the ss_done state is impossible in __scoped_seqlock_ne= xt() * below. * - * Similarly KASAN is known to confuse compilers enough to break this. But= we - * don't care about code quality for KASAN builds anyway. + * Similarly KASAN and UBSAN_ALIGNMENT are known to confuse compilers enou= gh + * to break this. But we don't care about code quality for such builds any= way. */ static inline void __scoped_seqlock_bug(void) { } #else