Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751874AbdFGRjh (ORCPT ); Wed, 7 Jun 2017 13:39:37 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:44683 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751690AbdFGRjd (ORCPT ); Wed, 7 Jun 2017 13:39:33 -0400 X-IronPort-AV: E=Sophos;i="5.39,311,1493654400"; d="scan'208";a="120696546" From: Bart Van Assche To: "gregkh@linuxfoundation.org" CC: "jslaby@suse.com" , "andreyknvl@google.com" , "kcc@google.com" , "linux-kernel@vger.kernel.org" , "dvyukov@google.com" , "syzkaller@googlegroups.com" Subject: Re: tty: possible deadlock in tty_buffer_flush Thread-Topic: tty: possible deadlock in tty_buffer_flush Thread-Index: AQHS3yZhUiLiXMyGw0Gdw6gjVCiSOaIYj34AgACIWACAAJPjAA== Date: Wed, 7 Jun 2017 17:39:30 +0000 Message-ID: <1496857168.2779.0.camel@sandisk.com> References: <1496796130.2692.26.camel@sandisk.com> <20170607085010.GB13755@kroah.com> In-Reply-To: <20170607085010.GB13755@kroah.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: linuxfoundation.org; dkim=none (message not signed) header.d=none;linuxfoundation.org; dmarc=none action=none header.from=sandisk.com; x-originating-ip: [63.163.107.100] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CY1PR0401MB1536;7:QwzR1++eJMS8TJzzKtAUkmdlIewDPAH3CjwATUH4O9m0TlN/xrx+0imA2QYJILDkRTweugCZOj27VaBktRUQSSVsHNYQqXiddGMnpD3eYTVGRB+oD2LJ2n34sZDKZrdds6Kc1t9GFowS8heXzrAVqItv1QCpmS6kpy8rS7H3YuhHxFQF+Zi7A3BMCwj3wvk9SKE5mJv/mVo9Ozimvotd6s1+RQ7naZC7d/Lmy0Z4kvSj2usMXMXvQtp5K4pVD+ESJM+bDi+vzYvIiVkp1OEtDyFnB9NQehjm6PHBvsIf5McQnysmsRons5ZoycVR2EPSpabGCOpGPChgYBB2deDGXg==;20:RRNzyrjmcHEqReVt5Azcqr8aj9sDds9FUK2iC6seKREmNIbORJBQvQB2dD8gP2AbkRKlR9TJwl5bIAQAUhRs2mH2v1P0wyYMzCSy2aZpZJbfdaghMzZY56WXbRnSSX6/AORMaAOhST7k6D+MpPOi8FndfEFgM3PKuOva2GqbIKc= x-ms-traffictypediagnostic: CY1PR0401MB1536: x-ms-office365-filtering-correlation-id: c8da89e9-1590-4150-1bc4-08d4adcc2750 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081)(201702281549075);SRVR:CY1PR0401MB1536; wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041248)(20161123555025)(20161123564025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY1PR0401MB1536;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY1PR0401MB1536; x-forefront-prvs: 03319F6FEF x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39410400002)(39400400002)(39450400003)(39860400002)(39850400002)(377424004)(24454002)(86362001)(66066001)(6436002)(6486002)(2351001)(77096006)(229853002)(4326008)(25786009)(6506006)(103116003)(2501003)(2900100001)(72206003)(50986999)(33646002)(189998001)(122556002)(36756003)(3280700002)(478600001)(54356999)(76176999)(5660300001)(6116002)(2906002)(3660700001)(102836003)(6246003)(110136004)(3846002)(14454004)(8936002)(305945005)(81166006)(2950100002)(1730700003)(5640700003)(53936002)(54906002)(6512007)(7736002)(38730400002)(6916009)(99286003);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR0401MB1536;H:CY1PR0401MB1536.namprd04.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-ID: <9C6A6E232EF9B647B6AD18F0DB31D6A2@namprd04.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jun 2017 17:39:30.9015 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0401MB1536 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v57HdkvB017486 Content-Length: 1197 Lines: 33 On Wed, 2017-06-07 at 10:50 +0200, gregkh@linuxfoundation.org wrote: > On Wed, Jun 07, 2017 at 12:42:12AM +0000, Bart Van Assche wrote: > > On Mon, 2017-05-29 at 17:19 +0200, Andrey Konovalov wrote: > > > I've got the following error report while fuzzing the kernel with syzkaller. > > > > > > On commit 5ed02dbb497422bf225783f46e6eadd237d23d6b (4.12-rc3). > > > > > > ====================================================== > > > WARNING: possible circular locking dependency detected > > > 4.12.0-rc3+ #369 Not tainted > > > ------------------------------------------------------ > > > kworker/u9:1/31 is trying to acquire lock: > > > (&buf->lock){+.+...}, at: [] > > > tty_buffer_flush+0xbb/0x3b0 drivers/tty/tty_buffer.c:221 > > > > > > but task is already holding lock: > > > (&o_tty->termios_rwsem/1){++++..}, at: [] > > > isig+0xa1/0x4d0 drivers/tty/n_tty.c:1100 > > > > > > which lock already depends on the new lock. > > > > Hello Andrey, > > > > I also see this warning but during regular boot (without running syzkaller). > > Do you perhaps have the time to bisect this? > > Should be fixed in 4.12-rc4, right? That's right. Thanks! Bart.