Re: [v2] time: Validate the usec before covert to nsec in do_adjtimex

2019-07-08 Thread zhangxiaoxu (A)
在 2019/7/8 21:04, Thomas Gleixner 写道: On Mon, 8 Jul 2019, ZhangXiaoxu wrote: When covert the usec to nsec, it will multiple 1000, it maybe overflow and lead an undefined behavior. For example, users may input an negative tv_usec values when call adjtimex syscall, then multiple 1000 maybe ov

Re: [PATCH] time: Validate the usec before covert to nsec in do_adjtimex

2019-07-08 Thread zhangxiaoxu (A)
在 2019/7/8 17:24, Thomas Gleixner 写道: On Mon, 8 Jul 2019, ZhangXiaoxu wrote: When covert the usec to nsec, it will multiple 1000, it maybe overflow and lead an undefined behavior. For example, users may input an negative tv_usec values when call adjtimex syscall, then multiple 1000 maybe ov

Re: [PATCH] futex: Fix futex lock the wrong page

2019-06-11 Thread zhangxiaoxu (A)
This patch is for stable branch linux-4.4-y. On 2019/6/12 9:54, ZhangXiaoxu wrote: The upstram commit 65d8fc777f6d ("futex: Remove requirement for lock_page() in get_futex_key()") use variable 'page' as the page head, when merge it to stable branch, the variable `page_head` is page head. In the

Re: [PATCH] fs/buffer.c: Fix data corruption when buffer write with IO error

2019-04-09 Thread zhangxiaoxu (A)
On 4/8/2019 7:11 PM, Jan Kara wrote: On Sat 06-04-19 15:13:13, ZhangXiaoxu wrote: When the buffer write failed, 'end_buffer_write_sync' and 'end_buffer_async_write' will clear the uptodate flag. But the data in the buffer maybe newer than disk. In some case, this will lead data corruption. F