summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorBaokun Li <libaokun1@huawei.com>2024-03-19 14:33:22 +0300
committerTheodore Ts'o <tytso@mit.edu>2024-05-03 06:48:30 +0300
commit63bfe841053f8dda09c9d059d543486d9dc16104 (patch)
treeda12e11e41e220f41f031e30efa1f83777b78800 /tools/perf/scripts/python/task-analyzer.py
parentb7b2a5799b8fafe95fcd5455c32ba2c643c86f99 (diff)
downloadlinux-63bfe841053f8dda09c9d059d543486d9dc16104.tar.xz
ext4: add positive int attr pointer to avoid sysfs variables overflow
The following variables controlled by the sysfs interface are of type int and are normally used in the range [0, INT_MAX], but are declared as attr_pointer_ui, and thus may be set to values that exceed INT_MAX and result in overflows to get negative values. err_ratelimit_burst msg_ratelimit_burst warning_ratelimit_burst err_ratelimit_interval_ms msg_ratelimit_interval_ms warning_ratelimit_interval_ms Therefore, we add attr_pointer_pi (aka positive int attr pointer) with a value range of 0-INT_MAX to avoid overflow. Signed-off-by: Baokun Li <libaokun1@huawei.com> Reviewed-by: Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/20240319113325.3110393-7-libaokun1@huawei.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions