diff options
author | 2023-05-22 15:25:33 +0800 | |
---|---|---|
committer | 2023-06-13 15:13:21 -0700 | |
commit | 6beb489b2eed25978523f379a605073f99240c50 (patch) | |
tree | 11ad58c24c74f3387b8eabee225bc7a9c3d7dead /tools/perf/scripts/python/export-to-postgresql.py | |
parent | md/raid5: fix a deadlock in the case that reshape is interrupted (diff) | |
download | wireguard-linux-6beb489b2eed25978523f379a605073f99240c50.tar.xz wireguard-linux-6beb489b2eed25978523f379a605073f99240c50.zip |
md/raid10: fix overflow of md/safe_mode_delay
There is no input check when echo md/safe_mode_delay in safe_delay_store().
And msec might also overflow when HZ < 1000 in safe_delay_show(), Fix it by
checking overflow in safe_delay_store() and use unsigned long conversion in
safe_delay_show().
Fixes: 72e02075a33f ("md: factor out parsing of fixed-point numbers")
Signed-off-by: Li Nan <linan122@huawei.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20230522072535.1523740-2-linan666@huaweicloud.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions