Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4224428ybz; Mon, 20 Apr 2020 18:41:43 -0700 (PDT) X-Google-Smtp-Source: APiQypJwU6Nrex9RbPt+jgYUUf97CZnaG4uJEIAlWPbmE74rVhgmuzRg/CDa9Pyo5czZnWbbB0dA X-Received: by 2002:a17:906:f251:: with SMTP id gy17mr17520468ejb.369.1587433303032; Mon, 20 Apr 2020 18:41:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587433303; cv=none; d=google.com; s=arc-20160816; b=AJnsy/mfZFo+Y0u2cJY98EpYBh+fHfX3mokttgijD2RvmkR0YQLmfpIzQKzAYhCtl6 yYl7xVAqyoyZ1yNHCqwHfyF9vXfm39v+X2PqVXZRQwaORA5Hf4BzmUc5Ht1BNgPslFBv c0eW3Bup9la4SesBHPKVyktWSRvdQ8JzPhxh8TIDaC1bo20bRjaG44GZKY1uCo8zXg6U 8+nW+tXqWq0L2bY6LPZsXtvBPdX0B78RU1QjpN2clbEzOTjx4xkC9cIGvUdWiw7PLz/m xKtLc+WZ68QynHOmYTPHHKJ8NuleDFGYWUkG7w4U/2EkYLhETrMCLp1oVgVn5lIn1APR aJqQ== 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=kvJkIFmK0+Fajj8XRCQra0WIBlEJ5d/F7a174u9kVSw=; b=vR0iepWkAtnFRuz8+WmN0M6Scf2Yg0f9l96SKC7FQwhs70uNSucdiy+NE3YM0Q+RCM 84Jud9u4Q50bRqHFZd47sp6XmgxVA8BOHQ/ikZjQcOr6l4p1DIW9Td2XK7bFJkSwmxYC W4VUtj05KUCKiQc4bvlAUbzSnCAiqj9LAwrOLw0IjCxPz5JzoIttLMXV8g9shiBBLnSn zzEQt5IY9Yzk19ZXJnvSP8HyoyCwW+hgHhdi5HANWjkTaJFLqCr/haaz0XB3A1AKBRDG oK5SX6PEXJsal31m6PmK0GZ7Aws2BKbiX54K2GovfMT3bxZ1H9GGEL7+oPFFc9BxGgmr g8sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=L20rOhkQ; 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 j12si810097edn.292.2020.04.20.18.41.18; Mon, 20 Apr 2020 18:41: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=L20rOhkQ; 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 S1726017AbgDUBkP (ORCPT + 99 others); Mon, 20 Apr 2020 21:40:15 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:45047 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725897AbgDUBkO (ORCPT ); Mon, 20 Apr 2020 21:40:14 -0400 X-UUID: f69d6d55cb2f45d897c05192bdd4f3dc-20200421 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=kvJkIFmK0+Fajj8XRCQra0WIBlEJ5d/F7a174u9kVSw=; b=L20rOhkQrm5OIsQ7JG1D0X0FejXBuxj46p0oxGM0IovM9eOanQ6EcQ1hKv2FxtJ5BIxY01+wvIuWmLwMCQO2My/FSRNUWt8sQxZ+tYMk3XaZiaLLBLAMdf8QcNsx1z7qb++B2ZBH/wlwK++uMf6P42qsGprWsWWXYLLqhxXX/Oc=; X-UUID: f69d6d55cb2f45d897c05192bdd4f3dc-20200421 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 2126729325; Tue, 21 Apr 2020 09:40:10 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 21 Apr 2020 09:40:08 +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; Tue, 21 Apr 2020 09:40:08 +0800 From: Walter Wu To: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Matthias Brugger , Andrey Konovalov , Andrew Morton CC: , , , , wsd_upstream , , Walter Wu Subject: [PATCH] kasan: fix KASAN unit tests for tag-based KASAN Date: Tue, 21 Apr 2020 09:40:07 +0800 Message-ID: <20200421014007.6012-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: 2CEDE98B7C8540AA4DB9C008FB938823D9E9F478584B868D577067E8D6D705122000: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 V2hlbiB3ZSB1c2UgdGFnLWJhc2VkIEtBU0FOLCB0aGVuIEtBU0FOIHVuaXQgdGVzdHMgZG9uJ3Qg ZGV0ZWN0DQpvdXQtb2YtYm91bmRzIG1lbW9yeSBhY2Nlc3MuIEJlY2F1c2Ugd2l0aCB0YWctYmFz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