Received: by 10.213.65.68 with SMTP id h4csp506185imn; Fri, 16 Mar 2018 09:49:36 -0700 (PDT) X-Google-Smtp-Source: AG47ELvdS+ondS7mP49bxMJOQjAgQ8xKZMzQ5PcHOyTfeqPI1rwu5SHrniKfaOd5vc1svibPPsSC X-Received: by 10.99.188.2 with SMTP id q2mr2003216pge.101.1521218976055; Fri, 16 Mar 2018 09:49:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521218976; cv=none; d=google.com; s=arc-20160816; b=s7tJhQRGUmbTlrw37ytRKOLq0oRSow7A9CokQmE7/fB6DCkqcD4uB/UkYg7Uq7dDzN 2o6UaJ9fViphl5UdpcF5SVAYJ9zpHVsOvOsAgV2q+Lq8o7SqJlJEN7t3FJWYUI2mJ9VF /xT4dwbRMhHTZ7Xfi3WRHGnXuBh1nnoTEsCSYk2Fc2JlViRjqXxZMaxGapg6T2todt7F mF88ln86NUq098p1/UMZZiTaSEVTkzhBCtnv2rKNa8LvifAKB+YxHYIVz91RPKDJO8Rp i+3U/Kl0f0V6wrGAww5NlwUevdTErGrxIOuzYKD3dzm6q6croAddmBCzu5ecVW/dejyO MGyg== 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 :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=vr448tqGYYk5y2xHntKq3o10/u2daLUbh7xaPNliVSs=; b=cNERFfazAwndX+WtbN7S9YU28LglRFIvDJYapv4R0sCUM66SGde8i/I44e39Fd7Ca4 tycMWTSaGQ9ID0TewcsE8JpUzg7JWOZdEKGG5rIiUYW6GXeZxyzky7jOg++SH+DqVns1 XGZt4zz+DnSiODs0L1s5HTDrRqXjcQDH5HtFR9OZIu8BskZ138ddPubQ5BBNTqEsuKDH 5wXwHk2YkyOB0yblrrdpf6QHidwZfK2Y9R/4gaeRSlOWHOuyvKBLB13An4zkbduzB8Eb Cklsu9Bkeui7JBD6QAZsN2j5fM+TxgEOCXf5tgyyrzk3TEY4Bp7T9djOoRwuQz+Lz89q kGwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=dBIsqBkk; dkim=fail header.i=@linux-foundation.org header.s=google header.b=RaMcZuSJ; 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 f26si2969658pfn.121.2018.03.16.09.49.21; Fri, 16 Mar 2018 09:49:36 -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=dBIsqBkk; dkim=fail header.i=@linux-foundation.org header.s=google header.b=RaMcZuSJ; 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 S1753079AbeCPQrz (ORCPT + 99 others); Fri, 16 Mar 2018 12:47:55 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:40655 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750815AbeCPQrx (ORCPT ); Fri, 16 Mar 2018 12:47:53 -0400 Received: by mail-io0-f195.google.com with SMTP id e79so5127581ioi.7 for ; Fri, 16 Mar 2018 09:47:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=vr448tqGYYk5y2xHntKq3o10/u2daLUbh7xaPNliVSs=; b=dBIsqBkkOT6MxqzlbQ5WAc3Kk0KnX4KZY9yn34dSTtwfRMirKBBmoScLhkgs1dmYDP 1Va2aiyM8NdgYCTE4t2/vBdRiTV3+Nv5gd7v5pbaHQYTS2uXr8egCG7H2CvCVl3sDY9P 61C5Pn4D2Cf2Vjud4cKldQRKTDB+IpeuSSng81nEGYkCus1PIQYtKnpz2wUkS9UISMfs xMgmiHINgiEAl1EmMt4hIYo9kZwvQIAuOMTqGfx/12pAhYTGbh4xO50wG6iVUVvF4v4j N5OD+CFTAhPTBNsXOeHwDZ6UsAUUiclbznsC9fXbO0QHw8acaS4Qd2ZThuzDuqjHcES7 vKxQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=vr448tqGYYk5y2xHntKq3o10/u2daLUbh7xaPNliVSs=; b=RaMcZuSJces4tG1ur+Q6t+43jdYXcO0zju7FHeK3Ipl0AxUlfwL4RQrmfB5nU0lfN1 w9bGyiyvj4/F03ZFvuXSAYdSXKxni7rijFpc2iWVYsnE5XjvQjxHqGzi2H9F67EQAl+S ZtZCr1e+u8Mdv0k00owhpZUwGdO9k0h59Ot4g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=vr448tqGYYk5y2xHntKq3o10/u2daLUbh7xaPNliVSs=; b=qzR5kelFWv8f+qAMbRa69pwEmWFq614D6cip/tw4amIBvaaYBP04bxiRF6iZG4BI+c lXjsQaKf/o6aG0EwKNhiqRJRtbK6SOGtRBt95pGzs2Rl8JZFfmkKfBNoUKR1WL5fDDL7 omZjQRfm1ZhTycKPa4wPhcqHJCC7OZVusCN6vx7YeoD1T+HaeMp5yZqlBqARTWqKGs9V E8Ci4c0jdYUVOX1IO4tJzbSofkIzsoHtEDoXJ79KxM53p6ansyknJKLAPdsXi68B+lee UfnSrONqt+5OFzLY/m8KSukbMqRPdktbEeDCpTHJH+YHrpAwYuQ9zkvhqAdoQ20ufx6H 5WBw== X-Gm-Message-State: AElRT7EfKa0awb9cYSyNNI4/f/aGiNKichShG6hOymkMwSrVCytKhW5l RrKYpy7JT2/r5eQSCfd+LaMiS0PTZSwjV+Yb7Ws= X-Received: by 10.107.10.219 with SMTP id 88mr2696524iok.259.1521218872615; Fri, 16 Mar 2018 09:47:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.135.221 with HTTP; Fri, 16 Mar 2018 09:47:52 -0700 (PDT) In-Reply-To: <20180316142043.GC30522@ZenIV.linux.org.uk> References: <20180315190529.20943-1-linux@dominikbrodowski.net> <20180316085423.GH4151@infradead.org> <20180316142043.GC30522@ZenIV.linux.org.uk> From: Linus Torvalds Date: Fri, 16 Mar 2018 09:47:52 -0700 X-Google-Sender-Auth: jREQBH2Pw2_BZ4OYpGBhX8o_YdE Message-ID: Subject: Re: [PATCH v2 00/36] remove in-kernel syscall invocations (part 1) To: Al Viro Cc: Christoph Hellwig , Andy Lutomirski , Arnd Bergmann , Dominik Brodowski , Linux Kernel Mailing List , Ingo Molnar , Andrew Morton 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 Fri, Mar 16, 2018 at 7:20 AM, Al Viro wrote: > On Fri, Mar 16, 2018 at 01:54:23AM -0700, Christoph Hellwig wrote: >> >> A lot of the issues here is that the initramfs / do_mount code >> is written as if it was user space code, but in kernel space. E.g. >> using file desriptors etc. Yeah, some of it could probably pass a 'struct filp *' around instead. So there are definitely things we could do once we no longer use the raw system calls anyway. > ... and I still wonder if it would make more sense to kick that crap > out into userland. Oh, no, let's not do that. Even if we were to still maintain control of user space, it would mean yet another nasty special case for the compiler and linker scripts and for our initrd generation. And if we were to spin it out entirely (aka udevd and friends), it would become one of those nasty situations where there's some *very* odd code that we need to keep compatibility with because you might run a new kernel and some old "pre-init user code" stuff. I'd much rather just make it look more like kernel code. And maybe remove some code entirely. Christ, we still have the logic in there to change *floppies* if the ramdisk doesn't fit on a single floppy disk. Does it work? Probably not, since presumably it hasn't been used in ages. But it's still there. So some of the ioctl's etc are due to insanely old legacy cases. Linus