Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2297959pxb; Mon, 18 Jan 2021 13:57:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7Iq78l1k+//Fa5a/npsQtGHF8PYxjA8SZQ4GArO1AKw5MfT1LuovuQ165Id9kvCWRh8Fa X-Received: by 2002:a05:6402:268a:: with SMTP id w10mr1070658edd.331.1611007079339; Mon, 18 Jan 2021 13:57:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611007079; cv=none; d=google.com; s=arc-20160816; b=h4VKFXcKQCoVJRe8Ly6y08IuT4bj82ZF17/WCnggumEhCoI4yqU78SzgipynIl+p/z h6XhqwKWelG5DCsW88SqShu8EKw86t7pSTZ/qzyh6ZEeWFlmxDJnXOumBB86TDXGzUWU oF+K9ApTwaFpsTsX2Ku5Ryoqu+uk86f5luR4VXyMHsqjBY5MT1GPHAA+MnrRMIacEvx5 NTHo0J2euwfZ8NEs45i4nDVIJ4MQDyNvWO7Be3Sp344zJbxw1HcHUnqjl+sH+FzslbgI OEJ0kzuvOBirlcKRGjD9pSaYKSLJPSRg8ZZd7yifExa8Hqya16FSPIUhorx5DIMxQ5SC TYPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=eMq+9Ew1U5NanRfurn/yAwtd0Hdhag4NKEz1bCE+wNU=; b=FoDJOrKVg3yeU/KlUq6nGU2s7octFavvFNyMuxDPaNOldshYWOot379kU4zTuoqe7C p7vF16Lg/YAI1xMs1mIR/1Iux1YMv3liBAsP3u6kCLWgyWG3ciVA+pwm1//q3XQiGx+G 73Gf2anKdNmusvmi3vIAHYCYPY1izZhy8YUFv37GhI8XXCZwozaj/YdTeQ+PeI1ZFaEe WOU1ddfp5RNt/CcOwLrNcZaoZFvS4WvKty0QQOhbSlu/zuH0XPMN2B5N4Fw48X1clKvE N7gaie84bJ70a72cGBw2L91Y2Ck1XPI4qVKi4M1UDDX1bY6JMf/cquS7YaMLZrR+m4zc 73NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=WlTPuct2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hb35si7107916ejc.396.2021.01.18.13.57.32; Mon, 18 Jan 2021 13:57:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=WlTPuct2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732787AbhARVzF (ORCPT + 99 others); Mon, 18 Jan 2021 16:55:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727415AbhARVzD (ORCPT ); Mon, 18 Jan 2021 16:55:03 -0500 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AD35C061574 for ; Mon, 18 Jan 2021 13:54:23 -0800 (PST) Received: by mail-io1-xd36.google.com with SMTP id e22so11987846iog.6 for ; Mon, 18 Jan 2021 13:54:23 -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=eMq+9Ew1U5NanRfurn/yAwtd0Hdhag4NKEz1bCE+wNU=; b=WlTPuct2SkAWUWeBGcVtznDDFmTeo+2RrkBNA9I2tk5xIAZwRsXHpxrGAbJR6SZWDP n+HlGUMT7lvZUtO+EPL5vdz8/lbgm66fKGWYS/41mo4Qu8/QelZxmzJEID8XWzqHTq/a 2CvRt5kbzIZNtwoAPbZhMaMul8lAffnsUCM4U= 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=eMq+9Ew1U5NanRfurn/yAwtd0Hdhag4NKEz1bCE+wNU=; b=Vr+9VkulkuksWVAkiWRKWKFqy8A9BQfODRuMQmdkhO6bOdLMRgHwt/Wo0NLlqb3sC7 aiorMDLAQK/LNH1xt1Pgd31y6ucgQugIgyhKhXo2Ml96VioYH1axBjLO2VEAZ6AWkt1P f05GUrpaKaIxgDFsLxN50Wit42LqBiDuvKiWJnwfJCyRM96IXU7/BdNbpMK71HUB5Wvq Q3OH0PqIl9D57Tl5/KVtUNXJV58AKuQu3fvQ74uPdib9vFzgdamtBJm1/n7dGrp7Ou5/ IkbKPr8yniCz11ln/uW5RrkEsYC+JsOIWvAfdo4OrEr9I6oUp0Nbx/EgZjDGFuEXvWvQ vEYg== X-Gm-Message-State: AOAM5303JAhPbQG0+jmutAh8t4GBkH1tDelQlNCsNLrEpMBiPZDv8i0+ CB41jzt+U34Hy+wKD6sEgr3yiIuATp+A6w== X-Received: by 2002:a02:cc54:: with SMTP id i20mr1028812jaq.138.1611006862340; Mon, 18 Jan 2021 13:54:22 -0800 (PST) Received: from mail-io1-f48.google.com (mail-io1-f48.google.com. [209.85.166.48]) by smtp.gmail.com with ESMTPSA id u9sm1724279iog.16.2021.01.18.13.54.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Jan 2021 13:54:21 -0800 (PST) Received: by mail-io1-f48.google.com with SMTP id d81so20529182iof.3 for ; Mon, 18 Jan 2021 13:54:21 -0800 (PST) X-Received: by 2002:a02:856d:: with SMTP id g100mr1082893jai.10.1611006861172; Mon, 18 Jan 2021 13:54:21 -0800 (PST) MIME-Version: 1.0 References: <20210118081615.GA1397@lst.de> In-Reply-To: From: Linus Torvalds Date: Mon, 18 Jan 2021 13:54:05 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Splicing to/from a tty To: Christoph Hellwig Cc: Oliver Giles , Linux Kernel Mailing List , Greg Kroah-Hartman , Al Viro Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 18, 2021 at 1:35 PM Linus Torvalds wrote: > > So here's a slightly updated version of that patch, but apart from > slightly better coverage - even if it's a driver that is disabled > anyway - I'd like to point out that all my previous caveats still > apply. I have now booted that version to see that I didn't make any horribly obvious mistakes. And I must have screwed something up. I can actually use the machine normally (I'm writing this running that kernel), but when I decided to test the actual virtual console (as opposed to the GUI terminal windows that use pty's), I can't even log in. That *may* just be due to the inexcusably lazy and stupid "chunk things up into 32 byte pieces" I did. Most programs shouldn't care, tty's can return partial results anyway, but it's obviously a fairly fundamental and silly change. But it might well be some other conversion bug of mine even if I tried to keep it fairly minimal and straight-forward. So I suggest taking that patch with a lot of salt, and really treating it as a very rough starting point (which was the point of it - trying to actually boot it as-is was more of a "let's see if it survives at all" thing). Linus