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: <d8876120-5478-4d2f-acad-b0a59261bbc5@linux.microsoft.com>
Date: Wed, 9 Apr 2025 08:36:43 -0700
From: Roman Kisel <romank@...ux.microsoft.com>
To: Christoph Hellwig <hch@....de>
Cc: aleksander.lobakin@...el.com, andriy.shevchenko@...ux.intel.com,
 arnd@...db.de, bp@...en8.de, catalin.marinas@....com, corbet@....net,
 dakr@...nel.org, dan.j.williams@...el.com, dave.hansen@...ux.intel.com,
 decui@...rosoft.com, gregkh@...uxfoundation.org, haiyangz@...rosoft.com,
 hpa@...or.com, James.Bottomley@...senPartnership.com,
 Jonathan.Cameron@...wei.com, kys@...rosoft.com, leon@...nel.org,
 lukas@...ner.de, luto@...nel.org, m.szyprowski@...sung.com,
 martin.petersen@...cle.com, mingo@...hat.com, peterz@...radead.org,
 quic_zijuhu@...cinc.com, robin.murphy@....com, tglx@...utronix.de,
 wei.liu@...nel.org, will@...nel.org, iommu@...ts.linux.dev,
 linux-arch@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
 linux-doc@...r.kernel.org, linux-hyperv@...r.kernel.org,
 linux-kernel@...r.kernel.org, linux-scsi@...r.kernel.org, x86@...nel.org,
 apais@...rosoft.com, benhill@...rosoft.com, bperkins@...rosoft.com,
 sunilmut@...rosoft.com
Subject: Re: [PATCH hyperv-next 6/6] drivers: SCSI: Do not bounce-bufffer for
 the confidential VMBus



On 4/9/2025 3:53 AM, Christoph Hellwig wrote:
> On Tue, Apr 08, 2025 at 05:08:35PM -0700, Roman Kisel wrote:
>> The device bit that indicates that the device is capable of I/O
>> with private pages lets avoid excessive copying in the Hyper-V
>> SCSI driver.
>>
>> Set that bit equal to the confidential external memory one to
>> not bounce buffer
> 
> Drivers have absolutely no business telling this.  The need for bounce
> buffering or not is a platform/IOMMU decision and not one specific to
> a certain device or driver.

Seemed to work although I cannot claim nothing is going to be broken
ever. It did appear from the code that one could have this per-device
bit.

As I understand, you're saying this is architecturally broken. Do you
think a broader set of changes would improve the implementation?

> 

-- 
Thank you,
Roman


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ