Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4109145pxa; Mon, 10 Aug 2020 00:25:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx58xmLMyBwowi1H3DugGfJv6S3jT3c4t5KyiI8JnxsnA+z5tWCRIhTp7vqRtkXRNCwxtUP X-Received: by 2002:a17:906:840c:: with SMTP id n12mr19486635ejx.246.1597044333605; Mon, 10 Aug 2020 00:25:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597044333; cv=none; d=google.com; s=arc-20160816; b=CwO5gjWmiNLUgQNOZ+Cv/CnQLAlC27U1ID+d8msYFPM2Ew+NAH9ljjcKvqDls/vr7x lyfJSsqXZguXYXWTdT6Jq7md7Rf0eZ+ugMn0bJ2QwSIXn8XtXSfkjkoo9EqQ6XELTPX7 38QNfM3GiJgwXxWUr2lXRodD5OuWq+xZf2TDHO7eMyvxGEv8p3JokjysXR6KWQEffxRY f0X5C1LCcqHvqXgo8sS87dv+v053WMzXApSbHJelUxiUcHzxtdg+xkpy4zQW1RU6+U3E NoCfR0ksqW1+KShI2vdcNFqD82T8u4NqcjGIWzCd1+zuK2y6rI9c7X3lyXr4cwz/ja4F RifA== 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=PpSc/tEQuCx3Ee+gj4Ko/cEUAbvYmxsK1TcRUj0zqIE=; b=aXWbqqjGyDBg0qkUPVcJJ3NaxEG0UVLJkAjgB5x6xtY6w2VYuoEmmwwAeUyWtmJyVH DF7d9EhB8V2H5/EW4OUq3ESxldSoJNCbaGUzlJsOTSjWgbSERW9bu4K6XIzv+4FskmNn +DEaG4w4G+8meA6duPOpUHqF09EDRxFzhDulwZ7byLrEMIQfmQwYYXfF0esLhVbv0GDT RDzZ5wG4cfCKROvyCtllss4+FHSZjD2JLBs3uC18Xgyrq4QM3rdxMnDCP8DcWS4aK9S9 o8W85ACL8Pwolv3fNzarNCY+KXT3FbmDgTNSWNUzTtqIzZLMtI1j1/FxAvsfjX8CTpQh Hjjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=mUc+I3UY; 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 s20si10370335edx.347.2020.08.10.00.25.10; Mon, 10 Aug 2020 00:25:33 -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=mUc+I3UY; 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 S1726473AbgHJHXW (ORCPT + 99 others); Mon, 10 Aug 2020 03:23:22 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:33911 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726448AbgHJHXU (ORCPT ); Mon, 10 Aug 2020 03:23:20 -0400 X-UUID: a2a2e3ec4d1e4852ae6c1321513c1dbc-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=PpSc/tEQuCx3Ee+gj4Ko/cEUAbvYmxsK1TcRUj0zqIE=; b=mUc+I3UYkH6D5bMqSwM0Z2C483rqHVq6lSsH5OADMnuNFWEb24s6QtIuT7rCeJ8hUKIWjczy1obNaHtGA892W56rwWuDunYSHh8s1suqhZ37d64RoeuqFBThFO1sTDEGfKEBmxQyzEGN12cUqmhGgTFZbtR1/SH6t4IRnZLkDic=; X-UUID: a2a2e3ec4d1e4852ae6c1321513c1dbc-20200810 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1729549305; Mon, 10 Aug 2020 15:23:16 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 10 Aug 2020 15:23:13 +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:23:13 +0800 From: Walter Wu To: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Matthias Brugger , John Stultz , Stephen Boyd , Andrew Morton CC: , , , , wsd_upstream , , Walter Wu , Thomas Gleixner Subject: [PATCH 1/5] timer: kasan: record and print timer stack Date: Mon, 10 Aug 2020 15:23:13 +0800 Message-ID: <20200810072313.529-1-walter-zh.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 98F01DCE42DA20CE4E3012D87E3ABB3D61BAAF8BDBEAA7561BC5D251A16DF3722000:8 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 VGhpcyBwYXRjaCByZWNvcmRzIHRoZSBsYXN0IHR3byB0aW1lciBxdWV1ZWluZyBzdGFja3MgYW5k IHByaW50cw0KdXAgdG8gMiB0aW1lciBzdGFja3MgaW4gS0FTQU4gcmVwb3J0LiBJdC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