Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752794AbdLHF2k (ORCPT ); Fri, 8 Dec 2017 00:28:40 -0500 Received: from mail-ua0-f181.google.com ([209.85.217.181]:35524 "EHLO mail-ua0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750934AbdLHF2g (ORCPT ); Fri, 8 Dec 2017 00:28:36 -0500 X-Google-Smtp-Source: AGs4zMYzf3GoVDfFDVlEPLiVqZJArfm8BZngNCMvC5cjaJasiMTtc6uejxqgPCRhV6c/ykJ6Z3JmGIt72eSGjMpzb3U= MIME-Version: 1.0 In-Reply-To: <20171207164506.GE21978@ZenIV.linux.org.uk> References: <53789f9af98217d24580479c55e550301651d4a8.1511785528.git.green.hu@gmail.com> <20171207164506.GE21978@ZenIV.linux.org.uk> From: Greentime Hu Date: Fri, 8 Dec 2017 13:27:54 +0800 Message-ID: Subject: Re: [PATCH v2 08/35] nds32: Process management To: Al Viro Cc: Greentime , Linux Kernel Mailing List , Arnd Bergmann , linux-arch , Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , netdev , Vincent Chen , DTML , David Howells , Will Deacon , Daniel Lezcano , linux-serial@vger.kernel.org, Vincent Chen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 549 Lines: 12 2017-12-08 0:45 GMT+08:00 Al Viro : > On Mon, Nov 27, 2017 at 08:27:55PM +0800, Greentime Hu wrote: > >> +#define start_thread(regs,pc,stack) \ >> +({ \ >> + set_fs(USER_DS); \ > > Not the job of start_thread() - its users (->load_binary() methods of > assorted binfmt) must (and do) call flush_old_exec() first. And > that will switch to USER_DS just fine. Thanks. I will remove this setting in the next version patch.