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 871FD21C160 for ; Mon, 1 Dec 2025 11:45:08 +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=1764589508; cv=none; b=ixWeq9S8SFB08Lu58wnKfZ3VOXMnhleXhAxmfIKAZaDELOIhFpCpaq8M63a0gnq8YsRz7sLsxMaixgwEmBeqVvltOK5rvOk99soV7fe1y4bg9DB9GBm3R/hJsAlhAyThvQ3bOOo9eB6qZvAvXEsfC55PoSPFj0QvYKv9soh//I4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764589508; c=relaxed/simple; bh=dCvoSmdVaIXpfyTF0OWV1OW6Spah7c0fsR8vQe3+r3Q=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=Cn1EWSMre4l9ynwe8Leed89zoMnJVNqvb2kDho/5ex+X9IeFUOice8ar1wRuPuYjFVfRCje9r0QTIvAIh71LnZOX30EvEdMExhK/lNUg4H36UJkiph09+c6gilpqnN2Gd18M8BwqTlnPiKqppa84Zm6M077jqMKVGQOOvG/T584= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LH6aP15L; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LH6aP15L" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7595C4CEF1; Mon, 1 Dec 2025 11:45:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1764589508; bh=dCvoSmdVaIXpfyTF0OWV1OW6Spah7c0fsR8vQe3+r3Q=; h=Date:From:To:Cc:Subject:From; b=LH6aP15LLEvC0yyaw1y9HHdarhGk9UzedX/nrHRJqYNlmtrmNYUjXRj6qYSyfF69u 9m8iFlFzibp4knQRQkipodB1w3xCQYJYlkT1yxaBy8mFnlmtBZH9yezpZxJqXBlIuq U7Z463Di34EDzIv77s+zpv/accF2Zxg9JrAwSCkAtPrTQFdPPj7MMO9Qh362u8uYgL Y/kS545RJxKGdoL3l331eTlh035dhKrfjCgIEB0ZIFqwkHckOBeEIPlAoiGz353Eo5 JpSpgi89scMHa0ltoxM36BNC7S6YutDFz8KgBB/YkfQTlGDb6yVhzmYWWOjL1RMzBp PBpBrUjnRhplg== Date: Mon, 1 Dec 2025 12:45:04 +0100 From: Ingo Molnar To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , Peter Zijlstra , Andrew Morton , Heiko Carstens Subject: [GIT PULL] Core kernel bug handling infrastructure changes for v6.19 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Linus, Please pull the latest core/bugs Git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-bugs-2025-12-01 # HEAD: b0a848f4a47a91a6b4d9a9fd739d047254df5a91 x86/bugs: Make i386 use GENERIC_BUG_RELATIVE_POINTERS [ MERGE NOTE: this pull request depends on you having pulled the objtool-core-2025-12-01 tree already. If you haven't yet then please disregard this pull request. ] Core kernel bug handling infrastructure changes for v6.19: - Improve WARN(), which has vararg printf like arguments, to work with the x86 #UD based WARN-optimizing infrastructure by hiding the format in the bug_table and replacing this first argument with the address of the bug-table entry, while making the actual function that's called a UD1 instruction. (Peter Zijlstra) - Introduce the CONFIG_DEBUG_BUGVERBOSE_DETAILED Kconfig switch (Ingo Molnar, s390 support by Heiko Carstens) Fixes and cleanups: - bugs/s390: Remove private WARN_ON() implementation (Heiko Carstens) - : Make i386 use GENERIC_BUG_RELATIVE_POINTERS (Peter Zijlstra) Thanks, Ingo ------------------> Heiko Carstens (2): bugs/s390: Use 'cond_str' in __EMIT_BUG() bugs/s390: Remove private WARN_ON() implementation Ingo Molnar (15): bugs/core: Extend __WARN_FLAGS() with the 'cond_str' parameter bugs/core: Pass down the condition string of WARN_ON_ONCE(cond) warnings to __WARN_FLAGS() bugs/core: Introduce the CONFIG_DEBUG_BUGVERBOSE_DETAILED Kconfig switch bugs/x86: Extend _BUG_FLAGS() with the 'cond_str' parameter bugs/x86: Augment warnings output by concatenating 'cond_str' with the regular __FILE__ string in _BUG_FLAGS() bugs/powerpc: Pass in 'cond_str' to BUG_ENTRY() bugs/powerpc: Concatenate 'cond_str' with '__FILE__' in BUG_ENTRY(), to extend WARN_ON/BUG_ON output bugs/LoongArch: Pass in 'cond_str' to __BUG_ENTRY() bugs/LoongArch: Concatenate 'cond_str' with '__FILE__' in __BUG_ENTRY(), to extend WARN_ON/BUG_ON output bugs/s390: Pass in 'cond_str' to __EMIT_BUG() bugs/riscv: Pass in 'cond_str' to __BUG_FLAGS() bugs/riscv: Concatenate 'cond_str' with '__FILE__' in __BUG_FLAGS(), to extend WARN_ON/BUG_ON output bugs/parisc: Concatenate 'cond_str' with '__FILE__' in __WARN_FLAGS(), to extend WARN_ON/BUG_ON output bugs/sh: Concatenate 'cond_str' with '__FILE__' in __WARN_FLAGS(), to extend WARN_ON/BUG_ON output bugs/core: Reorganize fields in the first line of WARNING output, add ->comm[] output Peter Zijlstra (14): x86: Rework __bug_table helpers bug: Add BUG_FORMAT infrastructure bug: Clean up CONFIG_GENERIC_BUG_RELATIVE_POINTERS bug: Add BUG_FORMAT_ARGS infrastructure bug: Add report_bug_entry() bug: Implement WARN_ON() using __WARN_FLAGS() bug: Allow architectures to provide __WARN_printf() x86/bug: Add BUG_FORMAT basics x86/bug: Use BUG_FORMAT for DEBUG_BUGVERBOSE_DETAILED x86_64/bug: Implement __WARN_printf() x86/bug: Implement WARN_ONCE() x86_64/bug: Inline the UD1 x86/bug: Fix BUG_FORMAT vs KASLR x86/bugs: Make i386 use GENERIC_BUG_RELATIVE_POINTERS arch/arm64/include/asm/bug.h | 2 +- arch/loongarch/include/asm/bug.h | 27 ++++---- arch/parisc/include/asm/bug.h | 6 +- arch/powerpc/include/asm/bug.h | 12 ++-- arch/riscv/include/asm/bug.h | 10 +-- arch/s390/include/asm/bug.h | 102 ++++++++++++--------------- arch/sh/include/asm/bug.h | 4 +- arch/x86/Kconfig | 2 +- arch/x86/entry/entry.S | 8 +++ arch/x86/include/asm/bug.h | 146 ++++++++++++++++++++++++++++++--------- arch/x86/kernel/static_call.c | 13 +++- arch/x86/kernel/traps.c | 119 ++++++++++++++++++++++++++++--- include/asm-generic/bug.h | 80 +++++++++++++++------ include/linux/bug.h | 8 +++ kernel/panic.c | 16 +++-- lib/Kconfig.debug | 10 +++ lib/bug.c | 90 ++++++++++++++++++++---- 17 files changed, 477 insertions(+), 178 deletions(-)