Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp90333ybt; Mon, 6 Jul 2020 04:53:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWi/8gzeG6oX2ih2J+ca6Aaz25oRyI3ylFTGH6btRZq6W16p8Lf+SOv7rHnkiz7zLqcUHm X-Received: by 2002:a17:906:b888:: with SMTP id hb8mr42458258ejb.124.1594036395220; Mon, 06 Jul 2020 04:53:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594036395; cv=none; d=google.com; s=arc-20160816; b=ZrV054xjH4wCo+GetJZV4QESlSdxMMeNNvUizzTG4L+ii+3LgtCspxtt26ppd7/71u ssc4VD4vPjT1Uq3TyOYUbh1J3M43qzMYPIHOtjuYT/d/yg+wDYdi1NwsgMVMfTM3Cn+q w4MRmybjMfussSklPdUKmBk7jURehLac0o63UNN50aH+C3Aa37zrSbCU2ltL+SUXxzTy U25zEgxSLt314oUk7xwU1DB+Agl+bdenxO3uZvJk1va0oF7Mwnw3pDKPNdNtUOlk8QhR AMeq75ONG6YfsThz36HVxMv1sJWSMe68qm/wmFBjnNcub6eh8PaGHj1nmgW3IQRm9yBu LBzQ== 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=HgGv5GllBCIs4pALjjuZNyjAbCUoNT8X/DWFg7aCCeA=; b=ulPQBuLTTSSn67usowICKUrfS1uwhvRjsjZhZulId1gDr5yxXAUfSVXKq95ViZVd0x kYCad2/9yG34vrCEc3mr2AMy87FssV4OymKzCKdAO7d68xAe48qKQZgoJdOEvxXk9BmH AroJvVgk3M00U8a1qsndTRUh2Xnv4Kkz53uqxwAKESwIbUP6i24Hp7tpNpOTGIGB65sP j1KwBbODn/dP2DQzOvl8Tj+4NrNUljK5ERypl4+5lMy/Zz3LHXbg2nTrUDFrSRvlHY6t tMvodo3NZEVzTr/1lSHxJ7v9/ns09dMESQJlsIzq2fqPoJ0bgw4NZl2C4gIx0+gU/Z3d AHuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="Eil/MUly"; 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 d20si2396380edy.505.2020.07.06.04.52.52; Mon, 06 Jul 2020 04:53:15 -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="Eil/MUly"; 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 S1728917AbgGFLur (ORCPT + 99 others); Mon, 6 Jul 2020 07:50:47 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:26193 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728264AbgGFLur (ORCPT ); Mon, 6 Jul 2020 07:50:47 -0400 X-UUID: b63b5d4ad2d545fcba1674c27f637cfd-20200706 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=HgGv5GllBCIs4pALjjuZNyjAbCUoNT8X/DWFg7aCCeA=; b=Eil/MUly95lLDMnUXY6cJGmJ9v+WJe2uvQQN7gcFfyqstVDuYD+PjeTB7HilE89J8pWTFWOlTXsj/+H3m0J71jPnn5DXNl+f+1MlUb3nPsVePUJPq9DJAurk2YQPH7fCg9tfH80WJtGOIolwnQUjWV8rSDiJiZJRyJa0Mgp8E94=; X-UUID: b63b5d4ad2d545fcba1674c27f637cfd-20200706 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 776962270; Mon, 06 Jul 2020 19:50:43 +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; Mon, 6 Jul 2020 19:50:37 +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; Mon, 6 Jul 2020 19:50:38 +0800 From: Walter Wu To: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Matthias Brugger CC: , , , , wsd_upstream , , Walter Wu , Andrey Konovalov , Andrew Morton Subject: [PATCH v3] kasan: fix KASAN unit tests for tag-based KASAN Date: Mon, 6 Jul 2020 19:50:39 +0800 Message-ID: <20200706115039.16750-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: 2696D56F8A745539E46ABFD94ABC60186801271EB9B4EF448FB11D58BE36061F2000: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 CldpdGggdGFnLWJhc2VkIEtBU0FOLCB0aGUgc3Rhd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VEFHX09GRl07DQorDQog CWttZW1fY2FjaGVfZnJlZShjYWNoZSwgcCk7DQogCWttZW1fY2FjaGVfZGVzdHJveShjYWNoZSk7 DQogfQ0KQEAgLTUxMiwyNSArNTI1LDI1IEBAIHN0YXRpYyBub2lubGluZSB2b2lkIF9faW5pdCBj b3B5X3VzZXJfdGVzdCh2b2lkKQ0KIAl9DQogDQogCXByX2luZm8oIm91dC1vZi1ib3VuZHMgaW4g Y29weV9mcm9tX3VzZXIoKVxuIik7DQotCXVudXNlZCA9IGNvcHlfZnJvbV91c2VyKGttZW0sIHVz ZXJtZW0sIHNpemUgKyAxKTsNCisJdW51c2VkID0gY29weV9mcm9tX3VzZXIoa21lbSwgdXNlcm1l bSwgc2l6ZSArIDEgKyBPT0JfVEFHX09GRik7DQogDQogCXByX2luZm8oIm91dC1vZi1ib3VuZHMg aW4gY29weV90b191c2VyKClcbiIpOw0KLQl1bnVzZWQgPSBjb3B5X3RvX3VzZXIodXNlcm1lbSwg a21lbSwgc2l6ZSArIDEpOw0KKwl1bnVzZWQgPSBjb3B5X3RvX3VzZXIodXNlcm1lbSwga21lbSwg c2l6ZSArIDEgKyBPT0JfVEFHX09GRik7DQogDQogCXByX2luZm8oIm91dC1vZi1ib3VuZHMgaW4g X19jb3B5X2Zyb21fdXNlcigpXG4iKTsNCi0JdW51c2VkID0gX19jb3B5X2Zyb21fdXNlcihrbWVt LCB1c2VybWVtLCBzaXplICsgMSk7DQorCXVudXNlZCA9IF9fY29weV9mcm9tX3VzZXIoa21lbSwg dXNlcm1lbSwgc2l6ZSArIDEgKyBPT0JfVEFHX09GRik7DQogDQogCXByX2luZm8oIm91dC1vZi1i b3VuZHMgaW4gX19jb3B5X3RvX3VzZXIoKVxuIik7DQotCXVudXNlZCA9IF9fY29weV90b191c2Vy KHVzZXJtZW0sIGttZW0sIHNpemUgKyAxKTsNCisJdW51c2VkID0gX19jb3B5X3RvX3VzZXIodXNl cm1lbSwga21lbSwgc2l6ZSArIDEgKyBPT0JfVEFHX09GRik7DQogDQogCXByX2luZm8oIm91dC1v Zi1ib3VuZHMgaW4gX19jb3B5X2Zyb21fdXNlcl9pbmF0b21pYygpXG4iKTsNCi0JdW51c2VkID0g X19jb3B5X2Zyb21fdXNlcl9pbmF0b21pYyhrbWVtLCB1c2VybWVtLCBzaXplICsgMSk7DQorCXVu dXNlZCA9IF9fY29weV9mcm9tX3VzZXJfaW5hdG9taWMoa21lbSwgdXNlcm1lbSwgc2l6ZSArIDEg KyBPT0JfVEFHX09GRik7DQogDQogCXByX2luZm8oIm91dC1vZi1ib3VuZHMgaW4gX19jb3B5X3Rv X3VzZXJfaW5hdG9taWMoKVxuIik7DQotCXVudXNlZCA9IF9fY29weV90b191c2VyX2luYXRvbWlj KHVzZXJtZW0sIGttZW0sIHNpemUgKyAxKTsNCisJdW51c2VkID0gX19jb3B5X3RvX3VzZXJfaW5h dG9taWModXNlcm1lbSwga21lbSwgc2l6ZSArIDEgKyBPT0JfVEFHX09GRik7DQogDQogCXByX2lu Zm8oIm91dC1vZi1ib3VuZHMgaW4gc3RybmNweV9mcm9tX3VzZXIoKVxuIik7DQotCXVudXNlZCA9 IHN0cm5jcHlfZnJvbV91c2VyKGttZW0sIHVzZXJtZW0sIHNpemUgKyAxKTsNCisJdW51c2VkID0g c3RybmNweV9mcm9tX3VzZXIoa21lbSwgdXNlcm1lbSwgc2l6ZSArIDEgKyBPT0JfVEFHX09GRik7 DQogDQogCXZtX211bm1hcCgodW5zaWduZWQgbG9uZyl1c2VybWVtLCBQQUdFX1NJWkUpOw0KIAlr ZnJlZShrbWVtKTsNCi0tIA0KMi4xOC4wDQo=