Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1480514ybj; Tue, 5 May 2020 22:26:43 -0700 (PDT) X-Google-Smtp-Source: APiQypJx712CO3YMTziA/NwHR8c22BCbO3MfdEwwCEjYFAAeIrZBKnzoIu5UwC9R6DspKvKXJxEo X-Received: by 2002:a05:6402:1d89:: with SMTP id dk9mr5429368edb.382.1588742803610; Tue, 05 May 2020 22:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588742803; cv=none; d=google.com; s=arc-20160816; b=m06orH4Wu1VlVZl75xIt3TXofcB+XiZjQl8a5HzKiW8F7t+lNGyIGX10GbsVszsTE6 J7Mm1Uu6CqJiAHSybLS61QAErqWXxhmI7Dcnm5/DuM34ZaKpt0gWCFInaigO70qbO0k/ ZkimefzhQvammE7ek8ZNHPegwZWec8llZCxDlYDLJ9TrPnyozSvaofg43OX67JB57Orz P9uGEtZO4Rgn3QgXvsH3c2CsjDn9oMKuHcMa0h1Urb9FB1uxI0mPM35bbPMLRlg3KQw5 NEo+M1J70S/MSZE0oQRMsMnwUvdrxGUdzMsy5upAkZ4fMpeJxxd3XtoVYFKzLqOLetcS vvDw== 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=lTgBW2WWuXjTeKkJYnAtJb3HmcIPptLcokJVsELZxTw=; b=H8jfdA+DyTlNTzmCzZXgtnXY8TIVKGDdOdrtgz5fEOJR5c7oISe9YmCwFheFsmIR0Z ot4dSo2G3Rk+P++AUluqJEJnpAbLBTzjWQPeVb2fME2yMP0g/JUCDIkvlwxSdxfVLteP wM2sywa7921h9A9IwyB6wTzxG0UomaOx70NF1a6XLMfc/eO2OrywAQ6Vp5TYBOuzftc/ lmzNy2fwYyzBGjt2zEJQsImVUwtlz3pBsuPEgwcZC72ZXXV1voMJ7T+1M/v7UkSI2/wy 6Lnmi70fbFNYa6GdYqJ+c4vxU6qId548HptPAz4CXihzcbMHZJ9Jw0wH/Hu5jT6HjfF3 hpZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=s4FoA3LL; 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 w16si513031ejb.521.2020.05.05.22.26.19; Tue, 05 May 2020 22:26:43 -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=s4FoA3LL; 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 S1727088AbgEFFWD (ORCPT + 99 others); Wed, 6 May 2020 01:22:03 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:28127 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725771AbgEFFWD (ORCPT ); Wed, 6 May 2020 01:22:03 -0400 X-UUID: 5805d09711654a5ab534d95afbd9c7ac-20200506 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=lTgBW2WWuXjTeKkJYnAtJb3HmcIPptLcokJVsELZxTw=; b=s4FoA3LLrANr2cDEstJiiQZMcGvcPI1bXlSJb9twtE/IoZ1+3EYlclN3xheo+gO6JlSi7Gm3fPChs34hcnC54v7WJjgewYXc5V3P6DeYAfRSr6/ed5+o0AcxWnKxsAjooBc2ETp1MxtvsuxyLD9UG9THkXZB0QO+ZoTbEMFRoIY=; X-UUID: 5805d09711654a5ab534d95afbd9c7ac-20200506 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 393041407; Wed, 06 May 2020 13:21:57 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 6 May 2020 13:21:55 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 6 May 2020 13:21:55 +0800 From: Walter Wu To: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Matthias Brugger CC: , , , , wsd_upstream , , Walter Wu Subject: [PATCH 2/3] kasan: record and print the free track Date: Wed, 6 May 2020 13:21:55 +0800 Message-ID: <20200506052155.14515-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 V2UgYWRkIG5ldyBLQVNBTl9SQ1VfU1RBQ0tfUkVDT1JEIGNvbmZpZ3VyYXRpb24gb3B0aW9uLiBJ dCB3aWxsIG1vdmUNCmZyZWUgdHJhY2sgZnJvbSBzbHViIG1ldGEtZGF0YSAoc3RydWN0IGthc2Fu X2FsbG9jX21ldGEpIGludG8gZnJlZWQgb2JqZWN0Lg0KQmVjYXVzZSB3ZSBob3BlIHRoaXMgb3B0 aW9ucyBkb2Vzbid0IGVubGFyZ2Ugc2x1YiBtZXRhLWRhdGEgc2l6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