diff options
| author | Jaehoon Kim <jhkim@linux.ibm.com> | 2025-09-25 17:47:08 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-19 16:37:36 +0200 |
| commit | 4e6f98bf23cde3635ed3b63a8c65eb4b2ae79d55 (patch) | |
| tree | 7362815e312d9cccfd7c2598f517e5977bc78daf /tools/perf/scripts/python | |
| parent | 0a50182e6a94f670ea1b106d68ef74c18bb81100 (diff) | |
| download | kernel-4e6f98bf23cde3635ed3b63a8c65eb4b2ae79d55.tar.gz | |
s390/dasd: enforce dma_alignment to ensure proper buffer validation
commit 130e6de62107116eba124647116276266be0f84c upstream.
The block layer validates buffer alignment using the device's
dma_alignment value. If dma_alignment is smaller than
logical_block_size(bp_block) -1, misaligned buffer incorrectly pass
validation and propagate to the lower-level driver.
This patch adjusts dma_alignment to be at least logical_block_size -1,
ensuring that misalignment buffers are properly rejected at the block
layer and do not reach the DASD driver unnecessarily.
Fixes: 2a07bb64d801 ("s390/dasd: Remove DMA alignment")
Reviewed-by: Stefan Haberland <sth@linux.ibm.com>
Cc: stable@vger.kernel.org #6.11+
Signed-off-by: Jaehoon Kim <jhkim@linux.ibm.com>
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
