Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp16831313ybl; Wed, 1 Jan 2020 15:02:27 -0800 (PST) X-Google-Smtp-Source: APXvYqxbqFyOJORHaSs/TTbwu5WdSlJJ6PHqtE4YrMeDpVS/dN3tP6DypElvv+R+T/Ri63pa7Z4L X-Received: by 2002:a05:6830:1141:: with SMTP id x1mr14761843otq.120.1577919747378; Wed, 01 Jan 2020 15:02:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577919747; cv=none; d=google.com; s=arc-20160816; b=SbmvzTZngx2k7YsDue5Lvic0AutdlxhnXlc/H8oDTmbNzm5psuJHJuHwl2OLL6usLO n/nEtJaCEAK9sI7xy8jhWf+v+09cQhG8H8mDqrzFWRFqaz4ciVdBFTYl48akIr95yG8T VubRvZIKnaNQR6XpobbSJMLD8Er6a7tJASVOQQ0PwTX97xp4LsZ/0T+Rs5MnaB+FOa/A OmQmTxHWC9CBK1JV+wVT5bW64f1ARsKcIwbFxv4ZRAPMRZc3i0frcXa5iajRjwY0fFRS C/DO6kSGSdlvNKxRvm3pjhYZJdzJYJy5urek7tmPyYO0ynEaP6Ogg165IcL1ghtSYMyR E39w== 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=JasYi67QqqR/bQFvtusaBY+N2VpDxfNqKz3KIu6InR0=; b=xFZ41RQZ4x1Z/MvDWollw77B4UIweu6nAAgqIGygN95ARCWwM2tnZ9pSR0+T6cmrO7 HszGxK36oMu1iA0cUOg1dufvzAend9hmKOXY8bFKwkH/rJbUibC/ge6w9ArygCAS20GW 0N1HfsEp+wnyr1igWUm3aBgdD71brIyIudS1p1cW0GSe9eMyR1ne43mOz0r1ab7egoTe 6FckQSomHZ77wq8hTm9FTv8QTW6b7VOVUnSQq0qfFKCq0dFfbXgQ1vVromrD5cgj7t4J /XgURDIINLlqk4Hs7rfmaNutrJmBScZUXDu3Ldm7+beva0oL7Wqki1nw74/g87D6lzn2 /mtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=B74IeM9C; 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 w131si25900304oif.240.2020.01.01.15.02.14; Wed, 01 Jan 2020 15:02:27 -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=B74IeM9C; 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 S1727444AbgAAXBc (ORCPT + 99 others); Wed, 1 Jan 2020 18:01:32 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:44852 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727372AbgAAXBb (ORCPT ); Wed, 1 Jan 2020 18:01:31 -0500 Received: by mail-lf1-f66.google.com with SMTP id v201so28813938lfa.11 for ; Wed, 01 Jan 2020 15:01:30 -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=JasYi67QqqR/bQFvtusaBY+N2VpDxfNqKz3KIu6InR0=; b=B74IeM9Cw1Tjn+MVVpL2o37ZTVmNIVOjuTqHwS04fn7jzJys06+of5G7mnpZgZlqfW Sq/wfVjwdSOrq+AIV23ux5f6ckYbqhkngQJ/zMDcjdoWMXBYdQBWQHhht12vZBQ1jZJF vqBFHfhel5F4vNYexMVXQVBNi7FkRSDs4mENU= 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=JasYi67QqqR/bQFvtusaBY+N2VpDxfNqKz3KIu6InR0=; b=cjM2zbUJMUQR2FoSp106CROQ45PGZLoKf95fo3LE7hnpc9fzxe1Fzjcl7OHzdibLu4 RboxsmaQLory6yF6YPF6sYAHRHffOJiWqYEOx5ve4Z838cOSucKc55/k6DCeaE9LJ4MU 8AW79XKHSK/h5aqOUYr49dQvDJY1RtiWMRiDxEgfoAWlPshdHBjRRsNYt98n6xmNfhxa 0YeYJG3Z8TK68vGwQYdfZBt3wjqNhhOTv98EoGVa2FUSm0bhCMq17rxki2cfTDxDhFDa Iv2ouapCjMTzNSr4gwoV/WMLVbXEtG55bX3TK/dAf8GkYSWssqtFkjNilO88wc5B6c8Q E4fw== X-Gm-Message-State: APjAAAUa+vcfYOUsP+Z3M9nz9WrkLB++3ihn+T0NriBg4J4dQtQX5On8 nQ7XD82+/aMFxMjF2IvTQWHrsuAgcc4= X-Received: by 2002:a19:c382:: with SMTP id t124mr44665674lff.124.1577919689446; Wed, 01 Jan 2020 15:01:29 -0800 (PST) Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com. [209.85.167.48]) by smtp.gmail.com with ESMTPSA id m13sm22284051lfo.40.2020.01.01.15.01.28 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Jan 2020 15:01:28 -0800 (PST) Received: by mail-lf1-f48.google.com with SMTP id m30so28843259lfp.8 for ; Wed, 01 Jan 2020 15:01:28 -0800 (PST) X-Received: by 2002:ac2:555c:: with SMTP id l28mr44060584lfk.52.1577919688226; Wed, 01 Jan 2020 15:01:28 -0800 (PST) MIME-Version: 1.0 References: <20191231150226.GA523748@light.dominikbrodowski.net> <20200101003017.GA116793@rani.riverdale.lan> <20200101183243.GB183871@rani.riverdale.lan> <20200101225049.GB438328@rani.riverdale.lan> In-Reply-To: <20200101225049.GB438328@rani.riverdale.lan> From: Linus Torvalds Date: Wed, 1 Jan 2020 15:01:12 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] early init: open /dev/console with O_LARGEFILE To: Arvind Sankar Cc: Dominik Brodowski , Linux Kernel Mailing List , Al Viro , youling 257 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 Wed, Jan 1, 2020 at 2:50 PM Arvind Sankar wrote: > > Shouldn't that only affect init though? The getty's it spawns should be > in their own sessions. They *should* be in their own sessions, and clearly this problem doesn't seem to really affect much anybody else. But I think youling has some limited and/or odd init userspace, and I think it gets confused. So my theory is that because of the file descriptor leak, that "forget the old controlling tty" doesn't happen, and then subsequent tty opens don't do the right thing. Maybe. But it's the only real semantic change I can see in that whole patch. Linus