Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3937997imm; Mon, 15 Oct 2018 06:40:16 -0700 (PDT) X-Google-Smtp-Source: ACcGV62FBmTqoLSUEiVWX4bF2qcHWjsmhp9FG3iIAi0i9++1+Yci0ymWS4kNdGoyJsC/Zs6VJKvC X-Received: by 2002:a63:b709:: with SMTP id t9-v6mr15415296pgf.366.1539610816616; Mon, 15 Oct 2018 06:40:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539610816; cv=none; d=google.com; s=arc-20160816; b=gWR7K/17EpFI9H3poXRWyP9psE45Lf4b867oc9kiX1y7gnFlM3KsEJMkE5mjxDUwc5 tgUVnSeZRBZlaJIEZ4/xEeFWtb+mv3ejDMB5xlP+I1Fsa+adrKx27lzyGPH1PWljHEfL Gu7/qYajj4MilUFC3YMr4b+K+gUDbedaYBwaXOKiL7ky51RsroXB2GP9r+5R855mG3yA xJd235oZErXCvxu9TWRBr7DTyItyMvYEh8XWMWTNwgmm6d5cLyPXdVz7jiemSfIgZS1j G7S8osQ/TWROyIElWXjVU0PfO5dtyGb8qKVIjeY0rCUgLP511ONL7nS3l+u8Kq8kC9Go WATg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=M7wY9To7ps25vukRoQr6Doj7o3eJzkeDXMoZvROCioc=; b=TqdprHPI05A3NJw3b6QbNNVazYg/yil2XltQRht7k/P1jgP50zv4+qOBv7MMQ/DqWZ 0rxqrH3pHt6IOk+Fa+Ve/F+HcWi9FamM6QHrc5x/6U9cjM7mAlfhxPkGgDchQvIRnd1Q ps7Z/siryF5ZRnZCtGmcyfynbR7pFbrGQl2pVs7HycQ8VrTjJDXBfHDRBRdH4dcAls0V 9YjmAXfRcQ9/WLNO+jWKUdtIe4Ku/PZ63RwF1leBu/XmRUMxNVVXB5CjaAk60d1hGtPc OgWzOk562RASooOnURufaTrXOCKMcP5OF4yiXIJUgC+GhG66rJrYEiJgVI7Ycej9eGDN B9Ow== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6-v6si9319246pgh.373.2018.10.15.06.40.01; Mon, 15 Oct 2018 06:40:16 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726628AbeJOVXR (ORCPT + 99 others); Mon, 15 Oct 2018 17:23:17 -0400 Received: from emh07.mail.saunalahti.fi ([62.142.5.117]:48478 "EHLO emh07.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726400AbeJOVXR (ORCPT ); Mon, 15 Oct 2018 17:23:17 -0400 Received: from ydin.reaktio.net (reaktio.net [85.76.255.15]) by emh07.mail.saunalahti.fi (Postfix) with ESMTP id 1B2A1B00B2; Mon, 15 Oct 2018 16:37:52 +0300 (EEST) Received: by ydin.reaktio.net (Postfix, from userid 1001) id 03FD736C0F6; Mon, 15 Oct 2018 16:37:52 +0300 (EEST) Date: Mon, 15 Oct 2018 16:37:51 +0300 From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= To: Mikulas Patocka Cc: Dmitry Safonov , linux-kernel@vger.kernel.org, Dmitry Safonov <0x7f454c46@gmail.com>, Daniel Axtens , Dmitry Vyukov , Mark Rutland , Michael Neuling , Nathan March , Peter Hurley , Peter Zijlstra , "Rong, Chen" , Sergey Senozhatsky , Tan Xiaojun , Tetsuo Handa , stable@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby , Jiri Slaby , syzbot+3aa9784721dfb90e984d@syzkaller.appspotmail.com Subject: Re: [PATCHv5 0/7] tty: Hold write ldisc sem in tty_reopen() Message-ID: <20181015133751.GO5318@reaktio.net> References: <20180917235258.5719-1-dima@arista.com> <1537379148.21380.16.camel@arista.com> <1537388512.21380.44.camel@arista.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Sep 20, 2018 at 10:25:01AM -0400, Mikulas Patocka wrote: > > > On Wed, 19 Sep 2018, Dmitry Safonov wrote: > > > On Wed, 2018-09-19 at 16:03 -0400, Mikulas Patocka wrote: > > > > > > On Wed, 19 Sep 2018, Dmitry Safonov wrote: > > > > Thanks much for the testing, Mikulas. > > > > Could you try to bisect which of the patches causes it? > > > > The most important are 1,2,3 - probably, one of them caused it.. > > > > I'll stare a bit into the code. > > > > > > The patch 3 causes it. > > > > > > The hangs during reboot take either 80 seconds, 3 minutes or 3:25. > > > > Thanks much for that again. > > Any chance you have sysrq enabled and could print: locks held in system > > and kernel backtraces for applications? > > Stacktrace doesn't work on parisc. It used to work on 4.18, but the kernel > 4.19 reportedly requires patched binutils. > > Mikulas > > > I suppose, userspace hangs in n_tty_receive_buf_common(), which is > > better of cause than null-ptr dereference, but I believe we can improve > > it by stopping a reader earlier if there is any writer pending. > > > > -- > > Thanks, > > Dmitry > > Any progress here? Or is more info/stacktrace needed about the hang? Thanks, -- Pasi