Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1829742pxb; Fri, 5 Mar 2021 00:13:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJyyrfKfSkVQSS4vpPX3UL2xa2AxqWcKuwx706o8GxKZfAgM09m8y8hZ1Ylhj3kBPm/qxZF1 X-Received: by 2002:a17:906:b0d8:: with SMTP id bk24mr1304306ejb.252.1614932007358; Fri, 05 Mar 2021 00:13:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614932007; cv=none; d=google.com; s=arc-20160816; b=vUv98fXtqGa6MreSUAgpH05zQee61ChTeSdqrVcNbTNEhHy29wMzBdEbbUO/M1p49K RhhNXWMaFtc9tgsjyn8+X3ijl6eGXSQt4TyZIWXK+ztr9LgdBzdL1meic4Df72ffbGCE 10brDbD8NntNlMIu63uMSVm5gs25aLO1fu6rUEX5LY0Pv0urs12uLzlLA3JsuXMuCdMj /l6CFGipZf6psFhQUZ+rOdb8T79mel0FWtYdy9YBCkSwwzvfYeLypjIrumA3Q/q2JVyJ 2ePViQl2nzBxdsJCuenIMCF1EntUe/RVhwneAEpypAY7+DnOfr4POilY0pGf54QikwXa h3dg== 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=xq99tDzcqNpM0H+7DSkqy3t+3i4Sz74IC+jmKCdPino=; b=pSvbi4bhyFs6933+fHPcA5E04jkvCUFlU7UDRN8aMH2oXQDk3PccTpr/iZvqKtsd3Q JKQDj3E+8gpXeKmzUnajff7P0TY5yJarh7DkJlEWHaiLXVsTw2qTrAldN9YXxQWI9U+j VoO1vT5wb47TvYTc/vR4xBpFRsl+V/S7BtN7PCzFQx1wQmac43YG/yPtqQ6QmtBB/UIz U2F3L8o+3wPIEvi2AnG17esaGa4cHjjFo2GkLteIcVJPhMjFn+WMOPvt0Z94u2ihLEP9 RqE59kbmUswOTAzZ2WLiMiVh/TgxFWTWVgpcJQTx8/PJAtriHsqSkNKD6I+tJHPf2lVJ M6FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FWUNMGho; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v10si999880ejq.299.2021.03.05.00.13.03; Fri, 05 Mar 2021 00:13:27 -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=@linaro.org header.s=google header.b=FWUNMGho; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229706AbhCEIJ7 (ORCPT + 99 others); Fri, 5 Mar 2021 03:09:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbhCEIJ7 (ORCPT ); Fri, 5 Mar 2021 03:09:59 -0500 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2F0AC061756 for ; Fri, 5 Mar 2021 00:09:58 -0800 (PST) Received: by mail-ed1-x52d.google.com with SMTP id m9so1337452edd.5 for ; Fri, 05 Mar 2021 00:09:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xq99tDzcqNpM0H+7DSkqy3t+3i4Sz74IC+jmKCdPino=; b=FWUNMGhoTcncJLepBpDgRHBHU5MUs+4/99vf449zMSL5Z4hz4YHvmZHCGA1SjYImph SQPojSicFhfuft2M63p0efDkFx0z00iSC/E9fTGfepJNm/yLL4I9Pj38C4b1awA4Ea9C o3j6TkacjOHVplRmb//yFG9BsVwDm5qbHd/aWdvG37KiNypEnI3IKBbOegMqMzK4nYay 6RuwdHQ9/D3aENfBFI6cIAWeCbqGEZRaE+p+F1FM1m/S5vJ7rsY3PeCwqcZT3nBz4iU4 D78zugPICToh6xy2jzcEHORw/Iv5PjNWN4R4iNFsv58dgKBbY6BTaFShx6OlSflrW3NT a+OA== 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=xq99tDzcqNpM0H+7DSkqy3t+3i4Sz74IC+jmKCdPino=; b=jJM53DyurcI6ES6OTkLHJTTQYbXUmLuZTryJvGxmEToumHJaxNzZuDhBsaKYfVf9at FY/vAyuAe/giHgkSbGLupChqNi1yW2pVEBvHUNYBtkCLGWbGhd8fAUnBXDq1uiGdCvw1 dSJXm0ThCEFx35SFQAKIUkZu+anHB5WppZz6cFHoIyWFEQCL1WCPt8kPwLLbEi697eSa BZS2y8eV0T7k3Z2pPJOVtevSPg2B1S0jzOxfwxZXCrxMKwz1on7PNxsp4qCTk33SzNCA ZbVHOsnpOVg9kuuMPfTLIfbEhNYy8QfVVR+0dK1+GUDwv3zM9T3+Lp2ghVom2vlyzDEe MLwA== X-Gm-Message-State: AOAM530b3xlODpVPC2PNVLfDQgEoZMKzzf02G+iQkU+rCBKaoVYXBe1U +G3o7Sn7uJHG2yryEnoI9kB0N9NyH2kUEO7V7jwymg== X-Received: by 2002:a05:6402:13ce:: with SMTP id a14mr8126670edx.365.1614931797483; Fri, 05 Mar 2021 00:09:57 -0800 (PST) MIME-Version: 1.0 References: <20210302192700.399054668@linuxfoundation.org> <175fac9c-ac3f-bd82-9e5d-2c2970cfc519@roeck-us.net> In-Reply-To: From: Naresh Kamboju Date: Fri, 5 Mar 2021 13:39:46 +0530 Message-ID: Subject: Re: [PATCH 5.10 000/657] 5.10.20-rc4 review To: Linus Torvalds Cc: Guenter Roeck , Greg Kroah-Hartman , open list , Shuah Khan , Florian Fainelli , patches@kernelci.org, lkft-triage@lists.linaro.org, Jon Hunter , linux-stable , Pavel Machek , Andrew Morton Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 5 Mar 2021 at 02:45, Linus Torvalds wrote: > > On Thu, Mar 4, 2021 at 9:56 AM Naresh Kamboju wrote: > > > > On Thu, 4 Mar 2021 at 01:34, Guenter Roeck wrote: > > > > > > Upstream has: > > > > > > e71a8d5cf4b4 tty: fix up iterate_tty_read() EOVERFLOW handling > > > ddc5fda74561 tty: fix up hung_up_tty_read() conversion > > > > I have applied these two patches and the reported problem did not solve. > > Hmm. Upstream has: > > * 3342ff2698e9 ("tty: protect tty_write from odd low-level tty disciplines") > * a9cbbb80e3e7 ("tty: avoid using vfs_iocb_iter_write() for > redirected console writes") > * 17749851eb9c ("tty: fix up hung_up_tty_write() conversion") > G e71a8d5cf4b4 ("tty: fix up iterate_tty_read() EOVERFLOW handling") > G ddc5fda74561 ("tty: fix up hung_up_tty_read() conversion") > * c7135bbe5af2 ("tty: fix up hung_up_tty_write() conversion") > d7fe75cbc23c ("tty: teach the n_tty ICANON case about the new > "cookie continuations" too") > 15ea8ae8e03f ("tty: teach n_tty line discipline about the new > "cookie continuations"") > 64a69892afad ("tty: clean up legacy leftovers from n_tty line discipline") > * 9bb48c82aced ("tty: implement write_iter") > * dd78b0c483e3 ("tty: implement read_iter") > * 3b830a9c34d5 ("tty: convert tty_ldisc_ops 'read()' function to take > a kernel pointer") > > Where those ones marked with '*' seem to be in v5.10.y, and the one > prefixed with 'G' are the ones Guenter mentioned. > > (We seem to have the "tty: fix up hung_up_tty_write() conversion" > commit twice. I'm not sure how that happened, but whatever). > > But that still leaves three commits that don't seem to be in 5.10.y: > > d7fe75cbc23c ("tty: teach the n_tty ICANON case about the new > "cookie continuations" too") > 15ea8ae8e03f ("tty: teach n_tty line discipline about the new > "cookie continuations"") > 64a69892afad ("tty: clean up legacy leftovers from n_tty line discipline") > > and they might fix what are otherwise short reads. Which is allowed by > POSIX, afaik, but .. > > Do those three commits fix your test-case? Yes. As per your suggestion I've added these three patches and tested and the reported test case PASS now [1]. This means I have five extra patches on top of the stable v5.10.20 tag. $ git log --oneline 8c1c1de499af tty: teach the n_tty ICANON case about the new "cookie continuations" too 02aada164879 tty: teach n_tty line discipline about the new "cookie continuations" fb0df6b17897 tty: clean up legacy leftovers from n_tty line discipline 429f7fc84d6a tty: fix up iterate_tty_read() EOVERFLOW handling d0d54bca80a8 tty: fix up hung_up_tty_read() conversion 83be32b6c9e5 (tag: v5.10.20, origin/linux-5.10.y) Linux 5.10.20 [1] https://lkft.validation.linaro.org/scheduler/job/2344990#L1207 - Naresh