From nobody Mon Feb 9 16:32:44 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 AECE12063F6 for ; Mon, 3 Feb 2025 14:16:49 +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=1738592212; cv=none; b=OWBR78+TKKX0C4r53aZ+zbuGKg2uBEfOH7qu3YOJ3vdClLuW3wDxrCckVuuptTttPR/iaVLhUymzV3oXBZtBnNbbsoMBHelja5c6QdKVEXYS93dPwifKseslsJb1oB1dRpukH3vZIRUn9hwaf1ytdb9iV8TqtLv+s+dq078Gopk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738592212; c=relaxed/simple; bh=hK1A6zIsrNJAovrrv0VlTMANs2MhQLrSeZf+N+Ilra4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=p6A9JNhjUE2XhLwrygaezL78LsNcjaI7bWb4YGLcebS4ycL7lg9tOsUZj+Wq1e1+nWYP/Jr7AaiFMy2b272w5b+gHXYhm7GTQMgGT+uLtsFYpC8K9rJUR3lr56WkQ1Wvq8l6/+v5Qz9p832puBQgm2PAepD9diGsxBJhcgrVJs8= 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=iUUGvDyB; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=DCJLKVB0; 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="iUUGvDyB"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="DCJLKVB0" From: Sebastian Andrzej Siewior DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1738592207; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/1nmWywTWzJzDcPVwkzbvEHu1zvcPiY8k6qmYTOWby8=; b=iUUGvDyBJrA7c57inT21YOu8ZGBfhpvN2ZPc1wUQ0LZ7j1MwniZpFBN897AY4tBwcAKxp4 lpcdrzhQhjp4MUj4IK4PLHPVysC9yb465Cb1FET+G6AYqVAoFfT+1M8o+JvoLeKNLIQfkD wjZDn/A0rA1rEwLs4PZI/i4DP7MsfwwY6NkDQcGUrHX4RWkUYuO8pbmrOMDU0uT4iplxlf 1A1NbwajnOE9NN0vXctsatvQowPETzmaUj4tVlqNlhPalfBNBJz0tXFKAtUsefjzJiD3EJ Lx+JTiTYdikNn34kOZLspQLmhY/oFoH63eKQuSyHAXctrpVDt4MN+eaMwAzDNA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1738592207; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/1nmWywTWzJzDcPVwkzbvEHu1zvcPiY8k6qmYTOWby8=; b=DCJLKVB0wS/pJHnxQ7GqNHr4u3FHrpkpY1Dd5QrouEPyu6obnl3lePm4ISH+pJTsoJisem cZrzw0HN+s4qktCQ== To: linux-kernel@vger.kernel.org, linux-rt-devel@lists.linux.dev Cc: Ben Segall , Catalin Marinas , Dietmar Eggemann , Ingo Molnar , Juri Lelli , Mel Gorman , Peter Zijlstra , Shrikanth Hegde , Steven Rostedt , Thomas Gleixner , Valentin Schneider , Vincent Guittot , Will Deacon , Sebastian Andrzej Siewior , Josh Poimboeuf , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" Subject: [PATCH v2 7/9] x86: Rely on generic printing of preemption model. Date: Mon, 3 Feb 2025 15:16:30 +0100 Message-ID: <20250203141632.440554-8-bigeasy@linutronix.de> In-Reply-To: <20250203141632.440554-1-bigeasy@linutronix.de> References: <20250203141632.440554-1-bigeasy@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" After __die_header(), __die_body() is always invoked. There we have show_regs() -> show_regs_print_info() which prints the current preemption model. Remove it from the initial line. Cc: Josh Poimboeuf Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: x86@kernel.org Cc: "H. Peter Anvin" Signed-off-by: Sebastian Andrzej Siewior --- arch/x86/kernel/dumpstack.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/arch/x86/kernel/dumpstack.c b/arch/x86/kernel/dumpstack.c index a7d562697e50e..91639d1e4ec2c 100644 --- a/arch/x86/kernel/dumpstack.c +++ b/arch/x86/kernel/dumpstack.c @@ -395,18 +395,13 @@ NOKPROBE_SYMBOL(oops_end); =20 static void __die_header(const char *str, struct pt_regs *regs, long err) { - const char *pr =3D ""; - /* Save the regs of the first oops for the executive summary later. */ if (!die_counter) exec_summary_regs =3D *regs; =20 - if (IS_ENABLED(CONFIG_PREEMPTION)) - pr =3D IS_ENABLED(CONFIG_PREEMPT_RT) ? " PREEMPT_RT" : " PREEMPT"; - printk(KERN_DEFAULT - "Oops: %s: %04lx [#%d]%s%s%s%s%s\n", str, err & 0xffff, - ++die_counter, pr, + "Oops: %s: %04lx [#%d]%s%s%s%s\n", str, err & 0xffff, + ++die_counter, IS_ENABLED(CONFIG_SMP) ? " SMP" : "", debug_pagealloc_enabled() ? " DEBUG_PAGEALLOC" : "", IS_ENABLED(CONFIG_KASAN) ? " KASAN" : "", --=20 2.47.2