Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4109729pxa; Mon, 10 Aug 2020 00:26:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFfzD3pK5iejsn/8bqayZfzztB7IRuMR5pz6BlvBnet0QTyM+D8M5O8NhGnkeU6KCGYk8v X-Received: by 2002:a17:906:496:: with SMTP id f22mr20045817eja.180.1597044410651; Mon, 10 Aug 2020 00:26:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597044410; cv=none; d=google.com; s=arc-20160816; b=Ry+b5h/jvvaMS7Km7Jp2oARYcTy+Elf9YhySln1Fh3Py0dkxK0W6EMAwvxDwy2ARLj fDLnz0RbXv4eREndGhy79XA2cO0ndWMi5ZfmE6hghKSDjUmusP0baQW4qbQW1BJDGMWY yujI1HhxELhF/7Zz3FUQRf7B8RQDAudGXSDBqWIhjICxWVEhKdg5dd6Tpz/JSFR8aT3r /05mzYobLlBrHzVsMHw20T1xhbmoVOrhljRj32/YPzinCMv4h3e+/wWOkwPHW9S0NUhv 8/Ze7UlrHxcyxlcS/CzeKW+6XbUhWXmMakE8ZtvX9taj7o1CoCCE+zsGJ/nw7w5ayERN XwbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=WMW/SN71MKFExQk+QjN4pv2EvhjdGtOmUqiO3skR3Gk=; b=c35Hp7Rk0yUfF/2h9rpkO6RjjKqHdgTwLVopXHkQ02s4ofeUFHBTBGiY/Rj5WQ2+a1 D4UV16HybAhXd6aLJrPE3WdDHYquLZX9gshRC6djPy7cD69enEHe8yQy9WHfzakwnaEg dG0f0o70nSUAphrh/i466Lp0MVraQpktl2gEY3tQz8pkgsDg5u4T264ytuZVFs5E5P67 LoRuZVFhwH9ksDz8PgW39BXUYUx0KuosXnXOsSjN6rdq6JI166u1qyxdwlb2NxT4Ts1r /leM5JGbp6KF/aIoC1KSUBksSnd7k6YC4zUP88fnM1I+MqoaiX1jNDzgCd9RDuDwibmS oOJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=s6qdsFqZ; 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g18si9824605ejb.224.2020.08.10.00.26.27; Mon, 10 Aug 2020 00:26:50 -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=@mediatek.com header.s=dk header.b=s6qdsFqZ; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726474AbgHJHZY (ORCPT + 99 others); Mon, 10 Aug 2020 03:25:24 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:3818 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725869AbgHJHZX (ORCPT ); Mon, 10 Aug 2020 03:25:23 -0400 X-UUID: 941674fcae4649e68bed1d030d86ddc6-20200810 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=WMW/SN71MKFExQk+QjN4pv2EvhjdGtOmUqiO3skR3Gk=; b=s6qdsFqZgfHTw8w12yMlaVZGaejwQaGKrRcgqLaJxDbPse0oFVE3uUgkgQ7Nt1a5bRtcaggQKMIR0ZSGPAqKwiX0/hLQZ/Gws6L57DVKMe2ySYprY7pSmQxmmgaNevoyzX5NUBSFg3U7N6spjtCJVLIycw0XymEtkEUl4pzOaTo=; X-UUID: 941674fcae4649e68bed1d030d86ddc6-20200810 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 2068200356; Mon, 10 Aug 2020 15:25:19 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 10 Aug 2020 15:25:18 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 10 Aug 2020 15:25:15 +0800 From: Walter Wu To: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Matthias Brugger , Andrew Morton , Tejun Heo , Lai Jiangshan CC: , , , , wsd_upstream , , Walter Wu Subject: [PATCH 2/5] workqueue: kasan: record and print workqueue stack Date: Mon, 10 Aug 2020 15:25:15 +0800 Message-ID: <20200810072515.632-1-walter-zh.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhpcyBwYXRjaCByZWNvcmRzIHRoZSBsYXN0IHR3byBlbnF1ZXVlaW5nIHdvcmsgY2FsbCBzdGFj a3Mgb24gd29ya3F1ZXVlDQphbmQgcHJpbnRzIHVwIHRvIDIgd29ya3F1ZXVlIHN0YWNrcyBpbiBL QVNBTiByZXBvcnQuIEl0IGlzIHVzZWZ1bCBmb3INCnByb2dyYW1tZXJzIHRvIHNvbHZlIHVzZS1h Zn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