Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp671146ybt; Fri, 10 Jul 2020 09:26:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrcg6lHrW5jkjcN7KOn4LQnMSzzTqaLEyKmMWduq1uvkoY2ZECjXNBi+bbG9gq8wAR+hnU X-Received: by 2002:a17:906:2b52:: with SMTP id b18mr63610113ejg.158.1594398361986; Fri, 10 Jul 2020 09:26:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594398361; cv=none; d=google.com; s=arc-20160816; b=d6UigOKPe27WHPbHAS68cIvnVHEMhBnjWTYfs6SbxKZkJKE0KmTfWYZVtk1QDH7aPd fKLRzB+kTqdAv61x5VPPDYzo6sq98Ex5+FfqrBrpjwXYTcpT8VLnbsCkn3pCLGqmD8/e DJt7C3xa9OMGWK9QrEkujqgBjaubOrjklyPJZt8dXRyib63Lh6Vd3E/PfhJcVxlK+/M2 am0PVSgaKS+TBQByZ85eWuJ4TA+utAsjw5MECobryWLKVGjDLnl2XSPwp73fpm8cDhTC ydDPWZXT8zkMVV3Tf++0w6AIXlK7OUdjdJLAEDGZfuu5hwLa6cjWKXqzHH5Y089CQJF2 HGug== 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=iH5RBlxT314lzARGs6E+KkYkUlCI9LnoDlSewywGu1s=; b=VSgVC/UoDaDUYEnlJD3hejgAsnNioUumn/BqXipeftckDm/y+Mbi0QKStHB+rtJ40q pNaLvp5keHP5GPODH+8wlsNM9f3OHAobmrgg0RrVisTzZEe0kFhfCef6undKaonOJU3P k3srtjFaEQvwDoE+rVgi2IjbcPigOEXKTUSLaLm2DmX/Vz57U9I96n7PSocUAcKyiXfP Ko8tECjwPW0F+p/t8f9TeS1yN81epW2kfGYF9K6oHuoYQ3Hy9ARg1PLl8I2AXSRbgz1X gFYJGwy+bxFMyJV7CHrAZvnBbiNuBswk7EPsjp0d6jMSctBITMimOtEPZUUk5fLQQl02 6PzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=sFXETMKS; 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 c25si4293614ejb.6.2020.07.10.09.25.38; Fri, 10 Jul 2020 09:26:01 -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=sFXETMKS; 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 S1727844AbgGJQYt (ORCPT + 99 others); Fri, 10 Jul 2020 12:24:49 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:45935 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726965AbgGJQYt (ORCPT ); Fri, 10 Jul 2020 12:24:49 -0400 X-UUID: 543728e5eb50429a969e6674135db85c-20200711 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=iH5RBlxT314lzARGs6E+KkYkUlCI9LnoDlSewywGu1s=; b=sFXETMKS8mbO+URUYEKycI3G1Rh990HEHBD6G7lvnpYAaaRVPsvCWEXOkw9x5l/03rBRmd0UB8ylitQljjax0JK+EEqbCMpr23XVapeNXa6W0TXNtDbUqs1Cc5OC6HpROxY9DjJI1Q1WlewD5fAI9IuT5eT5P6dpZACeSgmlZ0o=; X-UUID: 543728e5eb50429a969e6674135db85c-20200711 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 401719224; Sat, 11 Jul 2020 00:24:44 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 11 Jul 2020 00:24:42 +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; Sat, 11 Jul 2020 00:24:42 +0800 From: Walter Wu To: Andrew Morton CC: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Matthias Brugger , Andrey Konovalov , , , , wsd_upstream , , Walter Wu Subject: [PATCH v8 2/4] kasan: record and print the free track Date: Sat, 11 Jul 2020 00:24:40 +0800 Message-ID: <20200710162440.23887-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: 722A27136CAADEBD4C2E5DF963CFB6288BE4921EAB311698829C2514C73D0DC62000: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 TW92ZSBmcmVlIHRyYWNrIGZyb20ga2FzYW5fYWxsb2NfbWV0YSB0byBrYXNhbl9mcmVlX21ldGEg aW4gb3JkZXINCnRvIG1ha2Ugc3RydWN0IGthc2FuX2FsbG9jX21ldGEgYW5kIGthc2FuX2ZyZWVf bWV0YSBzaXplIGFyZSBib3RoDQoxNiBieXRlcy4gSXQgaXMgYSBnb29kIHNpem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