Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2075467imm; Thu, 20 Sep 2018 07:25:51 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda9uQl3F9ANFd5bdhtQGOQKA2F039RA5UI6dKOMjxGvV66ejWW7BkcXyeljybCRaakBYi/I X-Received: by 2002:a62:3001:: with SMTP id w1-v6mr41509084pfw.19.1537453551083; Thu, 20 Sep 2018 07:25:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537453551; cv=none; d=google.com; s=arc-20160816; b=ztDlRjXw/fZzfT/yvpkC6n9IQebhTrjGtkj76bkvW5oXOYV+5dftVdzW8qJ8eny/Di W/WsA35W007iILC+9F9PGvgoS78yQRFOmZ4ezMjybl8zeXkjmk3O08pK5/QDOBP/CMBs 206OPLsROEmZMRlwR0v9NnblBg9pNiwAx1/sfdhIJTCTUr1A4lxm+8Lfhz65waLwXR8s yOiza6e7yAttCVNx2j/iIEhxGp+oi9qGQYesopk+HONPvoAu8Lng/cX5fa1WErkXpvU3 TkjB7UpsSfvDT15Njr6BXMDF2octYryjz7L/ttYa1Moi47OhlWS/6R22hTWmaUQT+C5D +2FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=tCvK9TP4tpb1jew070Vzy4jXp+IsXfACl0n9Tmwcx0M=; b=FFnTLot6YW54Mng1AQKMR5y/7YYKVL1e8Dr3ntQT6BuliJPrQsRi69OGHzHlB2uFif 74MoSZZdKi3ymxwHk281NUPwrBbfzFMFakDiCzQ10RiIKB4WMCWK5LV/TmjetFmqK9E5 +TaS6lr+0pn9UDNrk1tZlbfHH/cpZnTe4c8AHWrdsi9x5MXVRqyXlFQcx5vhWb3hP35i AbDl8SULf2X3Abe+SN7019+kDH6opsW9X00pb9ttTCmJmHXbgXrhF+ScbYe6DPMIzm2H 5lNxij1gdKWW9uF+vYfcC0Q2dG8Y5wc5EU9gxPFVGopUEXGT6hO/79IGdKX1/nKAYnPf cRGg== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o33-v6si24719246pld.180.2018.09.20.07.25.35; Thu, 20 Sep 2018 07:25:51 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732774AbeITUIu (ORCPT + 99 others); Thu, 20 Sep 2018 16:08:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35028 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731135AbeITUIu (ORCPT ); Thu, 20 Sep 2018 16:08:50 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5A23D308FF2F; Thu, 20 Sep 2018 14:25:06 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (file01.intranet.prod.int.rdu2.redhat.com [10.11.5.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 68BA7600C8; Thu, 20 Sep 2018 14:25:05 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (localhost [127.0.0.1]) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4) with ESMTP id w8KEP4BU021815; Thu, 20 Sep 2018 10:25:04 -0400 Received: from localhost (mpatocka@localhost) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4/Submit) with ESMTP id w8KEP1jR021811; Thu, 20 Sep 2018 10:25:02 -0400 X-Authentication-Warning: file01.intranet.prod.int.rdu2.redhat.com: mpatocka owned process doing -bs Date: Thu, 20 Sep 2018 10:25:01 -0400 (EDT) From: Mikulas Patocka X-X-Sender: mpatocka@file01.intranet.prod.int.rdu2.redhat.com To: Dmitry Safonov cc: linux-kernel@vger.kernel.org, Dmitry Safonov <0x7f454c46@gmail.com>, Daniel Axtens , Dmitry Vyukov , Mark Rutland , Michael Neuling , Nathan March , =?ISO-8859-15?Q?Pasi_K=E4rkk=E4inen?= , 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() In-Reply-To: <1537388512.21380.44.camel@arista.com> Message-ID: References: <20180917235258.5719-1-dima@arista.com> <1537379148.21380.16.camel@arista.com> <1537388512.21380.44.camel@arista.com> User-Agent: Alpine 2.02 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Thu, 20 Sep 2018 14:25:06 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 >