diff options
author | 2024-03-19 19:33:22 +0800 | |
---|---|---|
committer | 2024-05-02 23:48:30 -0400 | |
commit | 63bfe841053f8dda09c9d059d543486d9dc16104 (patch) | |
tree | da12e11e41e220f41f031e30efa1f83777b78800 /tools/perf/scripts/python/task-analyzer.py | |
parent | ext4: add new attr pointer attr_mb_order (diff) | |
download | wireguard-linux-63bfe841053f8dda09c9d059d543486d9dc16104.tar.xz wireguard-linux-63bfe841053f8dda09c9d059d543486d9dc16104.zip |
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