diff options
| author | John Garry <[email protected]> | 2025-07-29 09:14:47 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2025-07-29 12:24:45 +0000 |
| commit | 448dfecc7ff807822ecd47a5c052acedca7d09e8 (patch) | |
| tree | f452e8dfa243734bd7499c3f0391aa22d09c57f5 /tools/perf/scripts/python | |
| parent | block: Improve read ahead size for rotational devices (diff) | |
| download | kernel-448dfecc7ff807822ecd47a5c052acedca7d09e8.tar.gz kernel-448dfecc7ff807822ecd47a5c052acedca7d09e8.zip | |
block: avoid possible overflow for chunk_sectors check in blk_stack_limits()
In blk_stack_limits(), we check that the t->chunk_sectors value is a
multiple of the t->physical_block_size value.
However, by finding the chunk_sectors value in bytes, we may overflow
the unsigned int which holds chunk_sectors, so change the check to be
based on sectors.
Reviewed-by: Hannes Reinecke <[email protected]>
Reviewed-by: Martin K. Petersen <[email protected]>
Signed-off-by: John Garry <[email protected]>
Reviewed-by: Damien Le Moal <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
