Received: by 10.213.65.68 with SMTP id h4csp970607imn; Sun, 18 Mar 2018 09:13:39 -0700 (PDT) X-Google-Smtp-Source: AG47ELuYWV8r8ir04IZ0KA2D2SSvONiBtAcuFPIe4qgY64R6SSLUwMnOPDt2jareS2JX1pOxzpCq X-Received: by 10.98.98.194 with SMTP id w185mr7669244pfb.206.1521389619357; Sun, 18 Mar 2018 09:13:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521389619; cv=none; d=google.com; s=arc-20160816; b=Q8vjRzRAHCEeZVq2ig5x+Pn3XT8sF8pQirmiFVOIZVSj914yT2w66EvJ7RECugRmif dM630m415ShG4iuB7hlH2KMq2Rn4bGdi987Qf4u4KyJyxJs/cAK4ldHNbsSU+8rKx1oY RHdkJ8PReMl4HZecAuuFNnm27kTsb+ZKkybzWf2TtdGTInUS1/c2qEYrzA9iGZfsop+v Pm+qoE6ig57ggqCTlKSF3qbROg8m0i1FwvyfITlRP1ribn5AGBKzyBx/qVxs4HhLdmC0 19CeNK+ca/cc8RoKnBELwMnbxeajon8pEEwR5BsAD+tpLJaoic4tNIYMVddzdb3b4L+6 ngLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=h2tUcQqPQPpMhy1x6K2Q5mVJJ/BO9S/74x4dKNH29gU=; b=M490q0gMuAVxzJSB4gn5QmtXsiL+tFgOK0ZyBj7TRnwsGVziuqHJgjUDCn5c54Tysz jiS41OTH/+0TAFsQZCqCOmOW//5jUa1jDfrWh5eKz9F1HEo+NkF4iBlDnl/JvbMI7792 MIdh2NLj8xbma7ZChWg/+/wJoD+eZoG8SruLrytapW8FBGBtIITKSVS+kQi9MBVtN79e UP2alpWeq7qUMQmdLVLdL/9iJyzXJWrcDj5thti4wR9/IjOtVTKSfEHaNfSi/oCrA7wY amY4KTVZiAWkjUkzmEC0UXlAfXmnEoXpiUeqySpTR4/llf4hj0iq5caFJGv1eKSnjyMu L6MA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l14si4917598pgs.309.2018.03.18.09.13.23; Sun, 18 Mar 2018 09:13:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754726AbeCRQMN (ORCPT + 99 others); Sun, 18 Mar 2018 12:12:13 -0400 Received: from isilmar-4.linta.de ([136.243.71.142]:46522 "EHLO isilmar-4.linta.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754162AbeCRQL7 (ORCPT ); Sun, 18 Mar 2018 12:11:59 -0400 Received: from light.dominikbrodowski.net (isilmar.linta [10.0.0.1]) by isilmar-4.linta.de (Postfix) with ESMTPS id B522C200909; Sun, 18 Mar 2018 16:11:57 +0000 (UTC) Received: by light.dominikbrodowski.net (Postfix, from userid 1000) id DA17420D19; Sun, 18 Mar 2018 17:11:15 +0100 (CET) From: Dominik Brodowski To: linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, arnd@arndb.de, viro@ZenIV.linux.org.uk Cc: linux-arch@vger.kernel.org, Ingo Molnar , Jiri Slaby , x86@kernel.org Subject: [RFC PATCH 5/6] x86: use _do_fork() in compat_sys_x86_clone() Date: Sun, 18 Mar 2018 17:10:55 +0100 Message-Id: <20180318161056.5377-6-linux@dominikbrodowski.net> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180318161056.5377-1-linux@dominikbrodowski.net> References: <20180318161056.5377-1-linux@dominikbrodowski.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is trivial to directly call _do_fork() instead of the sys_clone() syscall in compat_sys_x86_clone(). This patch is part of a series which tries to remove in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. Cc: Ingo Molnar Cc: Jiri Slaby Cc: x86@kernel.org Signed-off-by: Dominik Brodowski --- arch/x86/ia32/sys_ia32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/ia32/sys_ia32.c b/arch/x86/ia32/sys_ia32.c index 89dcb36d19da..31d50d11239b 100644 --- a/arch/x86/ia32/sys_ia32.c +++ b/arch/x86/ia32/sys_ia32.c @@ -41,6 +41,7 @@ #include #include #include +#include #include #include #include @@ -204,6 +205,6 @@ COMPAT_SYSCALL_DEFINE5(x86_clone, unsigned long, clone_flags, unsigned long, newsp, int __user *, parent_tidptr, unsigned long, tls_val, int __user *, child_tidptr) { - return sys_clone(clone_flags, newsp, parent_tidptr, child_tidptr, + return _do_fork(clone_flags, newsp, 0, parent_tidptr, child_tidptr, tls_val); } -- 2.16.2