From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 D56434399FF; Thu, 30 Jul 2026 15:17:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785424658; cv=none; b=Pe69a+StiMrScCW9/Q8YVamffNDvJQW5h+dUVsmerC3xi0NTyIr13FYXAeKqPzFu8RHQFpF7BrO7wSGIPgO2CecEyE3L2Mx5KsbgvJjNOvZWdZBntMi1mlhaAglly+lWdqfRdLLqUo0x3w5yCYFuhNcwfelDLW2xg9X7WRho9VA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785424658; c=relaxed/simple; bh=r51nVxiMvIg0v+VUAgBvGPp4HR5LX2TBvwFDvLGaYq4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nJb54Tq/ToW4LhD0OJ8ryIZB8POi1JJVDtfMp4CSyght8aI7O+kw5vzZlSIj4QbcAKZiJcGlKu8+BlqzGanXI4r2mtVUh1xrBXomHZLX1QUpZsxYFs3nOryvdfjRhdrBYr/2CEZyAh+iREFQ54j+iOolyLWpzeyD2U8rfKRWqzM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=v50IM4OP; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="v50IM4OP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CC471F000E9; Thu, 30 Jul 2026 15:17:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785424657; bh=Jqg8WgDGupimKWf3mgMv47VEk9kP7FqqyuK86a42MqE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=v50IM4OPQrtTvrwdiUHaHv7pwlKy1t24rzTTdOyIKsAjFjzcdBLHOYcGr3GnlqNCx T4S7pXSekftjf7f6I+ksh67SzuvO5kQG4KJSD/9DrqaZVvh0sh9ZZ+nuLTkMJptYkE in3NdNYf9M11bQauRpsim5t/VU2uw/r/fdBCZvzw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Josh Poimboeuf , Peter Zijlstra , Petr Pavlu , Alice Ryhl , Miguel Ojeda Subject: [PATCH 6.18 472/675] objtool/rust: add one more `noreturn` Rust function for Rust 1.99.0 Date: Thu, 30 Jul 2026 16:13:22 +0200 Message-ID: <20260730141455.160302505@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260730141445.110192266@linuxfoundation.org> References: <20260730141445.110192266@linuxfoundation.org> User-Agent: quilt/0.69 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.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Miguel Ojeda commit 5a81c35c3b18cd59ded56171a6a9f643b92a6759 upstream. Starting with Rust 1.99.0 (expected 2026-10-01), under `CONFIG_RUST_DEBUG_ASSERTIONS=y`, `objtool` may report: rust/kernel.o: warning: objtool: _R..._6kernel12module_param9set_paramaEB4_() falls through to next function _R..._6kernel12module_param9set_paramhEB4_() (and many others) due to calls to the `noreturn` symbol [1]: core::panicking::panic_null_reference_constructed Thus add the mangled one to the list so that `objtool` knows it is actually `noreturn`. See commit 56d680dd23c3 ("objtool/rust: list `noreturn` Rust functions") for more details. Cc: stable@vger.kernel.org # Needed in 6.12.y and later (Rust is pinned in older LTSs). Cc: Josh Poimboeuf Cc: Peter Zijlstra Cc: Petr Pavlu Link: https://github.com/rust-lang/rust/pull/158796 [1] Reported-by: Alice Ryhl Closes: https://lore.kernel.org/rust-for-linux/alEBInX9gD1M5NAr@google.com/ Reviewed-by: Alice Ryhl Tested-by: Alice Ryhl Link: https://patch.msgid.link/20260710173252.191781-1-ojeda@kernel.org Signed-off-by: Miguel Ojeda Signed-off-by: Greg Kroah-Hartman --- tools/objtool/check.c | 1 + 1 file changed, 1 insertion(+) --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -228,6 +228,7 @@ static bool is_rust_noreturn(const struc str_ends_with(func->name, "_4core9panicking18panic_nounwind_fmt") || str_ends_with(func->name, "_4core9panicking19assert_failed_inner") || str_ends_with(func->name, "_4core9panicking30panic_null_pointer_dereference") || + str_ends_with(func->name, "_4core9panicking32panic_null_reference_constructed") || str_ends_with(func->name, "_4core9panicking36panic_misaligned_pointer_dereference") || str_ends_with(func->name, "_7___rustc17rust_begin_unwind") || strstr(func->name, "_4core9panicking13assert_failed") ||