From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752013AbdK3JF5 (ORCPT ); Thu, 30 Nov 2017 04:05:57 -0500 Received: from mga05.intel.com ([192.55.52.43]:46171 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751786AbdK3JFy (ORCPT ); Thu, 30 Nov 2017 04:05:54 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,341,1508828400"; d="scan'208";a="7925596" Date: Thu, 30 Nov 2017 17:05:49 +0800 From: Fengguang Wu To: Sergey Senozhatsky Cc: Dmitry Vyukov , LKML , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Ingo Molnar , Aleksey Makarov , Nicolas Pitre , Nikitas Angelinas , LKP , kasan-dev Subject: Re: [ 0.003333] BUG: KASAN: use-after-scope in console_unlock+0x605/0xcc0 Message-ID: <20171130090549.azhcfv3ugbtmts2g@wfg-t540p.sh.intel.com> References: <20171130022655.2e5ehqmf3lyi4jy3@wfg-t540p.sh.intel.com> <20171130064712.GA488@jagdpanzerIV> <20171130082909.GA469@jagdpanzerIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20171130082909.GA469@jagdpanzerIV> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 30, 2017 at 05:29:09PM +0900, Sergey Senozhatsky wrote: >On (11/30/17 09:16), Dmitry Vyukov wrote: >[..] >> > to be honest, this backtrace hardly makes any sense to me. >> > >> > vprintk_emit() >> > reserve_standard_io_resources() >> > __flush_tlb_all() >> > vprintk_emit() >> > __down_trylock_console_sem() >> > wake_up_klogd() >> > console_unlock() >> > >> > I need some help here. >> >> >> You can try dirty patch from here: >> https://groups.google.com/d/msg/kasan-dev/iDb5bhcMBT0/55QzwWaHAwAJ >> It should make KASAN print the exact variable name and frame where it >> was allocated. > >would be good if Fengguang can try this out. I can't reproduce the >problem on my x86 box (linux-next and Linus's trees both work fine >for me with KASAN + lockdep + TRACE_IRQ). OK I'll try Dmitry's patch out. Thanks, Fengguang