Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp249059pxk; Thu, 24 Sep 2020 04:56:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySu3I2rbqBJss2D4bOaygUuI2L0zexbvCQVRHux5BGzI16ig5+CrCzmYM2eiPN5huumU/1 X-Received: by 2002:a05:6402:6d3:: with SMTP id n19mr564781edy.381.1600948591640; Thu, 24 Sep 2020 04:56:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600948591; cv=none; d=google.com; s=arc-20160816; b=W+6T4dLg4+YmU081i1OCq75EPNyR6ocDhy2wG75fwAGraSOrmiBFtYx2T+paW1ONt5 If+qLRERpRWqpY6QzYHjQfpNLBWi43MU/604ibTo/UhkrijkYZE7VslJsoqS3XDYpByv k5z5z3jMdH0xdEgd+2Yg7MDWftV5Bk2oHJs8RWNxs+pZ2B71RYcaM/MGn+EL42GLImdH W9BXkN6gxgzuaArrhbZMfyL9sGzeufRAcCabNu8BlBOCMPWdTIx+/S02akuRQx+qC1W3 eFeSHJLfv8aepBpA6Ks6RoDuqW42ZIbxGUPsBDkWgteZAm5pWV6knPPgffGdmdkdBdMk k2hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ztRBPPvDaKOY/eanG9V3sp2lDW4LO5Tox/N9KiU+s4o=; b=q8RNIrVnZVgvi4keNF8BRxedazQ3W+sg2o1U63p0t6FLYkDV0phSKQh3s7tTTGvuw0 /teDrm3m6jV2TDmqYXFpCqYx7ckFYEmYi86o0rhe+6O4kAr6GqDY/bITchbZvb/FRBbT /8ks4q2WtqIL4c27kBiHzlQanpoOfW6lC5zlL0nKtHHhuMRGe+fYGEwmtztBI3bR0/IF ZJOaNnGUlUEcEPkf9kmcBTK9gV5OHuY14eqOWJ04r0lKeKJupolgUFw+Tg+4JZljXRdP kk1GAc+xEm5HEjXvkHltVK/zt7gt1OKDqLnfjQu5QOcx4cjow79GmMcF3jwtvxNMqcmm RHNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KC3r+Mpt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o22si2368642edr.356.2020.09.24.04.56.08; Thu, 24 Sep 2020 04:56:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KC3r+Mpt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727518AbgIXLzK (ORCPT + 99 others); Thu, 24 Sep 2020 07:55:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727471AbgIXLzK (ORCPT ); Thu, 24 Sep 2020 07:55:10 -0400 Received: from mail-ot1-x343.google.com (mail-ot1-x343.google.com [IPv6:2607:f8b0:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AC55C0613CE for ; Thu, 24 Sep 2020 04:55:10 -0700 (PDT) Received: by mail-ot1-x343.google.com with SMTP id 95so2809745ota.13 for ; Thu, 24 Sep 2020 04:55:10 -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=Ku5zsGQrunRF3HGcKT/uXHyiK66K1OxcLot3dqQr9W6l2WsNwQY2Bv5XD5Yrdzmk6T EpD2iVNX0tA8S0pndpnDKoU2wh0Y4zsZ4+XejO5CX1REECsL66twHqa3T90qv+aC/2OY vYIeYpMeHEhV6iPhOkjnj8gFfK1UNfnqO6nkgfi9rQxIuPXvIRh2unvwiCb/XAIRcYBE Kkew/jUpjzYX99gD05Sznen4KSaSXP9PJenNta8TddyQh2cIsXfml5izUa+x+A3YKM+9 pCFkXqS78rhp4UDYq7nqUdmPBCCZMBAPAV/NWls/N/yY2sDItE8lEMQEXpDdySCYuncP Civg== X-Gm-Message-State: AOAM5311GLJHaDlIDYrGcFbXt6mOQny2KcIynv49Q9do2m6me2cTKSaA xLvMnrtPH5BGwFP/32ukD47ynaTEtDvUfpde3q1FZQ== 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" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?