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>] [day] [month] [year] [list]
Date:   Fri, 9 Dec 2022 13:47:08 -0800
From:   davide rossetti <davide.rossetti@...il.com>
To:     linux-kernel <linux-kernel@...r.kernel.org>
Subject: dma_to_phys on Intel CC platforms

looking at https://elixir.bootlin.com/linux/v6.1-rc8/source/include/linux/dma-direct.h#L86,
it looks like it assume the AMD CC convention, i.e. CC bit set means
encrypted:

static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t dma_addr)
{
phys_addr_t paddr;

if (dev->dma_range_map)
paddr = translate_dma_to_phys(dev, dma_addr);
else
paddr = dma_addr;

return __sme_clr(paddr);
}

What guarantees that this works on Intel too?

-- 
sincerely,
d.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ