lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7F4D224A-A6A0-46BF-B008-A9E488257639@vmware.com>
Date:   Wed, 26 Apr 2023 21:04:43 +0000
From:   Nadav Amit <namit@...are.com>
To:     Jon Pan-Doh <pandoh@...gle.com>
CC:     Joerg Roedel <joro@...tes.org>,
        Suravee Suthikulpanit <suravee.suthikulpanit@....com>,
        Will Deacon <will@...nel.org>,
        Robin Murphy <robin.murphy@....com>,
        "iommu@...ts.linux.dev" <iommu@...ts.linux.dev>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        Sudheer Dantuluri <dantuluris@...gle.com>,
        Gary Zibrat <gzibrat@...gle.com>
Subject: Re: [PATCH] iommu/amd: Fix domain flush size when syncing iotlb



> On Apr 26, 2023, at 1:32 PM, Jon Pan-Doh <pandoh@...gle.com> wrote:
> 
> When running on an AMD vIOMMU, we observed multiple invalidations (of
> decreasing power of 2 aligned sizes) when unmapping a single page.
> 
> Domain flush takes gather bounds (end-start) as size param. However,
> gather->end is defined as the last inclusive address (start + size - 1).
> This leads to an off by 1 error.
> 
> With this patch, verified that 1 invalidation occurs when unmapping a
> single page.
> 
> Fixes: a270be1b3fdf ("iommu/amd: Use only natural aligned flushes in a VM")
> Signed-off-by: Jon Pan-Doh <pandoh@...gle.com>
> Tested-by: Sudheer Dantuluri <dantuluris@...gle.com>
> Suggested-by: Gary Zibrat <gzibrat@...gle.com>
> 

Sorry for that.

Acked-by: Nadav Amit <namit@...are.com>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ