Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp519150ybk; Wed, 20 May 2020 05:38:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxyImZBTlCKTdF5gLG2DEcEh3nhfn8Xw6JnpueBmg922VoM5m5oNCV8xw8POAByRlZsPnY X-Received: by 2002:a17:906:add7:: with SMTP id lb23mr3481697ejb.6.1589978308454; Wed, 20 May 2020 05:38:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589978308; cv=none; d=google.com; s=arc-20160816; b=e6fGqE0Nklk5uxlud11omwbrK9Q1p8oLW1Hz8cQHK6/c5/blrkZwRUJ/qY9xLWa6zS 1pXBuNB5xvV/GIg9thGDreJcvnEZK7mDG139CFOzIuoKM5Q7v1xt4bcpOW07SkGq35V/ 03B3QRt9zsChO1j3WFkvhcAhidivnH0CLkulmLrMHbyNh7na+5h7VOtNOoPGLSs+dJTI 29G5qD2IkPFtPlTRZW0k1iXasg8grZP0igWHr8bGr2Q9DCviBlJB4mU2f62bGhgcuUcr Lkrd4xV1V+TsvUKIPHM6h3FHO182BKieGCN2YH/oHN8FVQBcHB68uZRGdsRMWz51Dd9Z xEmQ== 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=Pwtdqua4C8EFsZiafKrIKlZSpGuf7w5Db4mwt3cBCP0=; b=di8Zhp8E8t5ojXt73UeMOEYJB5UzrSwOfvfeqAqNFCQI0Nfxrvm26AkWa9xolfguMH cvEjypez7a+7x/SAcgErYxpiD6kOP/RYhArXZLcoX5Y8aSCr2bMPvMzRLs6/ZJTeweN3 7K0QPvGc9SgH+n0bcJ7gEtyW2pN0ZPEaIay6e3t+MLspaIn9QShUzZqsbTPTL8461BxI 7IsZF+TkqCUGrfjc8CQosNuouNTi748KSOgCS/RYbYQCt+sGOlTEPDZKOzKKDBNOU8Kp vDhaxmR+QavnZjrsXnlfLBw7wwZnRMwCNqX2KUwIFz0y+g9d+R1aLx2RSSgcJSfFQD6g 52Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=BeejYFGD; 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 r3si1396267edo.395.2020.05.20.05.38.05; Wed, 20 May 2020 05:38:28 -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=BeejYFGD; 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 S1726548AbgETMgq (ORCPT + 99 others); Wed, 20 May 2020 08:36:46 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:53178 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726435AbgETMgq (ORCPT ); Wed, 20 May 2020 08:36:46 -0400 X-UUID: 8afe1c4d6c35493b886f7a847bf383b0-20200520 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=Pwtdqua4C8EFsZiafKrIKlZSpGuf7w5Db4mwt3cBCP0=; b=BeejYFGDsl/sdadPUTDzI5+nYmhZC0w2tE1GmREat7eG4LxJVzlA9Npz35gqH6cVQklT9itHm4X1ETvvTX/uu/PZxbnys1qo5u2CkSCUvp8v/oyA/+x9Ij5XAtjSbrbZcRxxRYaSuePnqU70RmdexDd7Pz7gDu8F6DCDYZHSFc0=; X-UUID: 8afe1c4d6c35493b886f7a847bf383b0-20200520 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 119742408; Wed, 20 May 2020 20:36:38 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 20 May 2020 20:36:36 +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; Wed, 20 May 2020 20:36:35 +0800 From: Walter Wu To: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov CC: , , , , wsd_upstream , , Walter Wu Subject: [PATCH v5 2/4] kasan: record and print the free track Date: Wed, 20 May 2020 20:36:36 +0800 Message-ID: <20200520123636.3936-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 TW92ZSBmcmVlIHRyYWNrIGZyb20ga2FzYW5fYWxsb2NfbWV0YSB0byBrYXNhbl9mcmVlX21ldGEg aW4gb3JkZXINCnRvIG1ha2Ugc3RydWN0IGthc2FuX2FsbG9jX21ldGEgYW5kIGthc2FuX2ZyZWVf bWV0YSBzaXplIGFyZSBib3RoDQoxNiBieXRlcy4gSXQgaXMgYSBnb29kIHNpemUgYmVjYXVzZSBp dCBpcyB0aGUgbWluaW1hbCByZWR6b25lIHNpemUNCmFuZCBhIGdvb2QgbnVtYmVyIG9mIGFsaWdu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