From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752574AbbJENP2 (ORCPT ); Mon, 5 Oct 2015 09:15:28 -0400 Received: from mail.skyhub.de ([78.46.96.112]:54475 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751251AbbJENP1 (ORCPT ); Mon, 5 Oct 2015 09:15:27 -0400 Date: Mon, 5 Oct 2015 15:15:59 +0200 From: Borislav Petkov To: Andrey Ryabinin Cc: Dmitry Vyukov , Ingo Molnar , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "x86@kernel.org" , LKML , Andy Lutomirski , Andrey Konovalov , Kostya Serebryany , Alexander Potapenko , kasan-dev , Denys Vlasenko , Andi Kleen , Sasha Levin , Wolfram Gloger , Linus Torvalds , Andrew Morton Subject: Re: [PATCH] x86/process: Silence KASAN warnings in get_wchan() Message-ID: <20151005131559.GB26329@nazgul.tnic> References: <1444040906-6788-1-git-send-email-aryabinin@virtuozzo.com> <20151005112341.GA1101@gmail.com> <56126316.3030901@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <56126316.3030901@virtuozzo.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 05, 2015 at 02:46:30PM +0300, Andrey Ryabinin wrote: > It's absolutely unusable:( https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67368 > If we add it here, it won't built because of: '__always_inline __read_once_size()' > > But, I think I have the solution. > We could have some blacklist - list of function names which we should be ignored. > In kasan_report() we could resolve return address to function name and compare it with name in list. > If name in list -> ignore report. Sounds better. :) -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. --