Re: PATCH: avoid possible integer overflow with cmp_range() in kernel/range.c

2014-11-25 Thread Yinghai Lu
tile should be: [PATCH] x86: On Tue, Nov 25, 2014 at 11:14 AM, Louis Langholtz wrote: > The cmp_range function (in kernel/range.c) is returning the difference > between two s64 values (actually coming from u64 typed variables) in an int > which can overflow (depending on the size of

PATCH: avoid possible integer overflow with cmp_range() in kernel/range.c

2014-11-25 Thread Louis Langholtz
The cmp_range function (in kernel/range.c) is returning the difference between two s64 values (actually coming from u64 typed variables) in an int which can overflow (depending on the size of int). This function is used as a compare function for linux's sort function (in lib/sort.c). Linux's

PATCH: avoid possible integer overflow with cmp_range() in kernel/range.c

2014-11-25 Thread Louis Langholtz
The cmp_range function (in kernel/range.c) is returning the difference between two s64 values (actually coming from u64 typed variables) in an int which can overflow (depending on the size of int). This function is used as a compare function for linux's sort function (in lib/sort.c). Linux's

Re: PATCH: avoid possible integer overflow with cmp_range() in kernel/range.c

2014-11-25 Thread Yinghai Lu
tile should be: [PATCH] x86: On Tue, Nov 25, 2014 at 11:14 AM, Louis Langholtz lou_langho...@me.com wrote: The cmp_range function (in kernel/range.c) is returning the difference between two s64 values (actually coming from u64 typed variables) in an int which can overflow (depending on