Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3526863ybl; Sun, 15 Dec 2019 11:52:28 -0800 (PST) X-Google-Smtp-Source: APXvYqwTxKC2eTn6HtVRRn6apI8vQE5QdlrEnnAR3zIhFEoX/p2DQbgRgwTL905VNGW25eUFerK4 X-Received: by 2002:a9d:6c01:: with SMTP id f1mr26709840otq.133.1576439548332; Sun, 15 Dec 2019 11:52:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576439548; cv=none; d=google.com; s=arc-20160816; b=D6QUntQUOi3tERgu9xZvAmz7niuDg0A+mx9JdYvu/3hooOAGYvTJ4BewpjwYzpdC6R VdMpZXzjGGW8VIaD7qGlQhxiZ77H9bIF44MzzmYSUdPq8qLuoqsvcxZROtWB/2i5olwm l0SWHIV99PXi6Yzz9gyqnDv+Oa8bI9jOBXSWYxxXBm7gO5eTe113Kq2CDnuJ6bi8zMjj iYYyZOofHnRQLXBtQJNHC4rlc6Pfv4WBUazeRrpnqu60Dn7mJYRf9mecxZG5vIgvmig+ WYtJpLkHA3pA4JLhu/4GaTA3EPqMUgKB1gEvoP4AnjSCH9Js02J3QBUesJqhOXK1z84R E7MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=N6ga5Dij19gRlbZuFsvjV48za8B/ozUT+pF6pWHLfdc=; b=cOyG9R3TOvO7n0EUxL4zOhj8SHbDR3O7b99/thcYDd/n6suXX7YZsCVLN36nEE+QXL 51mijUiUqaUvHRqWxK2qNeXkX7HAzw3uz8QZ+Ukw5sOJGBoIBrFGzB7BxqOuz6DAxC/E 1UoJKIBoeujJWjHS2KGFXOXrpQBOHFSFxssJw2Hn89LNNY+xXBrIUoe/CTqrbAoYz7pB E29zyPQwbaEuxaV3m3g0pT46/Ps7ajSshb7RdPb19nBl67Rd0UrsZpi4kc2De5CvJGWX 0xqZ/3s4cusgb0931fNqA/3MegOBI40gm/cqIN5zlu5M6Firwc4+1QIFZTwylho9y462 169A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=EKgmCh3V; 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 w1si9324543otp.57.2019.12.15.11.52.17; Sun, 15 Dec 2019 11:52:28 -0800 (PST) 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=pass header.i=@linux-foundation.org header.s=google header.b=EKgmCh3V; 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 S1726548AbfLOTvH (ORCPT + 99 others); Sun, 15 Dec 2019 14:51:07 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:43441 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726292AbfLOTvG (ORCPT ); Sun, 15 Dec 2019 14:51:06 -0500 Received: by mail-lj1-f195.google.com with SMTP id a13so4361113ljm.10 for ; Sun, 15 Dec 2019 11:51:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=N6ga5Dij19gRlbZuFsvjV48za8B/ozUT+pF6pWHLfdc=; b=EKgmCh3VQlwvNo2cKRez+F2dNTyhNipLcOxSlHHRddG2LPsdMyWZ6gjxZifjjL8Nrg GsrGGw/+RTAmX49CoqvKLZPmgeHNho5AnGcp+OhZDacyAnfwqFDiKiWkMI0W+QLHLAJW 60XKpY2owTpOLSh8k/lLAJHpqBQY1EHpkjfgQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=N6ga5Dij19gRlbZuFsvjV48za8B/ozUT+pF6pWHLfdc=; b=SC0Jxu5XYMM251ZHGjWw2EqRAdc3UpE9AV1QTUwhE6zgBlE0SFYnB21rIXwnP0H0q1 AmcwVM+3d1sNHxjcqv5g5AfXQjEjlAZpPSCIwHgDiLUc2+o9IUpl+bYoTCh6JNmT3yhC vLqvFJIw/cv8qb75BcHfuUQGSUrIcETHEJ20A/SprAKVXACDC4/y4mYtkFU2pTh9XtpR KMqRQoygN7Sw3aPZld7hFeuompc0h01wJi9wp+7Qo2nJ09t8/GbMrPsrYQe4fgIqrZly ADu7h+z4yDdFJnKNSdkae/njujJRPPs6dLeIjMzdRkW1Qy4ah2LMAffeMCZSSTrIJKiw EXgQ== X-Gm-Message-State: APjAAAVjntUip1+t6LUUYgmj8nkOroW305dMGEDnV3TEIh2iabvsmPmq RNpq6udyWPsYi9rTyBgFItnQhGqxy20= X-Received: by 2002:a2e:b4cb:: with SMTP id r11mr16976229ljm.68.1576439464441; Sun, 15 Dec 2019 11:51:04 -0800 (PST) Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com. [209.85.208.179]) by smtp.gmail.com with ESMTPSA id m8sm8952801ljc.16.2019.12.15.11.51.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 15 Dec 2019 11:51:03 -0800 (PST) Received: by mail-lj1-f179.google.com with SMTP id e10so4389174ljj.6 for ; Sun, 15 Dec 2019 11:51:03 -0800 (PST) X-Received: by 2002:a2e:99d0:: with SMTP id l16mr17333620ljj.1.1576439462915; Sun, 15 Dec 2019 11:51:02 -0800 (PST) MIME-Version: 1.0 References: <20191212181422.31033-1-linux@dominikbrodowski.net> In-Reply-To: <20191212181422.31033-1-linux@dominikbrodowski.net> From: Linus Torvalds Date: Sun, 15 Dec 2019 11:50:46 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] remove ksys_mount() and ksys_dup() To: Dominik Brodowski Cc: Alexander Viro , Greg Kroah-Hartman , "Rafael J . Wysocki" , Andrew Morton , Ingo Molnar , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 12, 2019 at 10:14 AM Dominik Brodowski wrote: > > the fifth parameter (void *data) > is either NULL or refers to a full page (only occurence > in init/do_mounts.c::do_mount_root()). We probably should aim for the fifth parameter being a "buf, len" pair at some point. Then the system call interface still needs to copy the whole page and pass in PAGE_SIZE as the length, but it would be a better model than the magical fixed "it's always one page". And the kernel init sequence wouldn't need that silly temporary page any more. Linus