Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47BEAC6FD1E for ; Fri, 10 Mar 2023 20:55:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231340AbjCJUza (ORCPT ); Fri, 10 Mar 2023 15:55:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231400AbjCJUyx (ORCPT ); Fri, 10 Mar 2023 15:54:53 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80E951219D0; Fri, 10 Mar 2023 12:54:52 -0800 (PST) Date: Fri, 10 Mar 2023 20:54:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1678481689; 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=rL0J423GBVGHeksGJTZLQfQAxnBLSQAQfYgEcTOUz0g=; b=u2j2VYONSGsBhZQHPnLHcKf9LJH1ArkVbeNrEABaNFPEAKLij1qCrmJyPrJVqyJrIZ7JZj TSpjg4oJylNR7M7LAqyVxt1gB7Gh2WdJ/OK53knakQYhbAQXQ9NbBq6YzMm0MxHgzk0n9G 9FhuIIFaxDvAqbQUeINt713tZAuCI7YXeZ4ct6P4j3eyV1P+ruK3G8q6Ug7Gtf5NChF9fC nFQzsmAug9g1/IDNMANRV9WoulLEihQMRn30k7riaI7tnMev0vu45Vw1Yj3oRiz3ZIQl4D kwmAHNsDEfbZZhkq/f+P9GGC48L/ix37OlRf1lbr3vfDTsHhnYIB5TDnAA/IjA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1678481689; 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=rL0J423GBVGHeksGJTZLQfQAxnBLSQAQfYgEcTOUz0g=; b=nZ/vYw6kP5E4/3rw9RujPjFEWn1qtgyDikATEJ77s87nixuVOPSM+8UvxiH+x/4v6mxPjI JwLPohcQyWKmBsCQ== From: "tip-bot2 for Josh Poimboeuf" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: objtool/core] x86/cpu: Make sure play_dead() doesn't return Cc: Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <11e6ac1cf10f92967882926e3ac16287b50642f2.1676358308.git.jpoimboe@kernel.org> References: <11e6ac1cf10f92967882926e3ac16287b50642f2.1676358308.git.jpoimboe@kernel.org> MIME-Version: 1.0 Message-ID: <167848168944.5837.18023341418882320171.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the objtool/core branch of tip: Commit-ID: a02f50b573b3c90a3633a5ab67435fe4c0de144d Gitweb: https://git.kernel.org/tip/a02f50b573b3c90a3633a5ab67435fe4c0de144d Author: Josh Poimboeuf AuthorDate: Mon, 13 Feb 2023 23:05:51 -08:00 Committer: Josh Poimboeuf CommitterDate: Wed, 08 Mar 2023 08:44:26 -08:00 x86/cpu: Make sure play_dead() doesn't return After commit 076cbf5d2163 ("x86/xen: don't let xen_pv_play_dead() return"), play_dead() never returns. Make that more explicit with a BUG(). BUG() is preferable to unreachable() because BUG() is a more explicit failure mode and avoids undefined behavior like falling off the edge of the function into whatever code happens to be next. Link: https://lore.kernel.org/r/11e6ac1cf10f92967882926e3ac16287b50642f2.1676358308.git.jpoimboe@kernel.org Signed-off-by: Josh Poimboeuf --- arch/x86/include/asm/smp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/smp.h b/arch/x86/include/asm/smp.h index b4dbb20..8f628e0 100644 --- a/arch/x86/include/asm/smp.h +++ b/arch/x86/include/asm/smp.h @@ -96,6 +96,7 @@ static inline void __cpu_die(unsigned int cpu) static inline void play_dead(void) { smp_ops.play_dead(); + BUG(); } static inline void smp_send_reschedule(int cpu)