Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp742571ybt; Wed, 8 Jul 2020 10:33:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUgV+bZ2s9cHaYo3tFJDdJcCdjBB+2YUbiHsgWHZ4muo6pNukViduy1oBh92spnZqHCEno X-Received: by 2002:a17:906:c451:: with SMTP id ck17mr54712609ejb.80.1594229596941; Wed, 08 Jul 2020 10:33:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594229596; cv=none; d=google.com; s=arc-20160816; b=k/W6fihqkMeBlRPNtquD4PxZzTPQM+mDmD6jssqh50uz4CCx4yJxmfWFcS8zjb7Y00 o2E3SKvK49HwpL3Skxbnwbvk0utK0faURVQK714lieFWpGrb/azLejuufXCZWU3iDHhl su3miQr5/K8vCZN3aml9cfAfX2kto17IcvfCx01qgNll2xoocq+MjIe3g4vpyxt9kos8 LYreaQ2w7I5EOrrAm81Q7HZK91lOiin5D5pWQIj1+RQRuQ6BDD+RDeOMB5F4AMJK+s+H 4TwCsJPDp/qvJr7lQcMqy/sOUgFVDgp2a1UZJC7gCw80nEX2c1lS7NTDJcEQbLcKQzuR rmcw== 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=8MKbH1IX9Wezlb1mLgBVH7giMxWeaQpi+Vzc+0gSWkA=; b=P8LNNS4us9JxOv5JgqiBssP3pRSJHVxBV/j28R98ROwUDqGy6+pjO9N2DPh04milTd 9vgWXdrCq9yWpig5k5nfLvZX5aRYdwuVjLFZ+PtRAudMLzQnJ5IuZMacfWqN58AU8t2L HbjF/5oDKHPiG8A06N1NeETYPvt+eePn1g8Z/jLcWbDuVdAj/zdq9kMbQxc/78D8cxgJ XxprkTaf/QWlnlKKBloKv+BUvbpP3xUDsoUjO0SgThrL+03y5h/F+fP4wQePHJAJmu41 1F9jq+wrS7+3v3Qiy2A03JXmQItOOgv1+Jt5YjjsfFr4ZGAFm/BCdi3ZfRdPQeJW+DPj Zr8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=cGKo3kW3; 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 y18si379270edw.583.2020.07.08.10.32.42; Wed, 08 Jul 2020 10:33:16 -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=cGKo3kW3; 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 S1729344AbgGHNZc (ORCPT + 99 others); Wed, 8 Jul 2020 09:25:32 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:4373 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728148AbgGHNZb (ORCPT ); Wed, 8 Jul 2020 09:25:31 -0400 X-UUID: 88346041bab743b293e7a3a8d908c68d-20200708 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=8MKbH1IX9Wezlb1mLgBVH7giMxWeaQpi+Vzc+0gSWkA=; b=cGKo3kW3IYSKlmYT4j28d6xUrYgMdKii7tGBO0wDzaJyNLW7I9AdjZvi+zVeIVBsiobvgFACOtqZxvAg3dOtvz+Km7j9Y2yAbYj8A4RubWhL4LPuU1aVyuPQSUikF9Hie0goMQaVYoKvwAXIqek1SKGhQbAEvK2IRRZgwm3D/h0=; X-UUID: 88346041bab743b293e7a3a8d908c68d-20200708 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 280638738; Wed, 08 Jul 2020 21:25:27 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 8 Jul 2020 21:25:19 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 8 Jul 2020 21:25:22 +0800 From: Walter Wu To: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Matthias Brugger , Andrey Konovalov , Andrew Morton CC: , , , , wsd_upstream , , Walter Wu Subject: [PATCH v4] kasan: fix KASAN unit tests for tag-based KASAN Date: Wed, 8 Jul 2020 21:25:24 +0800 Message-ID: <20200708132524.11688-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: 4FE038726111CFDF32B6454EE1B6840009C597B427D47AC810D59EFB2B7294702000: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 V2UgdXNlIHRhZy1iYXNlZCBLQVNBTiwgdGhlbiBLQVNBTiB1bml0IHRlc3RzIGRvbid0IGRldGVj dCBvdXQtb2YtYm91bmRzDQptZW1vcnkgYWNjZXNzLiBUaGV5IG5lZWQgdG8gYmUgZml4ZWQuDQoN CldpdGggdGFnLWJhc2VkIEtBU0FOLCB0aGUg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DQogDQogCXByX2luZm8oIm91dC1vZi1ib3VuZHMgaW4gX19jb3B5X3RvX3VzZXIoKVxuIik7 DQotCXVudXNlZCA9IF9fY29weV90b191c2VyKHVzZXJtZW0sIGttZW0sIHNpemUgKyAxKTsNCisJ dW51c2VkID0gX19jb3B5X3RvX3VzZXIodXNlcm1lbSwga21lbSwgc2l6ZSArIDEgKyBPT0JfVEFH X09GRik7DQogDQogCXByX2luZm8oIm91dC1vZi1ib3VuZHMgaW4gX19jb3B5X2Zyb21fdXNlcl9p bmF0b21pYygpXG4iKTsNCi0JdW51c2VkID0gX19jb3B5X2Zyb21fdXNlcl9pbmF0b21pYyhrbWVt LCB1c2VybWVtLCBzaXplICsgMSk7DQorCXVudXNlZCA9IF9fY29weV9mcm9tX3VzZXJfaW5hdG9t aWMoa21lbSwgdXNlcm1lbSwgc2l6ZSArIDEgKyBPT0JfVEFHX09GRik7DQogDQogCXByX2luZm8o Im91dC1vZi1ib3VuZHMgaW4gX19jb3B5X3RvX3VzZXJfaW5hdG9taWMoKVxuIik7DQotCXVudXNl ZCA9IF9fY29weV90b191c2VyX2luYXRvbWljKHVzZXJtZW0sIGttZW0sIHNpemUgKyAxKTsNCisJ dW51c2VkID0gX19jb3B5X3RvX3VzZXJfaW5hdG9taWModXNlcm1lbSwga21lbSwgc2l6ZSArIDEg KyBPT0JfVEFHX09GRik7DQogDQogCXByX2luZm8oIm91dC1vZi1ib3VuZHMgaW4gc3RybmNweV9m cm9tX3VzZXIoKVxuIik7DQotCXVudXNlZCA9IHN0cm5jcHlfZnJvbV91c2VyKGttZW0sIHVzZXJt ZW0sIHNpemUgKyAxKTsNCisJdW51c2VkID0gc3RybmNweV9mcm9tX3VzZXIoa21lbSwgdXNlcm1l bSwgc2l6ZSArIDEgKyBPT0JfVEFHX09GRik7DQogDQogCXZtX211bm1hcCgodW5zaWduZWQgbG9u Zyl1c2VybWVtLCBQQUdFX1NJWkUpOw0KIAlrZnJlZShrbWVtKTsNCi0tIA0KMi4xOC4wDQo=