Searched refs:KCSAN_ACCESS_WRITE (Results 1 – 9 of 9) sorted by relevance
/linux-6.6.21/include/linux/ |
D | kcsan-checks.h | 17 #define KCSAN_ACCESS_WRITE (1 << 0) /* Access is a write. */ macro 285 __kcsan_check_access(ptr, size, KCSAN_ACCESS_WRITE) 294 __kcsan_check_access(ptr, size, KCSAN_ACCESS_COMPOUND | KCSAN_ACCESS_WRITE) 311 kcsan_check_access(ptr, size, KCSAN_ACCESS_WRITE) 320 kcsan_check_access(ptr, size, KCSAN_ACCESS_COMPOUND | KCSAN_ACCESS_WRITE) 334 kcsan_check_access(ptr, size, KCSAN_ACCESS_ATOMIC | KCSAN_ACCESS_WRITE) 336 kcsan_check_access(ptr, size, KCSAN_ACCESS_ATOMIC | KCSAN_ACCESS_WRITE | KCSAN_ACCESS_COMPOUND) 452 __kcsan_check_access(&(var), sizeof(var), KCSAN_ACCESS_WRITE | KCSAN_ACCESS_ASSERT) 468 __ASSERT_EXCLUSIVE_SCOPED(var, KCSAN_ACCESS_WRITE | KCSAN_ACCESS_ASSERT, __COUNTER__)
|
/linux-6.6.21/kernel/kcsan/ |
D | kcsan_test.c | 41 #define __KCSAN_ACCESS_RW(alt) (KCSAN_ACCESS_COMPOUND | KCSAN_ACCESS_WRITE) 212 ((ty & KCSAN_ACCESS_WRITE) ? in __report_matches() 215 ((ty & KCSAN_ACCESS_WRITE) ? in __report_matches() 548 #define KCSAN_EXPECT_WRITE_BARRIER(b, o) __KCSAN_EXPECT_BARRIER(KCSAN_ACCESS_WRITE, b, o, #b) in test_barrier_nothreads() 549 …CT_RW_BARRIER(b, o) __KCSAN_EXPECT_BARRIER(KCSAN_ACCESS_COMPOUND | KCSAN_ACCESS_WRITE, b, o, #b) in test_barrier_nothreads() 717 { test_kernel_write, &test_var, sizeof(test_var), KCSAN_ACCESS_WRITE }, in test_basic() 749 { test_kernel_rmw_array, NULL, 0, __KCSAN_ACCESS_RW(KCSAN_ACCESS_WRITE) }, in test_concurrent_races() 777 { test_kernel_write_nochange, &test_var, sizeof(test_var), KCSAN_ACCESS_WRITE }, in test_novalue_change() 783 { test_kernel_write_nochange, &test_var, sizeof(test_var), KCSAN_ACCESS_WRITE }, in test_novalue_change() 784 { test_kernel_write_nochange, &test_var, sizeof(test_var), KCSAN_ACCESS_WRITE }, in test_novalue_change() [all …]
|
D | report.c | 217 if (type & KCSAN_ACCESS_WRITE) in get_access_type() 222 if (type & KCSAN_ACCESS_WRITE) in get_access_type() 234 case KCSAN_ACCESS_WRITE: in get_access_type() 236 case KCSAN_ACCESS_WRITE | KCSAN_ACCESS_ATOMIC: in get_access_type() 238 case KCSAN_ACCESS_COMPOUND | KCSAN_ACCESS_WRITE: in get_access_type() 240 case KCSAN_ACCESS_COMPOUND | KCSAN_ACCESS_WRITE | KCSAN_ACCESS_ATOMIC: in get_access_type() 246 case KCSAN_ACCESS_SCOPED | KCSAN_ACCESS_WRITE: in get_access_type() 248 case KCSAN_ACCESS_SCOPED | KCSAN_ACCESS_WRITE | KCSAN_ACCESS_ATOMIC: in get_access_type() 250 case KCSAN_ACCESS_SCOPED | KCSAN_ACCESS_COMPOUND | KCSAN_ACCESS_WRITE: in get_access_type() 252 case KCSAN_ACCESS_SCOPED | KCSAN_ACCESS_COMPOUND | KCSAN_ACCESS_WRITE | KCSAN_ACCESS_ATOMIC: in get_access_type()
|
D | core.c | 245 (type & KCSAN_ACCESS_WRITE) && size <= sizeof(long) && in is_atomic() 529 const bool is_write = (type & KCSAN_ACCESS_WRITE) != 0; in kcsan_setup_watchpoint() 738 !(type & KCSAN_ACCESS_WRITE), in check_access() 974 DEFINE_MEMORY_BARRIER(wmb, sa->type & (KCSAN_ACCESS_WRITE | KCSAN_ACCESS_COMPOUND)); 975 DEFINE_MEMORY_BARRIER(rmb, !(sa->type & KCSAN_ACCESS_WRITE) || (sa->type & KCSAN_ACCESS_COMPOUND)); 1004 check_access(ptr, size, KCSAN_ACCESS_WRITE, _RET_IP_); \ 1014 KCSAN_ACCESS_COMPOUND | KCSAN_ACCESS_WRITE, \ 1038 check_access(ptr, size, KCSAN_ACCESS_WRITE, _RET_IP_); in __tsan_write_range() 1074 KCSAN_ACCESS_WRITE | \ 1187 KCSAN_ACCESS_WRITE | KCSAN_ACCESS_ATOMIC, _RET_IP_); \ [all …]
|
D | selftest.c | 136 #define KCSAN_CHECK_WRITE_BARRIER(b) __KCSAN_CHECK_BARRIER(KCSAN_ACCESS_WRITE, b, #b) in test_barrier() 137 #define KCSAN_CHECK_RW_BARRIER(b) __KCSAN_CHECK_BARRIER(KCSAN_ACCESS_WRITE | KCSAN_ACCESS_COMPOU… in test_barrier()
|
D | debugfs.c | 83 (!(iters & 0xf) ? KCSAN_ACCESS_WRITE : 0); in microbenchmark()
|
/linux-6.6.21/mm/kfence/ |
D | core.c | 513 KCSAN_ACCESS_SCOPED | KCSAN_ACCESS_WRITE | KCSAN_ACCESS_ASSERT, in kfence_guarded_free()
|
/linux-6.6.21/mm/ |
D | slab.c | 3376 KCSAN_ACCESS_WRITE | KCSAN_ACCESS_ASSERT); in __cache_free()
|
D | slub.c | 1780 KCSAN_ACCESS_WRITE | KCSAN_ACCESS_ASSERT); in slab_free_hook()
|