Searched refs:unconst (Results 1 - 4 of 4) sorted by relevance
/linux-master/drivers/misc/lkdtm/ |
H A D | usercopy.c | 19 * hardened usercopy checks by added "unconst" to all the const copies, 22 static volatile size_t unconst; variable 34 return stack + unconst; 92 unconst + sizeof(good_stack))) { 99 unconst + sizeof(good_stack))) { 113 unconst + sizeof(good_stack))) { 120 unconst + sizeof(good_stack))) { 140 size_t size = unconst + 1024; 237 offset = (cache_size / 4) + unconst; 238 size = (cache_size / 16) + unconst; [all...] |
/linux-master/lib/ |
H A D | fortify_kunit.c | 404 static volatile int unconst; variable 539 sizeof(pad.buf) + unconst - 1) 549 sizeof(pad.buf) + unconst) 561 sizeof(pad.buf) + unconst + 1) 573 sizeof(pad.buf) + unconst + 2) 598 sizeof(pad.buf) + unconst - 1), 608 sizeof(pad.buf) + unconst), 618 sizeof(pad.buf) + unconst + 1), 630 sizeof(src) * 2 + unconst), 776 int len = sizeof(pad.buf) + unconst; [all...] |
H A D | string_kunit.c | 448 static volatile int unconst; variable 477 KUNIT_EXPECT_TRUE(test, strncat(dest, "", 0 + unconst) == dest); 480 KUNIT_EXPECT_TRUE(test, strncat(dest, "", 1 + unconst) == dest); 483 KUNIT_EXPECT_TRUE(test, strncat(dest, "asdf", 0 + unconst) == dest); 487 KUNIT_EXPECT_TRUE(test, strncat(dest, "four\000123", 8 + unconst) == dest); 492 KUNIT_EXPECT_TRUE(test, strncat(dest, "ABCD", 2 + unconst) == dest); 499 int len = sizeof(dest) + unconst; 507 KUNIT_EXPECT_EQ(test, strlcat(dest, "four", 1 + unconst), 4); 517 KUNIT_EXPECT_EQ(test, strlcat(dest, "CD", 7 + unconst), 8);
|
H A D | overflow_kunit.c | 714 volatile int unconst = 0; local 770 check_one_size_helper(0, flex_array_size, obj, data, 0 + unconst); 772 flex_array_size, obj, data, 1 + unconst); 774 flex_array_size, obj, data, 7 + unconst); 776 flex_array_size, obj, data, -1 + unconst); 778 flex_array_size, obj, data, SIZE_MAX - 4 + unconst); 785 check_one_size_helper(sizeof(*obj), struct_size, obj, data, 0 + unconst); 787 struct_size, obj, data, 1 + unconst); 789 struct_size, obj, data, -3 + unconst); 791 struct_size, obj, data, SIZE_MAX - 3 + unconst); [all...] |
Completed in 91 milliseconds