]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kernel/panic.c: turn off locks debug before releasing console lock
authorVitaly Kuznetsov <vkuznets@redhat.com>
Fri, 20 Nov 2015 23:57:24 +0000 (15:57 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:44:19 +0000 (15:44 -0700)
commit6c0666b1096af6beaf8ffcf90f72b0ed692b6d06
tree5b72d99402ce67d960d0624d28c86924ba87b69e
parent7fd6bb715b86dfffa803263d8f01ea10150c2ff7
kernel/panic.c: turn off locks debug before releasing console lock

Orabug: 23330642

[ Upstream commit 7625b3a0007decf2b135cb47ca67abc78a7b1bc1 ]

Commit 08d78658f393 ("panic: release stale console lock to always get the
logbuf printed out") introduced an unwanted bad unlock balance report when
panic() is called directly and not from OOPS (e.g.  from out_of_memory()).
The difference is that in case of OOPS we disable locks debug in
oops_enter() and on direct panic call nobody does that.

Fixes: 08d78658f393 ("panic: release stale console lock to always get the logbuf printed out")
Reported-by: kernel test robot <ying.huang@linux.intel.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: HATAYAMA Daisuke <d.hatayama@jp.fujitsu.com>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Baoquan He <bhe@redhat.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Xie XiuQi <xiexiuqi@huawei.com>
Cc: Seth Jennings <sjenning@redhat.com>
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Petr Mladek <pmladek@suse.cz>
Cc: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit 0e19e24c3fe0abde8e2c5f4543616a251ccea6bf)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
kernel/panic.c