diff options
author | Li Nan <linan122@huawei.com> | 2023-05-22 15:25:33 +0800 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2023-06-13 15:13:21 -0700 |
commit | 6beb489b2eed25978523f379a605073f99240c50 (patch) | |
tree | 11ad58c24c74f3387b8eabee225bc7a9c3d7dead /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 868bba54a3bcbfc34314e963d5a7e66717f39d4e (diff) |
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