Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2479460ybk; Sun, 17 May 2020 23:29:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyj/1sK4o7AyAKrF5+LVaWCjPv7ItDBfWA/SLwMkANuIuhcqIkMlLv4wgLtqkcrvGkqxfGa X-Received: by 2002:a17:906:6453:: with SMTP id l19mr13072452ejn.169.1589783376262; Sun, 17 May 2020 23:29:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589783376; cv=none; d=google.com; s=arc-20160816; b=ktxsFfQ6eJnh0JQr9i2WCCdKu6XO9XFOCgOJDxi62VenF3iNvD1ZUM8VPv8mWyrBzr 5m4PzPr0gWJ6HtFjxdmEeFQ+bVJdAx+bUcInNfBi7/QG272K9Uo12FOdjFXAOIpCFBPK /l73nmfOM8Z3yCP/4JVN9GnQYgPJU7X+om+y73tP3hzwdpf81qVMKOzFEjy+3HE48wCV K1mEDcd40LFOGdF8AaraBR4LemfuuU/UmfKEWefu6Ukk6ZsEmJPMwYykr9W3TwaSX41O 9h5R3ha1Ol3VEIPHvwdeh9DLmJOqXneF2s15M/tJR2OWZs7fbcp2IepuosbNdHECxzLC egjQ== 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=ISBcatq6mVn60qvM3IFa85BGa9k8Ralk+4f4AH+hBXM=; b=eqwIMBS/mVOyd6XnK84yQLBm8Vxqo3Q9/GaWYRViKhZjGudoOgLi2PcFLuKOE0NIN1 yKcsHfLKHKxGHw7TjWkYzdH5NlwfAnhYsMgdzmhsMi9QUmEQx3Fp8Pz+qwSkcP2y6i1X s/Jiv9n+wLrSsWdfVhsTc3WLxfsnyMxHQ7uFmFSatPdqFnSJgpLAQ3xpUA/otGoW5S7q KARJ5u0o6LdZ1pU8iaCqvSqEvuDuat1tn1TjncpiHf5NuN5ZEp/rjclZFhZ7XVp5ezUJ c5DCLlGzjC4h2mbt5flvOFARjUDWSAKnlQ3sbg9+dUSEHKDMb7MB7+i0ev+pv2wdUe2Y 41Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=nHwFdGhZ; 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 w6si6296092edf.40.2020.05.17.23.29.13; Sun, 17 May 2020 23:29:36 -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=nHwFdGhZ; 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 S1726489AbgERG1k (ORCPT + 99 others); Mon, 18 May 2020 02:27:40 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:27856 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726357AbgERG1k (ORCPT ); Mon, 18 May 2020 02:27:40 -0400 X-UUID: 21cbb749ac784cbb9868ef3736957364-20200518 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=ISBcatq6mVn60qvM3IFa85BGa9k8Ralk+4f4AH+hBXM=; b=nHwFdGhZOeP2uI3vKofQxDaPLR4DXBugFdRB/dWY0nvq/SZk6YlGgl04HRIxz4ZIhsqzP+V5EbKzPiTozrCPTRc+Ff0qvuFydhYYK/7uT+qcgzNBVneiHFI9tgpJS0T93MRHEMSLnhSIdCPOCd6h1oUylz430Gi1xln1srG6VbU=; X-UUID: 21cbb749ac784cbb9868ef3736957364-20200518 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1093623343; Mon, 18 May 2020 14:27:32 +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; Mon, 18 May 2020 14:27:30 +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, 18 May 2020 14:27:30 +0800 From: Walter Wu To: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Matthias Brugger CC: , , , , wsd_upstream , , Walter Wu Subject: [PATCH v3 2/4] kasan: record and print the free track Date: Mon, 18 May 2020 14:27:30 +0800 Message-ID: <20200518062730.4665-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 TW92ZSBmcmVlIHRyYWNrIGZyb20gc2x1YiBhbGxvYyBtZXRhLWRhdGEgdG8gc2x1YiBmcmVlIG1l dGEtZGF0YSBpbg0Kb3JkZXIgdG8gbWFrZSBzdHJ1Y3Qga2FzYW5fZnJlZV9tZXRhIHNpemUgaXMg MTYgYnl0ZXMuIEl0IGlzIGEgZ29vZA0Kc2l6ZSBiZWNhdXNlIGl0IGlzIHRoZSBtaW5pbWFsIHJl ZHpvbmUgc2l6ZSBhbmQgYSBnb29kIG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