Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3449937imm; Sun, 19 Aug 2018 21:36:20 -0700 (PDT) X-Google-Smtp-Source: AA+uWPx4k4tKHE9ZVWmI/UeckRVkoYxBgKeyJ2c1ET2GJnKJH8MDxbnU7D9Ph8WVFCZ2RvGsaTkQ X-Received: by 2002:a63:1618:: with SMTP id w24-v6mr15300880pgl.43.1534739779945; Sun, 19 Aug 2018 21:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534739779; cv=none; d=google.com; s=arc-20160816; b=ypLyMydYZCmI2oMiDfbv5VsWjELoKYbEl1GcrU1fmFeRQd3X6ZfoGk7LLVfFprppCC BunZbUhtNTSUi05fdGPAQjt3o8jELQdF7+ce/sL3VpHGbLFK66tbQsrrNLwgXjWQJS5K uymr9U/pYlOOIyVaiI+4zWx8RyN3w1g+R6d5b7LmroJvzs8rSY+pEBq5zCj6gkYsjxyZ 3PpTytJR0oxmka5FYr4Mdqqlbhb22pOOZGkU11wo/Rg+d3TbQzHTguFxX2KClKLF7E32 ayDwvwWbuk+gDfabJRhBW5J6xd/JeHMDt+t+9bw1De55OVXIAtSmbRhQ5jtnUmjNN+zI 1wNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:arc-authentication-results; bh=UIypSzqRfK256IMxTbIw7i4U2InLz/K8Cr3n85r7j3E=; b=w8qr6Pzor7sWXURzH00kFKnCilQC9GJRIcbpktPyCN/mKb8+IRlUQCA3cc4loE6M68 7rAi7vmdjjFY/2W8OJ/FPqqsODGZTqY2uAmH+kTcNeqRweyewdeD9aDuh3fp4kLbTJ+2 TkqjsBO6IezBx4xQY9qcCsMDFw4ISu3RMnrxDtuLl4k6U5DGbMWuVm/Lsu37ULw3MPHS jJ8hDPbfQgcAvEjn5wbxzdP+/7qymxntGw8wTICppz2o+pr8OqjzbfNEoUWu1Uotls8P 6Q7Fo/z/YueO2h8G0iWVLJUGv782qAbJcoDzzjYLE3mWaRmBWS6Xlo6+3Bd+FRG1h14w vXdg== 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 j38-v6si7393018pgj.613.2018.08.19.21.36.05; Sun, 19 Aug 2018 21:36:19 -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 S1726043AbeHTHsy (ORCPT + 99 others); Mon, 20 Aug 2018 03:48:54 -0400 Received: from alum-mailsec-scanner-3.mit.edu ([18.7.68.14]:58816 "EHLO alum-mailsec-scanner-3.mit.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725942AbeHTHsx (ORCPT ); Mon, 20 Aug 2018 03:48:53 -0400 X-AuditID: 1207440e-c13ff7000000162b-3c-5b7a44e95a03 Received: from outgoing-alum.mit.edu (OUTGOING-ALUM.MIT.EDU [18.7.68.33]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by alum-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP id 46.17.05675.9E44A7B5; Mon, 20 Aug 2018 00:34:50 -0400 (EDT) Received: from email-server.localdomain (104-63-242-122.lightspeed.irvnca.sbcglobal.net [104.63.242.122]) (authenticated bits=0) (User authenticated as rian@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.13.8/8.12.4) with ESMTP id w7K4YjME000487 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 20 Aug 2018 00:34:46 -0400 Received: from roundcube-server (localhost [127.0.0.1]) (Authenticated sender: rian@thelig.ht) by email-server.localdomain (Postfix) with ESMTPA id D3D6749F477; Sun, 19 Aug 2018 21:34:42 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 19 Aug 2018 21:34:42 -0700 From: Rian Hunter To: Andy Lutomirski Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Andy Lutomirski , Borislav Petkov , Vitaly Kuznetsov , Joerg Roedel , Dmitry Safonov , Josh Poimboeuf Subject: Re: [PATCH] x86/process: Export start_thread() In-Reply-To: <53141AE9-7192-432B-8A27-25986CF442D4@amacapital.net> References: <20180819230854.7275-1-rian@alum.mit.edu> <53141AE9-7192-432B-8A27-25986CF442D4@amacapital.net> Message-ID: X-Sender: rian@alum.mit.edu User-Agent: Roundcube Webmail/1.1.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGKsWRmVeSWpSXmKPExsUixO6iqPvKpSraoHuNlMWRlgnsFhc/rWS3 mLZR3OLAzxOMFpNPzWWyuLxrDpvF6rUNrBbnd61ltbh0YAGTxeZNU5ktJrVeZrb4seExqwOP x/03f1k8dk9vYvTYtKqTzePduXPsHu/3XWXz2Hy62uPzJjmPEy1fWAM4orhsUlJzMstSi/Tt ErgyHv/oYipYzlXxaEl0A+NWji5GTg4JAROJBb+/MXcxcnEICexgkuh8tYIdwnnGJLHv8AwW COcMo8TbbffYQFp4BQQlTs58ApTg4GAWsJZo32MAEmYWkJfY/nYOM4jNIqAqMefoJBYQmw3I 3txyBCwuIqAp8XLKfLCZzAKrmCVuHHrOCJIQFjCXeHLmM5jNKeAkcaPnJ9guIYFciauH97ND 7LWQWL7mGRvE2dIS2z98Ywe5QVRAWaK7LXsCo+AsJNfNQrhuFpLrFjAyr2KUS8wpzdXNTczM KU5N1i1OTszLSy3SNdbLzSzRS00p3cQIiSy+HYzt62UOMQpwMCrx8C64WhktxJpYVlyZe4hR koNJSZRX27QqWogvKT+lMiOxOCO+qDQntfgQowQHs5II79UfQOW8KYmVValF+TApaQ4WJXFe NpO9UUIC6YklqdmpqQWpRTBZGQ4OJQne6c5AQwWLUtNTK9Iyc0oQ0kwcnCDDeYCGf3MCquEt LkjMLc5Mh8ifYjTmuNXcM4mZ48/7qZOYhVjy8vNSpcR5XYDpTUgApDSjNA9uGiw5vmIUB3pO mHcvyFIeYGKFm/cKaBUT0Cp2NpA/iksSEVJSDYyKHkevHl9fwFx0aI91d/zuI0kbVZYdEr51 +5+H3VTGWCWDBIbm1JcPjsYfvtUttdN6N5f/jV5J/d1Tas7mVV/fKagTuurKkpzfnlUV327+ 1LJtWSd6zMSdV+xk5ePnK+bN0hITLd/f8N7d9enCLLckQ6+kh89/CThmHnybUnVrymm/AIHK wi1KLMUZiYZazEXFiQA9bfNOaQMAAA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-08-19 19:29, Andy Lutomirski wrote: >> On Aug 19, 2018, at 4:08 PM, Rian Hunter wrote: >> >> Commit e634d8fc792c ("x86-64: merge the standard and compat >> start_thread() functions") removed exporting for the start_thread() >> function in what seems like a typo. Add it back to >> arch/x86/kernel/process_64.c for parity with process_32.c and other >> arch. > > What for? Perhaps 32-bit could remove it instead? > Came across this while writing a binfmt module. Useful for me but probably no one else on Earth, at least for another ~9 years on average. >> Signed-off-by: Rian Hunter >> --- >> arch/x86/kernel/process_64.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/arch/x86/kernel/process_64.c >> b/arch/x86/kernel/process_64.c >> index 476e3ddf8890..a451bc374b9b 100644 >> --- a/arch/x86/kernel/process_64.c >> +++ b/arch/x86/kernel/process_64.c >> @@ -384,6 +384,7 @@ start_thread(struct pt_regs *regs, unsigned long >> new_ip, unsigned long new_sp) >> start_thread_common(regs, new_ip, new_sp, >> __USER_CS, __USER_DS, 0); >> } >> +EXPORT_SYMBOL_GPL(start_thread); >> >> #ifdef CONFIG_COMPAT >> void compat_start_thread(struct pt_regs *regs, u32 new_ip, u32 new_sp) >> -- >> 2.16.3 >>