Commit 43966c63 authored by Zhen Lei's avatar Zhen Lei Committed by Xie XiuQi
Browse files

aio: make sure the input "timeout" value is valid



euler inclusion
category: bugfix
bugzilla: NA
CVE: NA
-------------------------------------------------------------------------

UBSAN: Undefined behaviour in include/linux/ktime.h:55:34
signed integer overflow:
-4971973988617027584 * 1000000000 cannot be represented in type 'long int'
......
[<ffff80000072ca28>] timespec_to_ktime include/linux/ktime.h:55 [inline]
[<ffff80000072ca28>] read_events+0x4c8/0x5d0 fs/aio.c:1269
[<ffff8000007305bc>] SYSC_io_getevents fs/aio.c:1733 [inline]
[<ffff8000007305bc>] SyS_io_getevents+0xd4/0x218 fs/aio.c:1722

Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>

[Conflicts:
	fs/aio.c
	fs/compat.c
Rebuild patch to apply for 4.19.
]

Signed-off-by: default avataryangerkun <yangerkun@huawei.com>
Reviewed-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 2a2e4325
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment