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]
Date:   Mon, 13 Dec 2021 23:40:21 -0500
From:   "Martin K. Petersen" <martin.petersen@...cle.com>
To:     John Garry <john.garry@...wei.com>, jejb@...ux.ibm.com,
        jinpu.wang@...ud.ionos.com
Cc:     "Martin K . Petersen" <martin.petersen@...cle.com>,
        damien.lemoal@...nsource.wdc.com, linux-kernel@...r.kernel.org,
        Viswas.G@...rochip.com, Ajish.Koshy@...rochip.com,
        linux-scsi@...r.kernel.org
Subject: Re: [PATCH v3] scsi: pm8001: Fix phys_to_virt() usage on dma_addr_t

On Mon, 13 Dec 2021 18:10:48 +0800, John Garry wrote:

> The driver supports a "direct" mode of operation, where the SMP req frame
> is directly copied into the command payload (and vice-versa for the SMP
> resp).
> 
> To get at the SMP req frame data in the scatterlist the driver uses
> phys_to_virt() on the DMA mapped memory dma_addr_t . This is broken,
> and subsequently crashes as follows when an IOMMU is enabled:
> 
> [...]

Applied to 5.16/scsi-fixes, thanks!

[1/1] scsi: pm8001: Fix phys_to_virt() usage on dma_addr_t
      https://git.kernel.org/mkp/scsi/c/2fe24343922e

-- 
Martin K. Petersen	Oracle Linux Engineering

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ