Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1019649imm; Wed, 19 Sep 2018 10:35:45 -0700 (PDT) X-Google-Smtp-Source: ANB0VdawFOxV5nFHlHt6kaucL66DCmscDbpUQU6jOR0CwDa/S0AJ39Gk406hey5YD96mz3vrwchv X-Received: by 2002:a17:902:b08f:: with SMTP id p15-v6mr8234392plr.296.1537378545208; Wed, 19 Sep 2018 10:35:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537378545; cv=none; d=google.com; s=arc-20160816; b=YzMx7s3jm+KDsn/6Bw0nrUL5HFZe4zUqxny6czK3IG8/vtezbK4mRmQtfqanGGn7SW 9igpUdparWIRqn2pkxhmwP6Qao9agX/8nmunIYYFJKe9sLgTGfV9ui++pvtGMDsX2YH2 DBbRVAYlhRwIO7JL3kCSSRXtD/xAUx0OW1z1bSlJVhcfur1PgKfI1VB16DzHN1G/EFUk KDdCHXxyrA42vJp1xLSW+GjkZeggUBOkL4eXvHnkCSg7MU0kLbjOB+AxXiR0nQGM3nzl Lw5B6mg0eAP3PhH2/VaKpqqmp/LkJS+CQH7s5s9qgAIcxwq1uCa1Nj4onNZun6oUhIdP UOow== 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=jiFkP+3puVWD+xVWDewy/aIJtTTRUeSM0Doyf6nHC18=; b=v0X/rPXCCyKC/MRi8rm4c1AVNh9dNlLkgYlmAK0+HXLKU5HdBtB/CZ3pVzviYHYfI1 msXVsUoZyK/7YsCPrVil3sk0pNfwWeXeaAMqCNTCLao2X6/o+ljyuXKPmBE+zoFqgDG6 xFLeoy01kKgeMRphD8JCfi7coouO0vH/Yl5ut7Cj9I+Qwv5sTNgFRMnpSA5BCLdQRotW N2pXrTqLi3sZySSZ8H8UOTA2+6vi7UCL6ybRpg1jVKvCXvqvfYb1cWXWRCjvGRJp0g+t 0GKNrJbTjI3Ga0er7dalPEyP3+F+xl5SuxKwJ8vY47lhKX7Ym9/Xt6u8RFZ/K5qxHo/U 3dhg== 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 s12-v6si22482424pgi.514.2018.09.19.10.35.28; Wed, 19 Sep 2018 10:35:45 -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 S1732840AbeISXOR (ORCPT + 99 others); Wed, 19 Sep 2018 19:14:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53550 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731569AbeISXOR (ORCPT ); Wed, 19 Sep 2018 19:14:17 -0400 Received: from smtp.corp.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 969E83084033; Wed, 19 Sep 2018 17:35:19 +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 05F1030912F5; Wed, 19 Sep 2018 17:35:18 +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 w8JHZIBp020091; Wed, 19 Sep 2018 13:35:18 -0400 Received: from localhost (mpatocka@localhost) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4/Submit) with ESMTP id w8JHZGah020082; Wed, 19 Sep 2018 13:35:16 -0400 X-Authentication-Warning: file01.intranet.prod.int.rdu2.redhat.com: mpatocka owned process doing -bs Date: Wed, 19 Sep 2018 13:35:16 -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 , Tetsuo Handa , syzbot+3aa9784721dfb90e984d@syzkaller.appspotmail.com Subject: Re: [PATCHv5 0/7] tty: Hold write ldisc sem in tty_reopen() In-Reply-To: Message-ID: References: <20180917235258.5719-1-dima@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.84 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Wed, 19 Sep 2018 17:35:20 +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, Mikulas Patocka wrote: > > > On Tue, 18 Sep 2018, Dmitry Safonov wrote: > > > Hi all, > > > > Three fixes that worth to have in the @stable, as they were hit by > > different people, including Arista on v4.9 stable. > > > > And for linux-next - adding lockdep asserts for line discipline changing > > code, verifying that write ldisc sem will be held forthwith. > > > > The last patch is an optional and probably, timeout can be dropped for > > read_lock(). I'll do it if everyone agrees. > > (Or as per discussion with Peter in v3, just convert ldisc to > > a regular rwsem). > > > > Thanks, > > Dima > > I confirm that this patch series fixes the crash for me. > > Tested-by: Mikulas Patocka I was too quick to acknowledge this patchset. It doesn't work. This patchset fixes the crash, but it introduces another bug - when I type 'reboot' on the console, it prints 'INIT: Switching to runlevel: 6' and then it gets stuck for 80 seconds before proceeding with the reboot. When I revert this patchset 'reboot' reboots the machine without any delay. This bug was reproduced on Debian 5 userspace on pa-risc. Mikulas