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

2019-07-08 Thread Richard Cochran
On Mon, Jul 08, 2019 at 03:55:04PM +0800, 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 overflow it > t

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] time: Validate the usec before covert to nsec in do_adjtimex

2019-07-08 Thread 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 overflow it > to a positive and lega