Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5394027rwl; Mon, 3 Apr 2023 20:08:45 -0700 (PDT) X-Google-Smtp-Source: AKy350bceo7gTqSDQodKJk9RQtZJAqx+dB87ov1AaDyngW1DdSodkO0dITTTRlw4cgLPyP+U2QeR X-Received: by 2002:a17:907:d388:b0:930:fa8e:9597 with SMTP id vh8-20020a170907d38800b00930fa8e9597mr729908ejc.42.1680577725283; Mon, 03 Apr 2023 20:08:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680577725; cv=none; d=google.com; s=arc-20160816; b=bK0qx4TOAJuYDk4y/OWSI8d4WDfsJ6auKZK7hfuIOGsfOSGxBljIr0oYwkY4Ge+tLl 8uJWT5J3kxwsggr7J+T838EC+6oz3wV9em2R+y4Ru4ss5uGcM4LyPaSHounssBG/6AD+ OWBnJV7vfM50kA3IOXcbP/zbQ0lsI5sA42YR0WEGYLtFS6ECjyGMGWWdVGkz+gNZbLMf PzEUsgRHmg0PtsMFUctTOvHbumwpyZ0I/RBKk8qNunswDyzJH5ik/P3BTZv2dZf1lEdO w5H/5Uv0CG6pOWAt4uX8hH8ob0/lu8AU58PlcRl5QFlLb31jvCfLjRmwe/Ql4s3RCKR4 T37w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:from:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=jVV9cxKF8CzU0gUghTh55PDDFH6OAM8gy1Kv/8QwOlg=; b=Ozr8uUDu6mc+wNGCU0quYIZdsV+FHnIBUWuyNpmY1Pf2JswBco9RSe0ByGYO//8ax6 hGo4hMBrcWspVcziyfvryQDPB30wugSmU3uApdktKfiyv4SkiZhGWVaR0o+mJnT4xmN0 jWHoQOkILyJdvBZuejt9kbXGSPQMSsMIapyoExeotVMV87HMdsK2JBm+X60YAlV6u+Xu SQ0CN9uR5Lk+2E6mAUYkTmG8Yp3/jhvNVuwWw4foBB1FBs5Z0ViCtm1eANzQzNGYBKlT 6QAgysS7Bvd8Sc3UeVC30f2YKSaNJhgQjuugWvZxCy97DIA8YVhQD+u1mNLEwRwIVHLB IuPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=fKxyz4Nr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay11-20020a170906d28b00b0093defbd6282si1421016ejb.1033.2023.04.03.20.08.20; Mon, 03 Apr 2023 20:08:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=fKxyz4Nr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232579AbjDDC4B (ORCPT + 99 others); Mon, 3 Apr 2023 22:56:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232934AbjDDCz7 (ORCPT ); Mon, 3 Apr 2023 22:55:59 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC0471FE0; Mon, 3 Apr 2023 19:55:58 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id d13so29171930pjh.0; Mon, 03 Apr 2023 19:55:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680576958; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=jVV9cxKF8CzU0gUghTh55PDDFH6OAM8gy1Kv/8QwOlg=; b=fKxyz4NrEX6JrxqjGGRBECbIfAiBm10rZP7AV+C0+d/iGU7MOApwh0/E3YyoP5xuLT B4kuBX1gYp2fJSkWfjgtqlFqdsagm9WDo0pS1zf54P0Pw44yFI8lgWtsacZMjkGfrZqp AJqB2XjxIzwiwMaJC9nd0tE4lvBp/GAgRa0TDB+FOxi8ybACYJHfICrpkZdOL4LyoLfV 3Rkj3NcZzkuzOa/Vafb5rDMRWsUu3ikV3HYO9v8OdC8ZHf3UzeMoebsm4wlxHwoRCdCd 1GTK0N4hM40yTLHet1+FN1vXAZKJbFpD3Sit+6zHc8Si3muHb91ImcKQqQIeTKZu8d3C 4zMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680576958; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jVV9cxKF8CzU0gUghTh55PDDFH6OAM8gy1Kv/8QwOlg=; b=avspT5jHgbN+ZPKqoeRdWmERfeFUty0Sna1nxm2FAqSNGfQjBKuk0qdx4i3kbBCSqt UPPvh05vf/9qQaOq0jKLrGTxKTHQf37kaRXOSziWPYpvB1Oh8UNcT5kOe/seDeDggagO z2ljJbG/3nOZt/j9BjKboFpnWD/qVlt2jwj7VZMbj8uVi8FTdl6zQhJi/pebQv6NyfmS s63VZK1k47O0O99vycQd9WMx92w7w2Q8c4BW9JAA/ekQUdxoXmjEXr2S2Zn4uiey5BvT xS52OmVehvaPBoWkK7nNLdXvZs2VTs5QsDaG09HFoubB+SziJBEpZZyVwIkGm+xNE/6R fW5A== X-Gm-Message-State: AAQBX9fgxFZEr9sJXLCfCP5Uvn85r9CFIXHN1OTbaNA7WRMUwEh/DHKP Di3xo+gxK6HN5nvjtVbF2Sc= X-Received: by 2002:a05:6a20:1b14:b0:d7:34a1:859a with SMTP id ch20-20020a056a201b1400b000d734a1859amr958170pzb.27.1680576958291; Mon, 03 Apr 2023 19:55:58 -0700 (PDT) Received: from [192.168.43.80] (subs03-180-214-233-87.three.co.id. [180.214.233.87]) by smtp.gmail.com with ESMTPSA id i35-20020a631323000000b00502f017657dsm6514157pgl.83.2023.04.03.19.55.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Apr 2023 19:55:58 -0700 (PDT) Message-ID: <3d994c05-492d-f9f4-161d-123a68d4e87a@gmail.com> Date: Tue, 4 Apr 2023 09:55:53 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH v7] tty: fix hang on tty device with no_room set From: Bagas Sanjaya To: juanfengpy@gmail.com Cc: Hui Li , stable@vger.kernel.org, =?UTF-8?Q?Ilpo_J=c3=a4rvinen?= , Greg Kroah-Hartman , Linux Kernel Mailing List References: <1679019847-1401-1-git-send-email-caelli@tencent.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/4/23 09:49, Bagas Sanjaya wrote: > On Fri, Mar 17, 2023 at 10:24:07AM +0800, juanfengpy@gmail.com wrote: >> We have met a hang on pty device, the reader was blocking >> at epoll on master side, the writer was sleeping at wait_woken >> inside n_tty_write on slave side, and the write buffer on >> tty_port was full, we found that the reader and writer would >> never be woken again and blocked forever. > > Where do you find this hanging pty? Seems like the wording makes me > confused. Maybe you mean "It is possible to hang pty device. In that > case, ..." > Oops, I forgot to Cc: LKML. -- An old man doll... just what I always wanted! - Clara