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: <aDQQyjJv9YKK_ZoV@infradead.org>
Date: Sun, 25 May 2025 23:57:14 -0700
From: Christoph Hellwig <hch@...radead.org>
To: Leon Romanovsky <leon@...nel.org>
Cc: linux-kernel@...r.kernel.org, linux-rdma@...r.kernel.org, jgg@...pe.ca,
	zyjzyj2000@...il.com, Daisuke Matsuda <dskmtsd@...il.com>,
	hch@...radead.org
Subject: Re: [PATCH for-next v3] RDMA/core: Avoid hmm_dma_map_alloc() for
 virtual DMA devices

On Sun, May 25, 2025 at 03:51:08AM -0400, Leon Romanovsky wrote:
> 
> On Sat, 24 May 2025 14:43:28 +0000, Daisuke Matsuda wrote:
> > Drivers such as rxe, which use virtual DMA, must not call into the DMA
> > mapping core since they lack physical DMA capabilities. Otherwise, a NULL
> > pointer dereference is observed as shown below. This patch ensures the RDMA
> > core handles virtual and physical DMA paths appropriately.
> > 
> > This fixes the following kernel oops:
> > 
> > [...]
> 
> Applied, thanks!

So while this version look correct, the idea of open coding the
virtual device version of hmm_dma_map directly in the ODP code
is a nasty leaky abstraction.  Please pull it into a proper ib_dma_*
wrapper.


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ