Wang Long 6b4a35fc19 lib/test_kasan.c: make kmalloc_oob_krealloc_less more correctly
In kmalloc_oob_krealloc_less, I think it is better to test
the size2 boundary.

If we do not call krealloc, the access of position size1 will still cause
out-of-bounds and access of position size2 does not.  After call krealloc,
the access of position size2 cause out-of-bounds.  So using size2 is more
correct.

Signed-off-by: Wang Long <long.wanglong@huawei.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-09-10 13:29:01 -07:00
..
2015-08-25 21:13:16 +08:00
2015-07-27 14:06:24 +02:00
2015-05-28 11:31:52 +09:30
2015-07-17 16:39:53 -07:00
2015-09-08 14:35:59 -07:00
2015-07-28 08:50:42 +01:00
2015-09-08 14:35:59 -07:00
2015-03-23 22:12:08 -04:00
2015-06-25 17:00:40 -07:00
2015-06-25 17:00:40 -07:00
2015-07-20 10:52:48 -07:00