================================================================== BUG: KCSAN: data-race in __bpf_lru_list_rotate / __htab_lru_percpu_map_update_elem write to 0xffff888134d616e3 of 1 bytes by task 9775 on cpu 0: bpf_lru_node_set_ref kernel/bpf/bpf_lru_list.h:70 [inline] __htab_lru_percpu_map_update_elem+0x402/0x850 kernel/bpf/hashtab.c:1291 bpf_percpu_hash_update+0x5a/0x90 kernel/bpf/hashtab.c:2216 bpf_map_update_value+0x1dd/0x2f0 kernel/bpf/syscall.c:198 generic_map_update_batch+0x36e/0x4d0 kernel/bpf/syscall.c:1413 bpf_map_do_batch+0x35d/0x3c0 __sys_bpf+0x568/0x600 __do_sys_bpf kernel/bpf/syscall.c:4767 [inline] __se_sys_bpf kernel/bpf/syscall.c:4765 [inline] __x64_sys_bpf+0x3f/0x50 kernel/bpf/syscall.c:4765 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888134d616e3 of 1 bytes by task 9773 on cpu 1: bpf_lru_node_is_ref kernel/bpf/bpf_lru_list.c:44 [inline] __bpf_lru_list_rotate_inactive kernel/bpf/bpf_lru_list.c:190 [inline] __bpf_lru_list_rotate+0x55f/0x7b0 kernel/bpf/bpf_lru_list.c:242 bpf_percpu_lru_pop_free kernel/bpf/bpf_lru_list.c:412 [inline] bpf_lru_pop_free+0x87/0xe90 kernel/bpf/bpf_lru_list.c:497 prealloc_lru_pop kernel/bpf/hashtab.c:290 [inline] __htab_lru_percpu_map_update_elem+0xe9/0x850 kernel/bpf/hashtab.c:1275 bpf_percpu_hash_update+0x5a/0x90 kernel/bpf/hashtab.c:2216 bpf_map_update_value+0x1dd/0x2f0 kernel/bpf/syscall.c:198 generic_map_update_batch+0x36e/0x4d0 kernel/bpf/syscall.c:1413 bpf_map_do_batch+0x35d/0x3c0 __sys_bpf+0x568/0x600 __do_sys_bpf kernel/bpf/syscall.c:4767 [inline] __se_sys_bpf kernel/bpf/syscall.c:4765 [inline] __x64_sys_bpf+0x3f/0x50 kernel/bpf/syscall.c:4765 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x00 -> 0x01 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 9773 Comm: syz-executor.4 Not tainted 5.18.0-rc7-syzkaller-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================