From nobody Wed Dec 17 17:28:43 2025 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 7C04015442A; Sun, 16 Mar 2025 11:01:41 +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=1742122903; cv=none; b=DmsRflPrlHks0cI70hfa4Z51O3NxgXFF2KVXoOuXaGrQqkOHXH9HJET010jUuYtfhcl33r1vDAnrNu7g8AJ0dQ5jzW7+tNO1U5/3GwpwCSowRV6y5UVrD6dBY1HKUy9gxvTDFGu74bCJ0y0U3zzFuOolarDeVy1qVSWNl1X2DnY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742122903; c=relaxed/simple; bh=FK2ii0J1Qumg0XfdFvUZWAwxXpEo3+1QV3vviGSaA6Q=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=cwE/d7itaczkDbVGxKiQaHqEehUu4TQSkYx2FhDiCSOuq+SODNH6w6p6apNucOgo1ixj6qgRehxStRrF+B5uN3257BnIn3ql+reI97GvMwvhbuc9QUtlMeDXbaPXOt0BIboD0NQ4o3AkyQjF7QCsVV3gNYrM11pKNzhhyZpa0Zg= 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=itvPfan1; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=aIyrlNL1; 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="itvPfan1"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="aIyrlNL1" Date: Sun, 16 Mar 2025 11:01:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1742122899; 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=ltfbINI5/8UyA4zNlSkix+JEal0SGCJk9++ZP4MJcgI=; b=itvPfan1EO073LCqqystzryvgCNmdGFTiRtw3DYXe5hJyNjd3uIptsypfYiaq6DMgJ+2pB BV1RYq5E3SDP1XtlohpWOFRkExi1bKzFq66ptdnPqLhyrvJEsJKbhwb0cjtCfKde+jqr44 l7oUzZ8DRKSRlKhRdk3DjnfXJVMfXCXW37sBDMrNKwfe5JzFqu11ewbLXg8cKl1Sbk9XKZ nKvw9ukgsU+/AStqMs00eCONrpczphYLT2A5M8LyeSfV14doJ0VinVr/xrVSMQ0ho/yt/o jOvdRnaJYmJ5Zp3Y/zbMdP20C3xrOd/y912Jzupvxcjw+HUFfLcfz4Uk/1gF/w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1742122899; 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=ltfbINI5/8UyA4zNlSkix+JEal0SGCJk9++ZP4MJcgI=; b=aIyrlNL17K6zAYLThVpPbg/GhfJicG3Q3SEchVlR2m5uPzE6mC76ppI8malLrTmkBdi6jt wf3upzMR8k3oCUAg== From: "tip-bot2 for Brian Gerst" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cpu] x86/syscall: Move sys_ni_syscall() Cc: Brian Gerst , Ingo Molnar , Sohil Mehta , Andy Lutomirski , "H. Peter Anvin" , Linus Torvalds , Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20250314151220.862768-6-brgerst@gmail.com> References: <20250314151220.862768-6-brgerst@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <174212289894.14745.11811231569858853677.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 x86/cpu branch of tip: Commit-ID: 7abd22188d76307aea7956cc7723f8ef20c1a606 Gitweb: https://git.kernel.org/tip/7abd22188d76307aea7956cc7723f8ef2= 0c1a606 Author: Brian Gerst AuthorDate: Fri, 14 Mar 2025 11:12:18 -04:00 Committer: Ingo Molnar CommitterDate: Sun, 16 Mar 2025 11:49:42 +01:00 x86/syscall: Move sys_ni_syscall() Move sys_ni_syscall() to kernel/process.c, and remove the now empty entry/common.c No functional changes. Signed-off-by: Brian Gerst Signed-off-by: Ingo Molnar Reviewed-by: Sohil Mehta Cc: Andy Lutomirski Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Josh Poimboeuf Link: https://lore.kernel.org/r/20250314151220.862768-6-brgerst@gmail.com --- arch/x86/entry/Makefile | 3 +--- arch/x86/entry/common.c | 38 +-------------------------------------- arch/x86/kernel/process.c | 5 +++++- 3 files changed, 5 insertions(+), 41 deletions(-) delete mode 100644 arch/x86/entry/common.c diff --git a/arch/x86/entry/Makefile b/arch/x86/entry/Makefile index e870f8a..72cae8e 100644 --- a/arch/x86/entry/Makefile +++ b/arch/x86/entry/Makefile @@ -7,16 +7,13 @@ KASAN_SANITIZE :=3D n UBSAN_SANITIZE :=3D n KCOV_INSTRUMENT :=3D n =20 -CFLAGS_REMOVE_common.o =3D $(CC_FLAGS_FTRACE) CFLAGS_REMOVE_syscall_32.o =3D $(CC_FLAGS_FTRACE) CFLAGS_REMOVE_syscall_64.o =3D $(CC_FLAGS_FTRACE) =20 -CFLAGS_common.o +=3D -fno-stack-protector CFLAGS_syscall_32.o +=3D -fno-stack-protector CFLAGS_syscall_64.o +=3D -fno-stack-protector =20 obj-y :=3D entry.o entry_$(BITS).o syscall_$(BITS).o -obj-y +=3D common.o =20 obj-y +=3D vdso/ obj-y +=3D vsyscall/ diff --git a/arch/x86/entry/common.c b/arch/x86/entry/common.c deleted file mode 100644 index 5bd448c..0000000 --- a/arch/x86/entry/common.c +++ /dev/null @@ -1,38 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-only -/* - * common.c - C code for kernel entry and exit - * Copyright (c) 2015 Andrew Lutomirski - * - * Based on asm and ptrace code by many authors. The code here originated - * in ptrace.c and signal.c. - */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -SYSCALL_DEFINE0(ni_syscall) -{ - return -ENOSYS; -} diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c index 6da6769..b5fb108 100644 --- a/arch/x86/kernel/process.c +++ b/arch/x86/kernel/process.c @@ -1060,3 +1060,8 @@ long do_arch_prctl_common(int option, unsigned long a= rg2) =20 return -EINVAL; } + +SYSCALL_DEFINE0(ni_syscall) +{ + return -ENOSYS; +}