diff options
author | 2024-03-19 19:33:23 +0800 | |
---|---|---|
committer | 2024-05-02 23:48:31 -0400 | |
commit | 9a9f3a9842927e4af7ca10c19c94dad83bebd713 (patch) | |
tree | 8991341047e6829e7263a58a8b2fad8f3ddbab3b /tools/perf/scripts/python/export-to-sqlite.py | |
parent | ext4: add positive int attr pointer to avoid sysfs variables overflow (diff) | |
download | wireguard-linux-9a9f3a9842927e4af7ca10c19c94dad83bebd713.tar.xz wireguard-linux-9a9f3a9842927e4af7ca10c19c94dad83bebd713.zip |
ext4: set type of ac_groups_linear_remaining to __u32 to avoid overflow
Now ac_groups_linear_remaining is of type __u16 and s_mb_max_linear_groups
is of type unsigned int, so an overflow occurs when setting a value above
65535 through the mb_max_linear_groups sysfs interface. Therefore, the
type of ac_groups_linear_remaining is set to __u32 to avoid overflow.
Fixes: 196e402adf2e ("ext4: improve cr 0 / cr 1 group scanning")
CC: stable@kernel.org
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20240319113325.3110393-8-libaokun1@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions