From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5CF99C43461 for ; Mon, 14 Sep 2020 22:43:24 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E373E20732 for ; Mon, 14 Sep 2020 22:43:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZesJq3Pj"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KtI0z+7q" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E373E20732 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:References: To:From:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=XN/529WyCwZd/XmC/tt5v+b1TXGQOgJGrm6mu6CAMD0=; b=ZesJq3Pjy4NbHUcJi4mk0wa3q U41vF0DTyX42k3aQWK378nuLc4mMKcULGpLzeA8sQFNZN+LjM3l/peDBEX0/rCU8bKRrh4YxsGvrc 48DTI6vyPH0lRi4TOW7j5zYdKjK9dAnxvn9WqZ6JtL2+sf7piogacEwxg6oZc2+zahfu2KDwRmYju 95EDcxVDwdrh8w5jaanKiPZe1580Z6otsIZ1oNoGyhLPKv7g8t7Z4UQuULoilD3Q8gk+VUVRazK6d r0f7mHN7HJIn+0TntxYyjCLOUZtxL8glYXfkuNp1b381preb50WOL8UIavIBmvYNz7czkF1Z7IP7/ i+Z1k2Yfw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kHx9x-0004eY-OZ; Mon, 14 Sep 2020 22:41:17 +0000 Received: from mail-il1-x143.google.com ([2607:f8b0:4864:20::143]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kHx9v-0004eF-17 for linux-arm-kernel@lists.infradead.org; Mon, 14 Sep 2020 22:41:15 +0000 Received: by mail-il1-x143.google.com with SMTP id t13so1146048ile.9 for ; Mon, 14 Sep 2020 15:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Oe4v5wdBZoPuk0ddpb1jzsKRPQEuYRWPurCfk1sOfyg=; b=KtI0z+7qVWtN4kdz3VqRm8+2R6TixiYOBrxs1SeelDLcOkuJ6NndQ695tbSmM5cN9M eSmPdrylCTiHGTRsgZmjWZ1AyZDovvvW1TH7J30nRmQv56ymxGmHKMOTUsylpzjpNGmX lj6J9Vqddu+i53AUIAuOnl95fVC0/sm9QDHMM0pDdUNjBXMBLyBfC10Dlv46LMwYOAEm 0umx8k0DU8AghdQlj7tqEtO02qmh1CDh+jASRDWr+WYvYU9tTXY1Btj0k9Xc9ibpUVXe S4JnumnOIZy3YyP+j3cAcpdaglU88iFbErjVpPzpOgGKy2RtmFpON4Dk3gtAFDJhVWpX 2ugw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Oe4v5wdBZoPuk0ddpb1jzsKRPQEuYRWPurCfk1sOfyg=; b=pTefjf++9FwpotebnX1wY4nDtT8CdTVC1Y3M62LI0Lc1pE91iK/nPAl5d50H+8OQBr fsK+Z/MQJjt9+exCGJRu8UfYxQVKz4h2zZlErInIo/2LBJq1iFWqs9yKyVjXMBs3zsCZ BPnEMX9wB/TItG5fzh6tNe25dypU5VuqbU7n/VUJOsh+wmxD5A3zh8G4OnnLDtPIb7fR rRqMViggT8AZqAP570cbdeXFOxYi8pYz8JYvOTscF+aSnoUMk6yizloUJO7lB75wARyz 0hPEe6IusLsM2IcL23KgP1Iw7yT4RrH2mjeY08ocJbzCpSopf2t40x5Bo7UB74/7OfGp R19w== X-Gm-Message-State: AOAM531XZNsYRQ02sWz51KweTLXrJu9x5VM8mEKQBeRuQuh4VLAHuK8k HZ1muVu8SXHJ7oG3SJgkbfZYDB02Bv7jYv/E X-Google-Smtp-Source: ABdhPJw1JdC+jwaSP59ukG+XdsdQCWaCLxq4DRzfCLuypHyex2cdW1LS01eyTac/dtAW5ilO/LdXqQ== X-Received: by 2002:a92:730b:: with SMTP id o11mr9535201ilc.91.1600123273260; Mon, 14 Sep 2020 15:41:13 -0700 (PDT) Received: from [192.168.1.134] (1401969-v106.1175-static.lfytina1.metronetinc.net. [69.174.147.237]) by smtp.gmail.com with ESMTPSA id q191sm6605701iod.30.2020.09.14.15.41.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Sep 2020 15:41:12 -0700 (PDT) Subject: Re: [PATCH 00/35] kasan: add hardware tag-based mode for arm64 From: Derrick McKee To: Andrey Konovalov References: <5282f36a-8df7-a20e-4d1d-41d1230ba11f@gmail.com> <6717bdbb-56f4-ddec-bf21-7f79e0beb1a0@gmail.com> Message-ID: <5b50c0d2-170f-b204-68b8-f674524d58b9@gmail.com> Date: Mon, 14 Sep 2020 18:41:12 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <6717bdbb-56f4-ddec-bf21-7f79e0beb1a0@gmail.com> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200914_184115_090043_E8C94830 X-CRM114-Status: GOOD ( 17.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Catalin Marinas , Vincenzo Frascino , Linux ARM Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 9/14/20 5:36 PM, Derrick McKee wrote: > On 9/14/20 4:04 PM, Andrey Konovalov wrote: >> One needs to use the latest QEMU master and provide "-machine >> virt,mte=on -cpu max" arguments to it. I'll add this information into >> the cover letter for v2. > > I am using the latest QEMU as of Sep. 8, and starting the system with > virt,mte=on, and I have also checked that the appropriate bits are set > in sctlr_el1 and ID_AA64PFR1_EL1. Finally, when I print out the tag > immediately before and after mte_assign_mem_tag_range I get the same > result. I should also mention that CONFIG_KASAN_HW_TAGS=n in my configuration, but I have added my own macro to enable my code and added it to the conditional macro in memory.h:224. I have also ensured that mte_init_tags is called from setup_arch. But still the result of the ldg instruction to get the address tag is always 0, despite the desired tag of 2. Perhaps I am missing some other needed setup or configuration? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel