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: <aGKNaKvndRhQhwwE@smile.fi.intel.com>
Date: Mon, 30 Jun 2025 16:13:12 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Jiri Slaby <jirislaby@...nel.org>
Cc: Thomas Fourier <fourier.thomas@...il.com>,
	Tomoya MORINAGA <tomoya-linux@....okisemi.com>,
	linux-kernel@...r.kernel.org, linux-serial@...r.kernel.org
Subject: Re: [PATCH v2] pch_uart: Fix dma_sync_sg_for_device() nents value

On Mon, Jun 30, 2025 at 03:01:01PM +0200, Jiri Slaby wrote:
> On 30. 06. 25, 14:10, Thomas Fourier wrote:
> > The dma_sync_sg_for_device() functions should be called with the same
> > nents as the dma_map_sg(), not the value the map function returned.
> 
> Care to explain why do you intend to sync more than mapped? "should be
> called" is way to vague.

It's documented as the correct use of the DMA streaming API.
Should we go deeper and understand why?

-- 
With Best Regards,
Andy Shevchenko



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ