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: NZhen Lei <thunder.leizhen@huawei.com> [Conflicts: fs/aio.c fs/compat.c Rebuild patch to apply for 4.19. ] Signed-off-by: Nyangerkun <yangerkun@huawei.com> Reviewed-by: NYang Yingliang <yangyingliang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录