From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f199.google.com (mail-qk0-f199.google.com [209.85.220.199]) by kanga.kvack.org (Postfix) with ESMTP id 5BE096B0353 for ; Tue, 20 Dec 2016 16:01:48 -0500 (EST) Received: by mail-qk0-f199.google.com with SMTP id h201so30999115qke.7 for ; Tue, 20 Dec 2016 13:01:48 -0800 (PST) Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id z2si13246428qtz.296.2016.12.20.13.01.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Dec 2016 13:01:47 -0800 (PST) Date: Tue, 20 Dec 2016 15:01:44 -0600 From: Josh Poimboeuf Subject: Re: x86: warning in unwind_get_return_address Message-ID: <20161220210144.u47znzx6qniecuvv@treble> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Andrey Konovalov Cc: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , kasan-dev , linux-mm@kvack.org, LKML , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Kostya Serebryany , syzkaller On Tue, Dec 20, 2016 at 03:43:27PM +0100, Andrey Konovalov wrote: > Hi, > > I've got the following warning while running the syzkaller fuzzer: > > WARNING: unrecognized kernel stack return address ffffffffa0000001 at > ffff88006377fa18 in a.out:4467 > > By adding a BUG() to unwind_get_return_address() I was able to capture > the stack trace (see below). Looks like unwind_get_return_address() > gets called when KASAN tries to unwind the stack to save the stack > trace. > > A reproducer is attached. CONFIG_KASAN=y is most likely needed for it to work. Hi Andrey, I've tried with your reproducer but it didn't recreate. Can you try again with the following patch from the tip tree, instead of your BUG() patch? http://git.kernel.org/cgit/linux/kernel/git/tip/tip.git/patch/?id=8b5e99f02264130782a10ba5c0c759797fb064ee That will dump the stack data, which should give more clues about what went wrong. -- Josh -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org