Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp419277yba; Wed, 24 Apr 2019 03:40:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxrsJIoQhBKwzoTcqocOA4ULrVOkqPfrAH79XtSr+ckl8npbn4M9eFbP94ufHphNoLzOzZs X-Received: by 2002:a62:ed10:: with SMTP id u16mr32261683pfh.187.1556102407542; Wed, 24 Apr 2019 03:40:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556102407; cv=none; d=google.com; s=arc-20160816; b=xj0VYT3sPl8ot/LQ6ei8PPNnFnhVImbgm5NI9vZ8msK16KlpPLmONRo7uBfTgrzcEn xGCGUyzatuYT1OwAY/Xqt7MIAHh1gM1i/7YH2e3usTYQJx/A1TG3xB6LId7N4QpyNHMb ZneodK27l8mSMn5w+hyCYCWvG6swAdJDvcB9Mfi68NqBu0QXnh6dWudIfMoE/RF5/kvp 9zPz/yQfnfQ+PDCnYkfA1fd0VjuEVqbxe4DTIXHiiC3DfFfB1BL+LB20ppyNvit4HETE X8t2wNdWAJvAKWimnu6paUKVN3VV37rDx4lbTp5z3/dYFrHN/DaDponTWJsIyu7rkE5E BBAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wsgyHyZE+jfFydeBCeq6GdpD8XqGO5uZiHSAewvYEX8=; b=hdxlb4skFL2NDXN295V2hI6bFejGwzLp4wpxRt2DqIphj4z3eF6EO37S9UdDrMHDrg 0vbI3BfJysOxvoCy0ljnU4kHzHJTGY6uzmXmdkw1/NK+nXOinBKMt1Yz5mdNxVvbWjJc Y9FealpPQFuXWUgJtam7AKukN0ZdD3mZkO+nv3yEM80qbk5geI6YN+zCrJ9heqcTeAGU kqpZNi+NRizeTzG5322t0RV5XWmjdZt7n6H9zYRHb1rFYvpd6CibP2nckxDBsD/4wCoj FJk90kgHtlNJC0zxppk/xqHyaBFGKWd7q+fPme1ChZjve602kS9Ayv7h4q8RxriYN4by sN3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=M6sbW3Jr; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a36si17639665pgb.165.2019.04.24.03.39.52; Wed, 24 Apr 2019 03:40:07 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=M6sbW3Jr; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728658AbfDXKij (ORCPT + 99 others); Wed, 24 Apr 2019 06:38:39 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:37714 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726550AbfDXKii (ORCPT ); Wed, 24 Apr 2019 06:38:38 -0400 Received: by mail-wm1-f66.google.com with SMTP id v14so4324771wmf.2 for ; Wed, 24 Apr 2019 03:38:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=wsgyHyZE+jfFydeBCeq6GdpD8XqGO5uZiHSAewvYEX8=; b=M6sbW3Jrs1vBKu5c8UAYdi23vVgcx6USFi/sNaLjvC5FlThXpLGjkkXWEuHftUDu2j vpkNY/xpz/t886CpkkYVYO5BglG/uumIXnMrIzjoniUNFAeICIFshyKyEXNSl5vPVIvG 1Y8H8SGlVE3UO1j27ZJSWa9i1k9GbIm9hht+1GSJ1LYbIqKOJDkcS4jXL9+40w89N/k/ Y0aq85DcQAZYvRf1OokAiUuEwjh2nHZSv9Nc0XlFAXvLGmYtm6f+d7DqtwDgyOkqvecz d5aD/5EDTmWmhEQNixNIZE1mc0c7eCRU7MTrh48T4HQNgjrjbDMTp938LTy5GA92/8Bm j4Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=wsgyHyZE+jfFydeBCeq6GdpD8XqGO5uZiHSAewvYEX8=; b=Zg2C8rvd6AzM/W5sW6cgcsg+i3AtpfjJ5/4PDly9Dt/rhg46kHl+rKay5KoaPw6NkJ PEbVmdATIPG2cvROP0f1lftpCOsMFG7kMzwUqeqZLbVwJe2n4hw1d23UlrnrVJ61V9TZ iQM2LK2AqpaSz0+48oqUhcIPpE43j0YfSy9txLpMe46kignTmrQWsQZYvktx+v2/C7iU p1umdmS7/r4I8MIGpIj3d90ftxki9hopWe1wC9S3YxDkvCSmMDlnTz4ftaDMYLMSTZsX ApqF9EmqvVOr+S647/3HgbeVK4x7rer1I5Jqki2862TnQJs9KeLr0EtuLMsF9JUFvFTT BAoQ== X-Gm-Message-State: APjAAAVcDNVZTRdKRiIkIegNfF8zuyO/XHPjXedhzd++ahheOyMVi9nj XKw34JCRxpEqsqkDeDXw3XE= X-Received: by 2002:a7b:cb58:: with SMTP id v24mr5684781wmj.121.1556102316608; Wed, 24 Apr 2019 03:38:36 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id y4sm6204645wrh.20.2019.04.24.03.38.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Apr 2019 03:38:35 -0700 (PDT) Date: Wed, 24 Apr 2019 12:38:33 +0200 From: Ingo Molnar To: Andy Lutomirski Cc: Alexey Dobriyan , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , LKML , X86 ML , Peter Zijlstra , Linus Torvalds , Al Viro Subject: Re: [PATCH] x86_64: uninline TASK_SIZE Message-ID: <20190424103833.GB9642@gmail.com> References: <20190421160600.GA31092@avx2> <20190421182842.GD35603@gmail.com> <8B42CD57-9343-4234-A96D-80337BFFDF0E@zytor.com> <20190421211007.GA30444@avx2> <20190422103449.GA75723@gmail.com> <20190422220948.GB26031@avx2> <20190423111258.GA23410@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Andy Lutomirski wrote: > > Or am I missing some complication? > > Seems like a great idea to me. > > BTW, what the heck is up with get_gate_page()? I'm struggling to > understand what it's even trying to do. If there's an architecture > that allows a user program to mremap() or otherwise position its gate > VMA between TASK_SIZE and TASK_SIZE_MAX, then that code is going to > explode horribly. I believe it was an old attempt from the times when the vsyscall area *didn't* have a vma, at all, and only get_gate_page() kept the mmap allocator from overlapping it with a user vma? Should IMHO be entirely solved by the vma-ification of all things vsyscall and vdso, and we can remove this remnant. > A whole bunch of work in this direction is here: > > https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git/log/?h=x86/fixes > > It's almost entirely untested. Please post it as patches once you are somewhat confident in the outcome and general direction. Thanks, Ingo