Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E37EC433F5 for ; Sat, 1 Jan 2022 00:18:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230152AbiAAAMu (ORCPT ); Fri, 31 Dec 2021 19:12:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbiAAAMu (ORCPT ); Fri, 31 Dec 2021 19:12:50 -0500 Received: from zeniv-ca.linux.org.uk (zeniv-ca.linux.org.uk [IPv6:2607:5300:60:148a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 914C9C061574 for ; Fri, 31 Dec 2021 16:12:49 -0800 (PST) Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1n3S0W-00GKYO-HC; Sat, 01 Jan 2022 00:12:24 +0000 Date: Sat, 1 Jan 2022 00:12:24 +0000 From: Al Viro To: Richard Weinberger Cc: hch , anton ivanov , x86 , linux-um , linux-kernel Subject: Re: remove set_fs for UML Message-ID: References: <20211215165612.554426-1-hch@lst.de> <1202521211.191037.1640120703350.JavaMail.zimbra@nod.at> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1202521211.191037.1640120703350.JavaMail.zimbra@nod.at> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 21, 2021 at 10:05:03PM +0100, Richard Weinberger wrote: > Christoph, > > ----- Urspr?ngliche Mail ----- > > Von: "hch" > > An: "richard" , "anton ivanov" > > CC: "x86" , "linux-um" , "linux-kernel" > > Gesendet: Mittwoch, 15. Dezember 2021 17:56:10 > > Betreff: remove set_fs for UML > > > Hi Richard and Anton, > > > > this series removes address space overrides using set_fs for UML. > > > > Diffstat: > > um/Kconfig | 1 - > > um/include/asm/thread_info.h | 4 ---- > > um/include/asm/uaccess.h | 21 +++++++++++++++++++-- > > um/kernel/skas/uaccess.c | 25 ------------------------- > > x86/include/asm/mtrr.h | 8 +------- > > x86/kernel/setup.c | 7 ++++++- > > x86/um/asm/segment.h | 8 -------- > > 7 files changed, 26 insertions(+), 48 deletions(-) > > So far UML seems to work with these changes applied. :-) > I have applied both patches to my UML tree for now, I assume x86 maintainers are fine with > patch 1/2? Hmmm... AFAICS, the right thing to do would be to have __get_kernel_nofault and __put_kernel_nofault in arch/x86/um/asm/something. The question is how to avoid duplicating the x86 implementation of those (along with the asm-goto fun, etc.)... But Christoph is right, it's not a new problem. As far as I'm concerned, that series looks fine.