Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp522436pxk; Wed, 2 Sep 2020 07:55:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2c+tjOe1667o2ktmKYUTlNPkjo/0n6XMojhtJYV5Q7s3OpTpebnHPkoCnvdt8rQL24QZk X-Received: by 2002:a17:906:e0c7:: with SMTP id gl7mr369143ejb.109.1599058548854; Wed, 02 Sep 2020 07:55:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599058548; cv=none; d=google.com; s=arc-20160816; b=RmTAEaxf95/XcC57tEb3iUW4P2wT7KaL5dkHV/319ltNtMFKMz3B4ik7c7/elHVP3A 5lFkTzzxPEN7RI09kyZkp0i1yr7tiJ2dbCQT+OoBGs6cl7j9JWmm3QqqiCZ9WGJdbJ8/ pXhZK97pBDkDsuKt+Wk3fJg10VVpO0TkBiiLHzoTkmBPqwR8kZXvC0y3HD2X6rvKyGT5 ZQNTvmUVCkTeKDwUASTaSDBBrzmGTRfOo8UdbMOA/Y6cI0xwkMfeYEqxPslmxRHEmh56 t5LG+NgcmbBJWQ2VFRkKZH5MoLrc0Ol6EX/lmz2XYWp6mzLXB+9PxD/xo9e1tkfY3RF1 drOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Umk5Ulvu4oLoYIO+HUXZ2g8XNW9wJ6mMmUfCXe6cwzE=; b=jAo8JSOOygr+taiXJ8bYvKYP9yjFz8H7nsO1UBJ6bp3dq96RZzaDcSNygpZFde3KnC 1Jal66qTdDsyGIpAjqLahenqXIklQ1c2nbA50sRLCWae2e1LDvez98miz8za2l2HBppT 9s52vTr7oQouV7n5jhk86f18UsFPuIrfA0Cr1H7KKBeL3AEb83AqxybDPNOxBcwQPXKo Of2GAmAevmQXQEqHmIuYpA17tMLMtnO4LO+zmOnF0cfvey+ICUO5LGQY1hlDrZHkY88M AURy9Z/vnTPX0izFAOahuXRAh4LJAzA6K/9TYGpMFS/QBXa0/EZ/JfkCfz2+ItMR0fB8 7Sew== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=u1QrlX4t; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t19si2816251edt.161.2020.09.02.07.55.25; Wed, 02 Sep 2020 07:55:48 -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=fail header.i=@gmail.com header.s=20161025 header.b=u1QrlX4t; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727835AbgIBOx1 (ORCPT + 99 others); Wed, 2 Sep 2020 10:53:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726678AbgIBOwu (ORCPT ); Wed, 2 Sep 2020 10:52:50 -0400 Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B88B3C061244 for ; Wed, 2 Sep 2020 07:52:50 -0700 (PDT) Received: by mail-qk1-x743.google.com with SMTP id w12so4479461qki.6 for ; Wed, 02 Sep 2020 07:52:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Umk5Ulvu4oLoYIO+HUXZ2g8XNW9wJ6mMmUfCXe6cwzE=; b=u1QrlX4tBu3SeweQyeFvKcbd9BBbzKPHcAtreRTlE33njRMc4xrp/YRss9Ci+1XqX+ 0xWJ6n7UQr5uBOb+HLR1Gi1qqN/3rG4mHZvtQlPi50OjxzIAQ5GVt57+5LQn4Od+lzjl jYGMV86QT9ZunHZEH/BhYUBDXSQblsoWLudOKuTH8j1YF7k27tHzvRVh8Y4hgcDS/6PC +Zk1u8BeT7PHGtED6kcFwnHyMDUoOv9vK31Qca6YjTjUNyAy3yyeOHMxwL4c1B60duVJ qXoKMXatMGF3ZaXHvIDSU0tDAHb6hDyN9jRZhvc6r0HNEm2oANhB8njQAruZnTk08Egb XX1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=Umk5Ulvu4oLoYIO+HUXZ2g8XNW9wJ6mMmUfCXe6cwzE=; b=Rb4Wiq3M7pDsMTO+sw7xzhQe3whAIXaa1REuq7/CzV0CADxhg/JjsOn7RKND6KOOr7 3pNwuE4ZQCSvd1IlFaXoGPixKhYMIeWvDJsea9D/HjKYkQj7YiroEgCMSony+I6Gb4ap oNlkVgiFlC2NEg6cRzP1PigOJ5uM7XRXfpNg+y5glniVrMgZMR8MS86kPYBzG05v/ySk Dbf7xvAJAbLtgPAJi4kmrUKC9uCLRElUQyDGjJ1Lv2zgwqa9NefW6DaWbKvMZ0QxCvYK 7TbJgiizkPpt1q4bpFfrwYFADhfqck6BPiiaeCoBbI70Wso1K0BQ6YJYAd0MCuvG00uE Q98A== X-Gm-Message-State: AOAM531dCHrWQzsdPbR/iilY0Wxov48c4I732kht519CesC8cZswW/p1 eVWzV0ALAW8tLsTWw4BrFf4= X-Received: by 2002:a37:8b01:: with SMTP id n1mr7286182qkd.62.1599058369875; Wed, 02 Sep 2020 07:52:49 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::1:a198]) by smtp.gmail.com with ESMTPSA id r11sm4772987qtt.2.2020.09.02.07.52.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Sep 2020 07:52:49 -0700 (PDT) Date: Wed, 2 Sep 2020 10:52:41 -0400 From: Tejun Heo To: Walter Wu Cc: Marco Elver , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Matthias Brugger , Andrew Morton , Lai Jiangshan , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, wsd_upstream , linux-mediatek@lists.infradead.org Subject: Re: [PATCH v3 2/6] workqueue: kasan: record workqueue stack Message-ID: <20200902145241.GG4230@mtj.thefacebook.com> References: <20200825015833.27900-1-walter-zh.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200825015833.27900-1-walter-zh.wu@mediatek.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 25, 2020 at 09:58:33AM +0800, Walter Wu wrote: > Records the last two enqueuing work call stacks in order to print them > in KASAN report. It is useful for programmers to solve use-after-free > or double-free memory workqueue issue. > > For workqueue it has turned out to be useful to record the enqueuing > work call stacks. Because user can see KASAN report to determine > whether it is root cause. They don't need to enable debugobjects, > but they have a chance to find out the root cause. > > Signed-off-by: Walter Wu > Suggested-by: Marco Elver > Cc: Andrey Ryabinin > Cc: Dmitry Vyukov > Cc: Alexander Potapenko > Cc: Tejun Heo > Cc: Lai Jiangshan Acked-by: Tejun Heo Thanks. -- tejun