Re: [patch] x86/ldt: make a size variable unsigned

2016-12-08 Thread Thomas Gleixner
On Thu, 8 Dec 2016, Dan Carpenter wrote: > My static checker complains that we put an upper bound on the "size" > variable but not a lower bound. The checker is not smart enough to know > the possible ranges of "old_mm->context.ldt->size" from > init_new_context_ldt() so it thinks maybe it could b

Re: [patch] x86/ldt: make a size variable unsigned

2016-12-08 Thread Andy Lutomirski
On Thu, Dec 8, 2016 at 2:56 AM, Dan Carpenter wrote: > My static checker complains that we put an upper bound on the "size" > variable but not a lower bound. The checker is not smart enough to know > the possible ranges of "old_mm->context.ldt->size" from > init_new_context_ldt() so it thinks may

[patch] x86/ldt: make a size variable unsigned

2016-12-08 Thread Dan Carpenter
My static checker complains that we put an upper bound on the "size" variable but not a lower bound. The checker is not smart enough to know the possible ranges of "old_mm->context.ldt->size" from init_new_context_ldt() so it thinks maybe it could be negative. Let's make it unsigned to silence th