All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] dma-mapping: benchmark: fixes and error handling improvements
@ 2024-05-04 11:47 Fedor Pchelkin
  2024-05-04 11:47 ` [PATCH v2 1/4] dma-mapping: benchmark: fix up kthread-related error handling Fedor Pchelkin
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Fedor Pchelkin @ 2024-05-04 11:47 UTC (permalink / raw)
  To: Xiang Chen, Barry Song
  Cc: Fedor Pchelkin, Christoph Hellwig, Marek Szyprowski, Robin Murphy,
	iommu, linux-kernel, Alexey Khoroshilov, lvc-project

Some of the error paths inside do_map_benchmark() do not behave well.
There is also an insufficient node id validation and an out-of-bounds
access in NUMA_NO_NODE case.

Adjust these issues with the following patches.

Changelog
v2:
 * Rework kthread-related error handling patch (thanks to Robin Murphy) and
   merge patches 1/2 and 2/2 from v1 into a single patch - 1/4 in v2.
 * Three additional patches:
 * * Avoid needless copy_to_user if benchmark fails (suggested by Barry Song).
 * * Fix node id validation (found while testing the previous ones).
 * * Handle NUMA_NO_NODE correctly.
v1:
 * https://lore.kernel.org/linux-iommu/20240502161827.403338-1-pchelkin@ispras.ru/

Fedor Pchelkin (4):
  dma-mapping: benchmark: fix up kthread-related error handling
  dma-mapping: benchmark: avoid needless copy_to_user if benchmark fails
  dma-mapping: benchmark: fix node id validation
  dma-mapping: benchmark: handle NUMA_NO_NODE correctly

 kernel/dma/map_benchmark.c | 25 ++++++++++++++++---------
 1 file changed, 16 insertions(+), 9 deletions(-)

-- 
2.45.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-05-23 13:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-04 11:47 [PATCH v2 0/4] dma-mapping: benchmark: fixes and error handling improvements Fedor Pchelkin
2024-05-04 11:47 ` [PATCH v2 1/4] dma-mapping: benchmark: fix up kthread-related error handling Fedor Pchelkin
2024-05-10 17:35   ` Robin Murphy
2024-05-15 12:14     ` Fedor Pchelkin
2024-05-04 11:47 ` [PATCH v2 2/4] dma-mapping: benchmark: avoid needless copy_to_user if benchmark fails Fedor Pchelkin
2024-05-10 17:52   ` Robin Murphy
2024-05-04 11:47 ` [PATCH v2 3/4] dma-mapping: benchmark: fix node id validation Fedor Pchelkin
2024-05-10 17:45   ` Robin Murphy
2024-05-04 11:47 ` [PATCH v2 4/4] dma-mapping: benchmark: handle NUMA_NO_NODE correctly Fedor Pchelkin
2024-05-07  6:56   ` Barry Song
2024-05-23 13:10 ` [PATCH v2 0/4] dma-mapping: benchmark: fixes and error handling improvements Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.