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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260108084208.30edd533@shazbot.org>
Date: Thu, 8 Jan 2026 08:42:08 -0700
From: Alex Williamson <alex@...zbot.org>
To: Alex Mastro <amastro@...com>
Cc: David Matlack <dmatlack@...gle.com>, Shuah Khan <shuah@...nel.org>,
 Peter Xu <peterx@...hat.com>, <linux-kernel@...r.kernel.org>,
 <kvm@...r.kernel.org>, <linux-kselftest@...r.kernel.org>, Jason Gunthorpe
 <jgg@...pe.ca>
Subject: Re: [PATCH] vfio: selftests: Add vfio_dma_mapping_mmio_test

On Wed, 7 Jan 2026 19:36:44 -0800
Alex Mastro <amastro@...com> wrote:
> On Wed, Jan 07, 2026 at 11:54:09PM +0000, David Matlack wrote:
> > 
> > Speaking of, maybe we can add a test that creating writable IOMMU
> > mappings fails for read-only BARs?  
> 
> I think I'll have to look into this as a follow-on. I'm not sure how to validate
> it yet without mocks or similar since I don't have such HW.

I think the read-only aspect would be in the mmap, not the BAR itself,
ie. can we create a read-write DMA mapping to a read-only mmap.

ROM BARs are the only BARs that are read-only, but they can share a
decoder with the standard BARs and therefore have a separate enable in
the BAR register itself.  Due to this, and their general usage, it's
never been necessary to allow mmap of the ROM BAR, therefore we cannot
actually DMA map the ROM BAR.  Thanks,

Alex

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ