aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorJohn Garry <[email protected]>2025-07-29 09:14:47 +0000
committerJens Axboe <[email protected]>2025-07-29 12:24:45 +0000
commit448dfecc7ff807822ecd47a5c052acedca7d09e8 (patch)
treef452e8dfa243734bd7499c3f0391aa22d09c57f5 /tools/perf/scripts/python/mem-phys-addr.py
parentblock: Improve read ahead size for rotational devices (diff)
downloadkernel-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/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions