From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from merlin.infradead.org ([205.233.59.134]:38886 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751027AbeDFPoJ (ORCPT ); Fri, 6 Apr 2018 11:44:09 -0400 Date: Fri, 6 Apr 2018 17:43:43 +0200 From: Peter Zijlstra To: Tetsuo Handa Cc: viro@zeniv.linux.org.uk, osandov@fb.com, dvyukov@google.com, bot+abdba5bc6de135d7622f00756da97998425b6de5@syzkaller.appspotmail.com, axboe@kernel.dk, tom.leiming@gmail.com, hare@suse.de, shli@fb.com, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, mingo@redhat.com, linux-fsdevel@vger.kernel.org, knikanth@suse.de Subject: Re: INFO: task hung in lo_ioctl Message-ID: <20180406154343.GK4082@hirez.programming.kicks-ass.net> References: <94eb2c0810d04f5a46055ffc71aa@google.com> <6012a726-069a-13a5-9c8d-6a11730d8414@I-love.SAKURA.ne.jp> <468f7418-a02d-79cc-3d94-91bbe146567e@I-love.SAKURA.ne.jp> <20180406121411.GJ4082@hirez.programming.kicks-ass.net> <201804062255.HEJ82361.FJOFHVtSLOMOQF@I-love.SAKURA.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201804062255.HEJ82361.FJOFHVtSLOMOQF@I-love.SAKURA.ne.jp> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, Apr 06, 2018 at 10:55:03PM +0900, Tetsuo Handa wrote: > Peter Zijlstra wrote: > > On Fri, Apr 06, 2018 at 09:04:18PM +0900, Tetsuo Handa wrote: > > > + /* Temporary hack for handling lock imbalance. */ > > > + if (__mutex_owner(&lo->lo_ctl_mutex) == current) > > > + mutex_unlock(&lo->lo_ctl_mutex); > > > > ARGGH.. you didn't read the comment we put on that? > > > > Commit 5b52330bbfe63b33 ("audit: fix auditd/kernel connection state tracking") > is using __mutex_owner(). ;-) That got removed and the warning added.