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 AA5041AF0A4 for ; Mon, 20 Jan 2025 10:00:02 +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=1737367202; cv=none; b=QJVMm3BOzi0RVnW/DZfyXx/37zaBpoboVW4/gqyzpRS0M1OqIe99yEnjz4UuRGwE5UYLNtKMsEGCAAZ+ZaBQgI7OMEBVtWxL1Q+3v6F2kgSEhQqGLDDqs4rZOOpF3Gj3woqHhryy1pqOScpd8MLzaq6UPA/YU15UTo5C5yo24T8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737367202; c=relaxed/simple; bh=KuBZxvECfR0McujcZFgAEnDMMCLqrFxKVwC7Ws3+aoQ=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=ND0L+LVJ22yGYkQE8ZvHc6CTDtW9lxQJhNh+vlrczHTIiTwu/BGBr8U26zymhpKkoJ5/duGkAXvIsGwJJig028BYmQ44wkIzEa2+PNlCOHWCo/SG5YlqiDGRO2E3iMePz+nRPXcsrAjmyHGy6P+bvhHKsWmmfy3aKT1t4oerLuE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=j7Kl8j2X; 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="j7Kl8j2X" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7C92C4CEDD; Mon, 20 Jan 2025 10:00:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1737367202; bh=KuBZxvECfR0McujcZFgAEnDMMCLqrFxKVwC7Ws3+aoQ=; h=Date:From:To:Cc:Subject:From; b=j7Kl8j2XzSmt+UCfMdkcGGOdPD4JkfDa8StjueQp2aa5AigcS5eG0fgDcOq98lJrr wPFOl9ug7OjGI7/mutigqcrkZvGACm4qYxIfpZszVnnJv/ywI7/pS7DoeM3lHAxvef eZZt/H9Sg1PU9qIU4Z0mB6R46JgvrqBVutO5qReoZ11KvsE+6Vb4CorK5uY/Wv0nwB ZTi+BIRW3sBWm07dtwj3Jkvnsn+62cnN8U8kHZnpYti/izcrgeTFbptBvpYPRQEOND iGTsl3nLn1c5h5hxcFlZlh0PlLLQM6QYbJ9xmfdpPoNpome09OHFuY4Z9/HcT3QRhm aDjaortDwaGHQ== Date: Mon, 20 Jan 2025 10:59:58 +0100 From: Ingo Molnar To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Josh Poimboeuf , Thomas Gleixner , Borislav Petkov , Andrew Morton Subject: [GIT PULL] objtool changes for v6.14 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 objtool/core Git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git objtool-core-2025-01-20 # HEAD: 41a1e976623eb430f7b5a8619d3810b44e6235ad x86/mm: Convert unreachable() to BUG() Objtool changes for v6.14: - Introduce the generic section-based annotation infrastructure a.k.a. ASM_ANNOTATE/ANNOTATE (Peter Zijlstra) - Convert various facilities to ASM_ANNOTATE/ANNOTATE: (Peter Zijlstra) - ANNOTATE_NOENDBR - ANNOTATE_RETPOLINE_SAFE - instrumentation_{begin,end}() - VALIDATE_UNRET_BEGIN - ANNOTATE_IGNORE_ALTERNATIVE - ANNOTATE_INTRA_FUNCTION_CALL - {.UN}REACHABLE - Optimize the annotation-sections parsing code (Peter Zijlstra) - Centralize annotation definitions in - Unify & simplify the barrier_before_unreachable()/unreachable() definitions (Peter Zijlstra) - Convert unreachable() calls to BUG() in x86 code, as unreachable() has unreliable code generation (Peter Zijlstra) - Remove annotate_reachable() and annotate_unreachable(), as it's unreliable against compiler optimizations (Peter Zijlstra) - Fix non-standard ANNOTATE_REACHABLE annotation order (Peter Zijlstra) - Robustify the annotation code by warning about unknown annotation types (Peter Zijlstra) - Allow arch code to discover jump table size, in preparation of annotated jump table support (Ard Biesheuvel) Thanks, Ingo ------------------> Ard Biesheuvel (1): objtool: Allow arch code to discover jump table size Peter Zijlstra (17): objtool: Generic annotation infrastructure objtool: Convert ANNOTATE_NOENDBR to ANNOTATE objtool: Convert ANNOTATE_RETPOLINE_SAFE to ANNOTATE objtool: Convert instrumentation_{begin,end}() to ANNOTATE objtool: Convert VALIDATE_UNRET_BEGIN to ANNOTATE objtool: Convert ANNOTATE_IGNORE_ALTERNATIVE to ANNOTATE objtool: Convert ANNOTATE_INTRA_FUNCTION_CALL to ANNOTATE objtool: Collapse annotate sequences objtool: Collect more annotations in objtool.h unreachable: Unify x86: Convert unreachable() to BUG() loongarch: Use ASM_REACHABLE objtool: Remove annotate_{,un}reachable() objtool: Convert {.UN}REACHABLE to ANNOTATE objtool: Fix ANNOTATE_REACHABLE to be a normal annotation objtool: Warn about unknown annotation types x86/mm: Convert unreachable() to BUG() arch/loongarch/include/asm/bug.h | 13 +- arch/x86/entry/entry_64.S | 9 +- arch/x86/include/asm/alternative.h | 22 +- arch/x86/include/asm/bug.h | 2 +- arch/x86/include/asm/irq_stack.h | 4 +- arch/x86/include/asm/nospec-branch.h | 18 -- arch/x86/kernel/process.c | 2 +- arch/x86/kernel/reboot.c | 2 +- arch/x86/kvm/svm/sev.c | 2 +- arch/x86/mm/fault.c | 2 +- include/linux/compiler-gcc.h | 12 - include/linux/compiler.h | 37 +-- include/linux/instrumentation.h | 11 +- include/linux/objtool.h | 126 ++++++---- include/linux/objtool_types.h | 12 + tools/include/linux/objtool_types.h | 12 + tools/objtool/arch/loongarch/special.c | 3 +- tools/objtool/arch/powerpc/special.c | 3 +- tools/objtool/arch/x86/special.c | 4 +- tools/objtool/check.c | 426 +++++++++----------------------- tools/objtool/include/objtool/check.h | 5 +- tools/objtool/include/objtool/special.h | 3 +- 22 files changed, 267 insertions(+), 463 deletions(-)