Lines Matching refs:size1
273 size_t size1, size_t size2) in krealloc_more_oob_helper() argument
278 KUNIT_ASSERT_LT(test, size1, size2); in krealloc_more_oob_helper()
279 middle = size1 + (size2 - size1) / 2; in krealloc_more_oob_helper()
281 ptr1 = kmalloc(size1, GFP_KERNEL); in krealloc_more_oob_helper()
288 ptr2[size1 - 1] = 'x'; in krealloc_more_oob_helper()
289 ptr2[size1] = 'x'; in krealloc_more_oob_helper()
305 size_t size1, size_t size2) in krealloc_less_oob_helper() argument
310 KUNIT_ASSERT_LT(test, size2, size1); in krealloc_less_oob_helper()
311 middle = size2 + (size1 - size2) / 2; in krealloc_less_oob_helper()
313 ptr1 = kmalloc(size1, GFP_KERNEL); in krealloc_less_oob_helper()
337 round_down(size1, KASAN_GRANULE_SIZE)); in krealloc_less_oob_helper()
339 KUNIT_EXPECT_KASAN_FAIL(test, ptr2[size1 - 1] = 'x'); in krealloc_less_oob_helper()
340 KUNIT_EXPECT_KASAN_FAIL(test, ptr2[size1] = 'x'); in krealloc_less_oob_helper()
380 int size1 = 201; in krealloc_uaf() local
383 ptr1 = kmalloc(size1, GFP_KERNEL); in krealloc_uaf()