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.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 8D97AC43461 for ; Mon, 14 Sep 2020 22:52:21 +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 20E6B20732 for ; Mon, 14 Sep 2020 22:52:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="hGxN+oZc"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="SiWWD4eD" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 20E6B20732 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.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-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ivY4GPlzZ9naQm7rmqD+GaB8EdmsUE/M02GRBhUujdY=; b=hGxN+oZcebkoXE1sK9aNfmq8r UDLNN0ooJlt3KpPTLkHx37Ty9Cs51U6VMPXhgJcwRu4VZwU6LtY+dyoG1xdKuconciJdFCZJEL+Wq 1qzuUediWWS/fCIt3vtBnO5g9oHZ/fzU65Od6rAfJTYyxIO5cEg0GtATG2/fWfeieIOt8OrFsjDPQ SlSfioiDD9F7nAfvH8ANpAuq9aPwHu5LwpYQV4P3wrpu9ELlERl3Jm2TmhMoboIwXSPqe1ZJ061FV 5s3xgC5uLIAhJH6x2P2jZSMu3ZxauH2VeJgaEgKLO5u0Uylzjdt8cr73rIAXXIF/TD+lPAm9vX6CS rExzaLzeA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kHxIy-0005yS-Kc; Mon, 14 Sep 2020 22:50:36 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kHxIv-0005xQ-UD for linux-arm-kernel@lists.infradead.org; Mon, 14 Sep 2020 22:50:34 +0000 Received: by mail-pf1-x441.google.com with SMTP id c196so807355pfc.0 for ; Mon, 14 Sep 2020 15:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=t9/swwh4hteLcUhN8LiC/mugUsLZSycCdyshMOFsoU8=; b=SiWWD4eDFkm97vgFkzjeb6KdHrIhLrMxynnQX+MdCWjgWhcsQ+b6sZRCICrJsa8QcW fwWZcZTQzPwMgkkdexKSy7XOMwHXaAZ8MD/oiZdsafVyl0R2nTIuuQWJuyJxUSC/wTW6 PslKBtGDUN7KQCDNnD5dRZxfe7EBHnneEONZRQWMrisU8gVa4aqyvHcNIjhXk6DMk3IH CIvEK/e9Qfvm0CBqfNbn6gbXRDeV08eE/yM9UDEi7FrunxjxolneM4iHAMfr1HvFFkir wEsbbi5fUck0JobW3/q/VQTugMgHEhdpR2aSKtWQVQioB7XbJ469B1etrHSoCz+FBi4m ZTkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=t9/swwh4hteLcUhN8LiC/mugUsLZSycCdyshMOFsoU8=; b=j9Jm7kESKRrUnY9oYuVIldpyqK24ckiIhm3uSFlkBgQlzy69bdRPblHOyIKHvXxLdG IN8KnnLlgYPNL083FXahCV8F+WNtKBTaUcK0K0FZZ8CDY86xUcIv+rT4IHCgX48ATWA7 mdQVJIOO7JUhripBSZOhiL01cv1iyA021O9auFXrIrGKJSnJIbl/muXkbLq/xSXr+l5P v8TUmOU65BGY/VZtsg3+PeHjF/E8IuJ+g18NDC9u3++F8KnJXcF2105ZiWOarGu6416R UmER2PpTnfe0pB285qBis1og9MXOjlvGoKDnqaDcMqLjK7hrlJpSZyqW10J2Fn0zHkiG CIPQ== X-Gm-Message-State: AOAM533aVcaPTYeqfAaQ5JRI/LvyCkJQyCbJdrd19+KJ8Hlw0LBXzXJ4 mKTROQAr/4gz8fClCvxgws5LAV+opCMTJW+WzLlwVw== X-Google-Smtp-Source: ABdhPJwwVmq7NGEko3UdFr9biKbqwODasLKwcst17ymPbICtg+iD4R3SuBca1sEMfh6IhSHDzezJIxVW26DqiIMKasg= X-Received: by 2002:a63:2209:: with SMTP id i9mr7606942pgi.130.1600123831327; Mon, 14 Sep 2020 15:50:31 -0700 (PDT) MIME-Version: 1.0 References: <5282f36a-8df7-a20e-4d1d-41d1230ba11f@gmail.com> <6717bdbb-56f4-ddec-bf21-7f79e0beb1a0@gmail.com> <5b50c0d2-170f-b204-68b8-f674524d58b9@gmail.com> In-Reply-To: <5b50c0d2-170f-b204-68b8-f674524d58b9@gmail.com> From: Andrey Konovalov Date: Tue, 15 Sep 2020 00:50:20 +0200 Message-ID: Subject: Re: [PATCH 00/35] kasan: add hardware tag-based mode for arm64 To: Derrick McKee X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200914_185034_039677_7447054E X-CRM114-Status: GOOD ( 18.05 ) 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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Sep 15, 2020 at 12:41 AM Derrick McKee wrote: > > 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? Hm, this should work I guess. Could you try CONFIG_KASAN_HW_TAGS=y and check if that works? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel