From mboxrd@z Thu Jan 1 00:00:00 1970 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 BE248385D82; Sun, 12 Jul 2026 12:44:08 +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=1783860252; cv=none; b=Y7E0qXTGP6qqgqhPI+hHJLk/g/o+KbT36CPTncICFIjvO86prx0fCy45FdOCw830FLXE9trRs9Pb+WCyyaHGeew+21TEKpNBnYy5lF1XIhYzpNgFI2EZF+QWonyVlkGgaLKNzVl46W98J9srsqzDVF6NCwPoHudIRtBOan7PjDs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783860252; c=relaxed/simple; bh=Yb/iAM8WMhuD1eYIMBWRH3myU0RkihxOGoNqcAQ2XRs=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=mJStRM0AssLp0oxyJKrXGvEsFFrQnenI0Iq0s4ralewmFouwMjbQtChMeqbkU6pPTKZOd4JROJ47n2dWhIoRBOdQhNeUw4gDLxnFqzs5hLPFIHyFPnzxO8oxtf11MhhUSrX8ztsh9J6CTXo2AK1RHs3FnR47clp8uH39e7QA5kg= 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=EFty1X0u; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=n91L1FOn; 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="EFty1X0u"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="n91L1FOn" Date: Sun, 12 Jul 2026 12:44:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1783860247; 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=m/6Xj+pIlEiExc8x3RB07q6zzAKWAvP1kzkGDVPfZjA=; b=EFty1X0uqK/KIRe2i2yKklIjEo5XQ8IhFBiUKRcjrkheyr//M2GeCUWuXrqhb96lZ6Ta0H jvKbvT5Jk5Sxtl7xlLgK/L4l2DxeEGwhPR73ayVcnGEjE6AoQfvNMopAyI8SjoXC+oAVAv R4oWrQjNvugp9foe24NhCRo21AXJrYgZS5cHiCVo6th+fzc5JGAHDVnYdx55lbpFeqOp2r GXGhk8iCn0V1DrKH5Cu9Jmt1s9mF7re8PTR6l5l+8TCubrsKE9wIG4Re8qJUtf6eujDJVU PnvE14I+qqxpH+MMpcprAh3L6aOTRvM3wqAHe23bCrSUyDmG/rPMCYFJIDW3Kg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1783860247; 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=m/6Xj+pIlEiExc8x3RB07q6zzAKWAvP1kzkGDVPfZjA=; b=n91L1FOnqH1jd02TjEvfDNbudH1xruF2Qs6gSusiC1ErG8XoCluj/8UvuG+PCLDMjAtN7O yxbphaAw34Tsl3AQ== 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] s390/syscall: Use enter_from_user_mode_randomize_stack() Cc: Thomas Gleixner , "Mukesh Kumar Chaurasiya (IBM)" , Sven Schnelle , Radu Rendec , Jinjie Ruan , philmd@oss.qualcomm.com, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260707190254.030598804@kernel.org> References: <20260707190254.030598804@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178386024554.1844600.16395232859570073354.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: 05a194d8bd005e0887a1e089bbbbd2e1a641638f Gitweb: https://git.kernel.org/tip/05a194d8bd005e0887a1e089bbbbd2e1a64= 1638f Author: Thomas Gleixner AuthorDate: Tue, 07 Jul 2026 21:06:23 +02:00 Committer: Thomas Gleixner CommitterDate: Sun, 12 Jul 2026 12:38:01 +02:00 s390/syscall: Use enter_from_user_mode_randomize_stack() enter_from_user_mode_randomize_stack() replaces enter_from_user_mode() and the subsequent invocation of add_random_kstack_offset_irqsoff(). As a bonus this avoids the overhead of get/put_cpu_var() in add_random_kstack_offset(). No functional change. Signed-off-by: Thomas Gleixner Tested-by: Mukesh Kumar Chaurasiya (IBM) Reviewed-by: Sven Schnelle Reviewed-by: Radu Rendec Reviewed-by: Jinjie Ruan Reviewed-by: Mukesh Kumar Chaurasiya (IBM) Reviewed-by: Philippe Mathieu-Daud=C3=A9 Link: https://patch.msgid.link/20260707190254.030598804@kernel.org --- arch/s390/kernel/syscall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/s390/kernel/syscall.c b/arch/s390/kernel/syscall.c index 75d5a3c..73abda2 100644 --- a/arch/s390/kernel/syscall.c +++ b/arch/s390/kernel/syscall.c @@ -97,8 +97,8 @@ void noinstr __do_syscall(struct pt_regs *regs, int per_tra= p) { unsigned long nr; =20 - enter_from_user_mode(regs); - add_random_kstack_offset(); + enter_from_user_mode_randomize_stack(regs); + regs->psw =3D get_lowcore()->svc_old_psw; regs->int_code =3D get_lowcore()->svc_int_code; update_timer_sys();