From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25285C4363D for ; Thu, 24 Sep 2020 11:55:12 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 908822311B for ; Thu, 24 Sep 2020 11:55:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="KC3r+Mpt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 908822311B Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 05645900023; Thu, 24 Sep 2020 07:55:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 02DB8900017; Thu, 24 Sep 2020 07:55:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EACE7900023; Thu, 24 Sep 2020 07:55:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0110.hostedemail.com [216.40.44.110]) by kanga.kvack.org (Postfix) with ESMTP id D5ED6900017 for ; Thu, 24 Sep 2020 07:55:10 -0400 (EDT) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 9CBE0180AD801 for ; Thu, 24 Sep 2020 11:55:10 +0000 (UTC) X-FDA: 77297799180.17.top18_600a9822715e Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin17.hostedemail.com (Postfix) with ESMTP id 6D97F180D0184 for ; Thu, 24 Sep 2020 11:55:10 +0000 (UTC) X-HE-Tag: top18_600a9822715e X-Filterd-Recvd-Size: 5008 Received: from mail-ot1-f66.google.com (mail-ot1-f66.google.com [209.85.210.66]) by imf16.hostedemail.com (Postfix) with ESMTP for ; Thu, 24 Sep 2020 11:55:09 +0000 (UTC) Received: by mail-ot1-f66.google.com with SMTP id h17so2893863otr.1 for ; Thu, 24 Sep 2020 04:55:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ztRBPPvDaKOY/eanG9V3sp2lDW4LO5Tox/N9KiU+s4o=; b=KC3r+MptjH/RTy/874CBDG3LrIXfP8feQfAP7+/hMMMj/ti8ELR6KiicqyT2j9kmNl c89a6PBl1YAx7bbrDpZyNXZyhdK5ikYEIaSwbEWQmmwElvCPxips6yC+c8Ay6AEsndDf iRbwt9rhwrrTNe1XfSbpjOYKZryKtm7Eneiq7JPsUbPsW5Ivjrik88zf2y+f3ExpS4yS wUqLwJBMbDHQ6TXzOVVHl+Mk7PeHPBIbOKJkI7jIvqmRtAMgVfFXBlc8VA3lPG2w7SQ4 IGJpuwjS4zIt1ijLDM0JeJ26vpi18keWgLQdMOQjUzYH1SlD9SKzLWiUOtBadyDYiMhQ i95g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ztRBPPvDaKOY/eanG9V3sp2lDW4LO5Tox/N9KiU+s4o=; b=BWnyh098+QTaHz8SMEOrMR8cp8RONDFkKlTjzU7N/ViyoKokFJNuzRIGazZsornkbe xmwWwbVIDIsYGxhGbLRBGwqQ0OGxManRgU2x7iboR3w2URHQmZqRL50s1hST+GbmMaFy o0+vZv/qKVbJG/CoGE/p5WMm1DEyDJVKWPLic/KuYmbaRPDzNab8QYHjx2jElzJOOl9B 048vHsSDiWQUmKH8E+zgDxJFDEFmpn0HL0CGiim9NcwTb1icGPCP9+d/N3dJd+Ixpzy5 GcrZykVhdOiq775eglnjmbweHWJtC8o/30SVtzUtbeZSWojidVCJt5reUSdkIWRWPivo R7ow== X-Gm-Message-State: AOAM532hcZ++Mo2Q74ptJZxoyA+VEeSaGv5Cbx7zcXeFpyglnY8Nlun5 MteGya7rg/WYJEpH2J5Q9wdKqKLDwC9QJwc2w1ryzQ== X-Google-Smtp-Source: ABdhPJzEBQ4Ct/h1arzvWDi0y14t62r2NGPwfHNLNhHfWH4WnG/J9sJadnKxxKmmnRROfMojYyJ8YHirAvneUEUwmno= X-Received: by 2002:a9d:758b:: with SMTP id s11mr2619746otk.251.1600948508986; Thu, 24 Sep 2020 04:55:08 -0700 (PDT) MIME-Version: 1.0 References: <20200924040513.31051-1-walter-zh.wu@mediatek.com> In-Reply-To: From: Marco Elver Date: Thu, 24 Sep 2020 13:54:57 +0200 Message-ID: Subject: Re: [PATCH v4 3/6] kasan: print timer and workqueue stack To: Alexander Potapenko Cc: Walter Wu , Andrew Morton , Andrey Ryabinin , Dmitry Vyukov , Andrey Konovalov , Matthias Brugger , kasan-dev , Linux Memory Management List , LKML , Linux ARM , wsd_upstream , linux-mediatek@lists.infradead.org Content-Type: text/plain; charset="UTF-8" X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, 24 Sep 2020 at 13:47, Alexander Potapenko wrote: > > On Thu, Sep 24, 2020 at 6:05 AM Walter Wu wrote: > > > > The aux_stack[2] is reused to record the call_rcu() call stack, > > timer init call stack, and enqueuing work call stacks. So that > > we need to change the auxiliary stack title for common title, > > print them in KASAN report. > > > > Signed-off-by: Walter Wu > > Suggested-by: Marco Elver > > Acked-by: Marco Elver > > Reviewed-by: Dmitry Vyukov > > Reviewed-by: Andrey Konovalov > > Cc: Andrey Ryabinin > > Cc: Alexander Potapenko > > --- > > > > v2: > > - Thanks for Marco suggestion. > > - We modify aux stack title name in KASAN report > > in order to print call_rcu()/timer/workqueue stack. > > > > --- > > mm/kasan/report.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/mm/kasan/report.c b/mm/kasan/report.c > > index 4f49fa6cd1aa..886809d0a8dd 100644 > > --- a/mm/kasan/report.c > > +++ b/mm/kasan/report.c > > @@ -183,12 +183,12 @@ static void describe_object(struct kmem_cache *cache, void *object, > > > > #ifdef CONFIG_KASAN_GENERIC > > if (alloc_info->aux_stack[0]) { > > - pr_err("Last call_rcu():\n"); > > + pr_err("Last potentially related work creation:\n"); > > This doesn't have to be a work creation (expect more callers of > kasan_record_aux_stack() in the future), so maybe change the wording > here to "Last potentially related auxiliary stack"? I suggested "work creation" as it's the most precise for what it is used for now. What other users do you have in mind in future that are not work creation?