From nobody Sat Jul 25 23:05:42 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 A42B93ACEEC; Sun, 12 Jul 2026 12:44:11 +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=1783860255; cv=none; b=X8XsPJn2n4s3Ild1oWLtDwqDYzUMdODOkbnP5RTNRvvNl2CXslFhcbpvfvdMugtLScTz0CaUOsNwznP0Xw+9W+bIrgR6sTY828402jWP+QwF1DpBlajj5NuTXWOT8iP/5u3GJggszx4ilRzAU2yDH/OEhqLJ+U2XUI9Xsz/iIdg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783860255; c=relaxed/simple; bh=wJAaowEemRQIuIJHuVRAOoaDyJunytkJAYBi6FDDj4o=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=naz/SeQpvSHxP7SETdtIEfaYUE+YWAvm3mHZPOgeCJPiRPThEEX3Hyk/kl/+LHlTxnP/l84CIPQWHu0B8PwW/wU8Iqjsw6LdhEFn9MHy6KM1bcSdfnrrOmKYXY0fSiwvY+RZLrArF82zABJaOlGvVqt2l441VRyoAHp7O1GwpbY= 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=msxn6juI; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=OLAgbMy5; 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="msxn6juI"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="OLAgbMy5" Date: Sun, 12 Jul 2026 12:44:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1783860250; 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=fhiBuZNzx/quR+2eo0dLeYXFl8YE/XbPDVFbH0Lnp8w=; b=msxn6juIAbjWn1rjTSGAa3dP6DCprAIBloVJvUHd4Z9zqHCdMvSEKm7u51sAckydfY+Tkk P7npmdbNcqa2YRgu7+wo2Ou76n32/4SOr+84VENfVeuNiKgmh6l4g4o4YGbMGTK/XlQtY4 nhFtvhuQ15WEAPCozlAkJkn8W5D1adAfX3LNu6GcGqwSCDFugaJbB9d7bvnWXB2hV3iipE ohxAFh14vVjoWNp5C4yHtU0P6pZPmGpxcJ70QRiRWRt8S9lFztHzRItPrSBjy9Q/fw/BfB piQPrqHeJyz1rZAKLeNyzkzRH7td5gj9T4+kTgFFVCaosUHmOXUDMSybNHoniQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1783860250; 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=fhiBuZNzx/quR+2eo0dLeYXFl8YE/XbPDVFbH0Lnp8w=; b=OLAgbMy5b3d3mY1hEHxfeQF8GKwlMqW9yzuiXr/eYRjLve1qkPgFxPk253eYregETM/jVi ZJfPnAYh37E72lAQ== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: core/entry] powerpc/syscall: Use syscall_enter_from_user_mode_randomize_stack() Cc: Thomas Gleixner , "Mukesh Kumar Chaurasiya (IBM)" , Radu Rendec , Jinjie Ruan , philmd@oss.qualcomm.com, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260707190253.918861529@kernel.org> References: <20260707190253.918861529@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178386024874.1844600.1773515200944487482.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the core/entry branch of tip: Commit-ID: 3b2b9c0198bbcf077f201cd693a0efc597d05405 Gitweb: https://git.kernel.org/tip/3b2b9c0198bbcf077f201cd693a0efc59= 7d05405 Author: Thomas Gleixner AuthorDate: Tue, 07 Jul 2026 21:06:15 +02:00 Committer: Thomas Gleixner CommitterDate: Sun, 12 Jul 2026 12:38:01 +02:00 powerpc/syscall: Use syscall_enter_from_user_mode_randomize_stack() syscall_enter_from_user_mode_randomize_stack() replaces syscall_enter_from_user_mode() and the subsequent invocation of add_random_kstack_offset(). The advantage is that it applies the stack randomization right after enter_from_user_mode() and thereby avoids the overhead of get/put_cpu_var() as that code is invoked with interrupts disabled. No functional change. Signed-off-by: Thomas Gleixner Tested-by: Mukesh Kumar Chaurasiya (IBM) Reviewed-by: Radu Rendec Reviewed-by: Jinjie Ruan Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Mukesh Kumar Chaurasiya (IBM) Link: https://patch.msgid.link/20260707190253.918861529@kernel.org --- arch/powerpc/kernel/syscall.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/syscall.c b/arch/powerpc/kernel/syscall.c index ee07b2e..b4d0159 100644 --- a/arch/powerpc/kernel/syscall.c +++ b/arch/powerpc/kernel/syscall.c @@ -2,7 +2,6 @@ =20 #include #include -#include #include =20 #include @@ -19,8 +18,7 @@ notrace long system_call_exception(struct pt_regs *regs, = unsigned long r0) long ret; syscall_fn f; =20 - r0 =3D syscall_enter_from_user_mode(regs, r0); - add_random_kstack_offset(); + r0 =3D syscall_enter_from_user_mode_randomize_stack(regs, r0); =20 if (unlikely(r0 >=3D NR_syscalls)) { if (unlikely(trap_is_unsupported_scv(regs))) {