From nobody Tue Feb 10 12:58:16 2026 Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) (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 CC903266565; Sun, 26 Oct 2025 22:13:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.136 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761516786; cv=none; b=FQ7go9PJPleDQId3aNkoGgxSKhWDvz2lwL8wI4uEg4Jcz6ybNJpPrzpu/2UgSYpd4ztWRjpFg0610Qtes+e9bjKIGnZO/2Pf8V0rCfx+8zKfMtlJ4Ftmwnc9plDmxUQWJPbk5xktCIOfnWEulyXhueDPRlOEJWJsZ0gtY3K3QaY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761516786; c=relaxed/simple; bh=W6pNYOImVPc9ZcljaYLlQUxzzHpTDnx/6KKkwpZzaXU=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kiZMX+GDhQ+SFuCCov1WqyYNgWjtBOHOq9WCnqT6V0h+toB+WyGh3uQdTkiyRXOT9yHTQdXPTeSuJp41p2/lK0NonYaq13/2H+5loRMyS2J9xG2XY5AJ7A0Aw4akh8uen+5yIWJlIrvfuEd0oucli4mAN8VTGecTEtS0OHbefOs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com; spf=pass smtp.mailfrom=zytor.com; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b=ldtqOC32; arc=none smtp.client-ip=198.137.202.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zytor.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="ldtqOC32" Received: from mail.zytor.com ([IPv6:2601:646:8081:9484:8257:f1ab:878e:498b]) (authenticated bits=0) by mail.zytor.com (8.18.1/8.17.1) with ESMTPSA id 59QMCFpO548264 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 26 Oct 2025 15:12:25 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 59QMCFpO548264 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2025102301; t=1761516747; bh=dIA/jdXg8XhpF5qFcJkcp8Nfo/i/kNxnm5Fq/ADnXoU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ldtqOC32Z7ofOTOOL2gbuuiwZQIpVuKjbUYHk5QVeXaNEf+wP6+wzmT22LWB0hW9f t2Rihp7rML9voHc7NL5XoGrbMklovVeD70bngnDkpGp37wxqk+bbK7gyZeJIHlDrQa ACGkOHod7Hn1wm5kztomJX5XveMz5zhrABMDmDmVzcLaS8UzUQ8a3uTKmbDErDXZw6 XMBdoIbgVztNYlOMsJHG4H9Pjovy/6+QbvmnwFeGfYLAsD48K93t0avD8kJtNGkeME 5J3T/LU8s0521B2bft8Qnhpbp4bsCsPakMyA3GgVndF8AdHGavJmAd/mcXSWVo9fid nWupg9XHOVKFg== From: "H. Peter Anvin" To: "H. Peter Anvin" , "Jason A. Donenfeld" , "Peter Zijlstra (Intel)" , "Theodore Ts'o" , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Xin Li , Andrew Cooper , Andy Lutomirski , Ard Biesheuvel , Borislav Petkov , Brian Gerst , Dave Hansen , Ingo Molnar , James Morse , Jarkko Sakkinen , Josh Poimboeuf , Kees Cook , Nam Cao , Oleg Nesterov , Perry Yuan , Thomas Gleixner , Thomas Huth , Uros Bizjak , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-sgx@vger.kernel.org, x86@kernel.org Subject: [PATCH 4/6] x86/entry/vdso32: remove SYSCALL_ENTER_KERNEL macro in sigreturn.S Date: Sun, 26 Oct 2025 15:12:04 -0700 Message-ID: <20251026221208.1938173-5-hpa@zytor.com> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251026221208.1938173-1-hpa@zytor.com> References: <20251026221208.1938173-1-hpa@zytor.com> 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" A macro SYSCALL_ENTER_KERNEL was defined in sigreturn.S, with the ability of overriding it. The override capability, however, is not used anywhere, and the macro name is potentially confusing because it seems to imply that sysenter/syscall could be used here, which is NOT true: the sigreturn system calls MUST use int $0x80. Signed-off-by: H. Peter Anvin (Intel) --- arch/x86/entry/vdso/vdso32/sigreturn.S | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/x86/entry/vdso/vdso32/sigreturn.S b/arch/x86/entry/vdso/v= dso32/sigreturn.S index 1bd068f72d4c..965900c6763b 100644 --- a/arch/x86/entry/vdso/vdso32/sigreturn.S +++ b/arch/x86/entry/vdso/vdso32/sigreturn.S @@ -3,10 +3,6 @@ #include #include =20 -#ifndef SYSCALL_ENTER_KERNEL -#define SYSCALL_ENTER_KERNEL int $0x80 -#endif - .text .globl __kernel_sigreturn .type __kernel_sigreturn,@function @@ -16,7 +12,7 @@ __kernel_sigreturn: .LSTART_sigreturn: popl %eax /* XXX does this mean it needs unwind info? */ movl $__NR_sigreturn, %eax - SYSCALL_ENTER_KERNEL + int $0x80 .LEND_sigreturn: SYM_INNER_LABEL(vdso32_sigreturn_landing_pad, SYM_L_GLOBAL) nop @@ -28,7 +24,7 @@ SYM_INNER_LABEL(vdso32_sigreturn_landing_pad, SYM_L_GLOBA= L) __kernel_rt_sigreturn: .LSTART_rt_sigreturn: movl $__NR_rt_sigreturn, %eax - SYSCALL_ENTER_KERNEL + int $0x80 .LEND_rt_sigreturn: SYM_INNER_LABEL(vdso32_rt_sigreturn_landing_pad, SYM_L_GLOBAL) nop --=20 2.51.1