syzbot


KCSAN: data-race in __bpf_lru_list_rotate / __htab_lru_percpu_map_update_elem (4)

Status: auto-obsoleted due to no activity on 2023/03/24 04:11
Subsystems: bpf
[Documentation on labels]
First crash: 662d, last: 662d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __bpf_lru_list_rotate / __htab_lru_percpu_map_update_elem (2) bpf 2 1413d 1440d 0/28 auto-closed as invalid on 2021/02/23 14:15
upstream KCSAN: data-race in __bpf_lru_list_rotate / __htab_lru_percpu_map_update_elem (3) bpf 91 731d 1087d 0/28 auto-obsoleted due to no activity on 2023/01/14 15:11
upstream KCSAN: data-race in __bpf_lru_list_rotate / __htab_lru_percpu_map_update_elem (5) bpf 13 526d 588d 23/28 fixed on 2023/09/28 17:51
upstream KCSAN: data-race in __bpf_lru_list_rotate / __htab_lru_percpu_map_update_elem bpf 12 1518d 1599d 0/28 auto-closed as invalid on 2020/11/11 05:04

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __bpf_lru_list_rotate / __htab_lru_percpu_map_update_elem

write to 0xffff88813d26d42b of 1 bytes by task 14032 on cpu 0:
 bpf_lru_node_set_ref kernel/bpf/bpf_lru_list.h:71 [inline]
 __htab_lru_percpu_map_update_elem+0x3ce/0x800 kernel/bpf/hashtab.c:1334
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88813d26d42b of 1 bytes by task 14021 on cpu 1:
 bpf_lru_node_is_ref kernel/bpf/bpf_lru_list.c:44 [inline]
 __bpf_lru_list_rotate_active kernel/bpf/bpf_lru_list.c:148 [inline]
 __bpf_lru_list_rotate+0xd4/0x750 kernel/bpf/bpf_lru_list.c:240
 bpf_lru_list_pop_free_to_local kernel/bpf/bpf_lru_list.c:329 [inline]
 bpf_common_lru_pop_free kernel/bpf/bpf_lru_list.c:447 [inline]
 bpf_lru_pop_free+0x671/0xe10 kernel/bpf/bpf_lru_list.c:499
 prealloc_lru_pop kernel/bpf/hashtab.c:290 [inline]
 __htab_lru_percpu_map_update_elem+0xec/0x800 kernel/bpf/hashtab.c:1318
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14021 Comm: syz-executor.2 Not tainted 6.2.0-rc7-syzkaller-00091-g35674e787518-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
==================================================================
==================================================================
BUG: KCSAN: data-race in __htab_lru_percpu_map_update_elem / bpf_lru_pop_free

write to 0xffff88813d26d42b of 1 bytes by task 14032 on cpu 0:
 bpf_lru_node_set_ref kernel/bpf/bpf_lru_list.h:71 [inline]
 __htab_lru_percpu_map_update_elem+0x3ce/0x800 kernel/bpf/hashtab.c:1334
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88813d26d42b of 1 bytes by task 14021 on cpu 1:
 bpf_lru_node_is_ref kernel/bpf/bpf_lru_list.c:44 [inline]
 __local_list_flush kernel/bpf/bpf_lru_list.c:297 [inline]
 bpf_lru_list_pop_free_to_local kernel/bpf/bpf_lru_list.c:327 [inline]
 bpf_common_lru_pop_free kernel/bpf/bpf_lru_list.c:447 [inline]
 bpf_lru_pop_free+0x2ac/0xe10 kernel/bpf/bpf_lru_list.c:499
 prealloc_lru_pop kernel/bpf/hashtab.c:290 [inline]
 __htab_lru_percpu_map_update_elem+0xec/0x800 kernel/bpf/hashtab.c:1318
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14021 Comm: syz-executor.2 Not tainted 6.2.0-rc7-syzkaller-00091-g35674e787518-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
==================================================================
==================================================================
BUG: KCSAN: data-race in __htab_lru_percpu_map_update_elem / bpf_lru_pop_free

read to 0xffff88813d26d42b of 1 bytes by task 14032 on cpu 0:
 bpf_lru_node_set_ref kernel/bpf/bpf_lru_list.h:70 [inline]
 __htab_lru_percpu_map_update_elem+0x30b/0x800 kernel/bpf/hashtab.c:1334
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

write to 0xffff88813d26d42b of 1 bytes by task 14021 on cpu 1:
 __bpf_lru_node_move_in kernel/bpf/bpf_lru_list.c:92 [inline]
 __local_list_flush kernel/bpf/bpf_lru_list.c:300 [inline]
 bpf_lru_list_pop_free_to_local kernel/bpf/bpf_lru_list.c:327 [inline]
 bpf_common_lru_pop_free kernel/bpf/bpf_lru_list.c:447 [inline]
 bpf_lru_pop_free+0x39f/0xe10 kernel/bpf/bpf_lru_list.c:499
 prealloc_lru_pop kernel/bpf/hashtab.c:290 [inline]
 __htab_lru_percpu_map_update_elem+0xec/0x800 kernel/bpf/hashtab.c:1318
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14021 Comm: syz-executor.2 Not tainted 6.2.0-rc7-syzkaller-00091-g35674e787518-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
==================================================================
==================================================================
BUG: KCSAN: data-race in __bpf_lru_list_rotate / __htab_lru_percpu_map_update_elem

write to 0xffff88813d26d42b of 1 bytes by task 14032 on cpu 1:
 __bpf_lru_node_move kernel/bpf/bpf_lru_list.c:113 [inline]
 __bpf_lru_list_rotate_inactive kernel/bpf/bpf_lru_list.c:191 [inline]
 __bpf_lru_list_rotate+0x5e5/0x750 kernel/bpf/bpf_lru_list.c:242
 bpf_lru_list_pop_free_to_local kernel/bpf/bpf_lru_list.c:329 [inline]
 bpf_common_lru_pop_free kernel/bpf/bpf_lru_list.c:447 [inline]
 bpf_lru_pop_free+0x671/0xe10 kernel/bpf/bpf_lru_list.c:499
 prealloc_lru_pop kernel/bpf/hashtab.c:290 [inline]
 __htab_lru_percpu_map_update_elem+0xec/0x800 kernel/bpf/hashtab.c:1318
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88813d26d42b of 1 bytes by task 14021 on cpu 0:
 bpf_lru_node_set_ref kernel/bpf/bpf_lru_list.h:70 [inline]
 __htab_lru_percpu_map_update_elem+0x30b/0x800 kernel/bpf/hashtab.c:1334
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x01 -> 0x00

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 14021 Comm: syz-executor.2 Not tainted 6.2.0-rc7-syzkaller-00091-g35674e787518-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
==================================================================
==================================================================
BUG: KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem

write to 0xffff88813d26d3e3 of 1 bytes by task 14032 on cpu 0:
 __bpf_lru_node_move kernel/bpf/bpf_lru_list.c:113 [inline]
 __bpf_lru_list_shrink_inactive kernel/bpf/bpf_lru_list.c:219 [inline]
 __bpf_lru_list_shrink+0x20c/0x6c0 kernel/bpf/bpf_lru_list.c:266
 bpf_lru_list_pop_free_to_local kernel/bpf/bpf_lru_list.c:340 [inline]
 bpf_common_lru_pop_free kernel/bpf/bpf_lru_list.c:447 [inline]
 bpf_lru_pop_free+0x874/0xe10 kernel/bpf/bpf_lru_list.c:499
 prealloc_lru_pop kernel/bpf/hashtab.c:290 [inline]
 __htab_lru_percpu_map_update_elem+0xec/0x800 kernel/bpf/hashtab.c:1318
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88813d26d3e3 of 1 bytes by task 14021 on cpu 1:
 bpf_lru_node_set_ref kernel/bpf/bpf_lru_list.h:70 [inline]
 __htab_lru_percpu_map_update_elem+0x30b/0x800 kernel/bpf/hashtab.c:1334
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x01 -> 0x00

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14021 Comm: syz-executor.2 Not tainted 6.2.0-rc7-syzkaller-00091-g35674e787518-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
==================================================================
==================================================================
BUG: KCSAN: data-race in __bpf_lru_list_rotate / __htab_lru_percpu_map_update_elem

write to 0xffff88813d26d42b of 1 bytes by task 14032 on cpu 0:
 bpf_lru_node_set_ref kernel/bpf/bpf_lru_list.h:71 [inline]
 __htab_lru_percpu_map_update_elem+0x3ce/0x800 kernel/bpf/hashtab.c:1334
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88813d26d42b of 1 bytes by task 14021 on cpu 1:
 bpf_lru_node_is_ref kernel/bpf/bpf_lru_list.c:44 [inline]
 __bpf_lru_list_rotate_active kernel/bpf/bpf_lru_list.c:148 [inline]
 __bpf_lru_list_rotate+0xd4/0x750 kernel/bpf/bpf_lru_list.c:240
 bpf_lru_list_pop_free_to_local kernel/bpf/bpf_lru_list.c:329 [inline]
 bpf_common_lru_pop_free kernel/bpf/bpf_lru_list.c:447 [inline]
 bpf_lru_pop_free+0x671/0xe10 kernel/bpf/bpf_lru_list.c:499
 prealloc_lru_pop kernel/bpf/hashtab.c:290 [inline]
 __htab_lru_percpu_map_update_elem+0xec/0x800 kernel/bpf/hashtab.c:1318
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14021 Comm: syz-executor.2 Not tainted 6.2.0-rc7-syzkaller-00091-g35674e787518-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
==================================================================
==================================================================
BUG: KCSAN: data-race in __bpf_lru_list_rotate / __htab_lru_percpu_map_update_elem

read to 0xffff88813d26d42b of 1 bytes by task 14032 on cpu 0:
 bpf_lru_node_set_ref kernel/bpf/bpf_lru_list.h:70 [inline]
 __htab_lru_percpu_map_update_elem+0x30b/0x800 kernel/bpf/hashtab.c:1334
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

write to 0xffff88813d26d42b of 1 bytes by task 14021 on cpu 1:
 __bpf_lru_node_move kernel/bpf/bpf_lru_list.c:113 [inline]
 __bpf_lru_list_rotate_active kernel/bpf/bpf_lru_list.c:151 [inline]
 __bpf_lru_list_rotate+0x2fe/0x750 kernel/bpf/bpf_lru_list.c:240
 bpf_lru_list_pop_free_to_local kernel/bpf/bpf_lru_list.c:329 [inline]
 bpf_common_lru_pop_free kernel/bpf/bpf_lru_list.c:447 [inline]
 bpf_lru_pop_free+0x671/0xe10 kernel/bpf/bpf_lru_list.c:499
 prealloc_lru_pop kernel/bpf/hashtab.c:290 [inline]
 __htab_lru_percpu_map_update_elem+0xec/0x800 kernel/bpf/hashtab.c:1318
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14021 Comm: syz-executor.2 Not tainted 6.2.0-rc7-syzkaller-00091-g35674e787518-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
==================================================================
==================================================================
BUG: KCSAN: data-race in __bpf_lru_list_rotate / __htab_lru_percpu_map_update_elem

write to 0xffff88813d26d42b of 1 bytes by task 14032 on cpu 0:
 bpf_lru_node_set_ref kernel/bpf/bpf_lru_list.h:71 [inline]
 __htab_lru_percpu_map_update_elem+0x3ce/0x800 kernel/bpf/hashtab.c:1334
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88813d26d42b of 1 bytes by task 14021 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+0x528/0x750 kernel/bpf/bpf_lru_list.c:242
 bpf_lru_list_pop_free_to_local kernel/bpf/bpf_lru_list.c:329 [inline]
 bpf_common_lru_pop_free kernel/bpf/bpf_lru_list.c:447 [inline]
 bpf_lru_pop_free+0x671/0xe10 kernel/bpf/bpf_lru_list.c:499
 prealloc_lru_pop kernel/bpf/hashtab.c:290 [inline]
 __htab_lru_percpu_map_update_elem+0xec/0x800 kernel/bpf/hashtab.c:1318
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14021 Comm: syz-executor.2 Not tainted 6.2.0-rc7-syzkaller-00091-g35674e787518-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
==================================================================
==================================================================
BUG: KCSAN: data-race in __htab_lru_percpu_map_update_elem / bpf_lru_pop_free

read to 0xffff88813d26d42b of 1 bytes by task 14032 on cpu 0:
 bpf_lru_node_set_ref kernel/bpf/bpf_lru_list.h:70 [inline]
 __htab_lru_percpu_map_update_elem+0x30b/0x800 kernel/bpf/hashtab.c:1334
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

write to 0xffff88813d26d42b of 1 bytes by task 14021 on cpu 1:
 __bpf_lru_node_move_in kernel/bpf/bpf_lru_list.c:92 [inline]
 __local_list_flush kernel/bpf/bpf_lru_list.c:300 [inline]
 bpf_lru_list_pop_free_to_local kernel/bpf/bpf_lru_list.c:327 [inline]
 bpf_common_lru_pop_free kernel/bpf/bpf_lru_list.c:447 [inline]
 bpf_lru_pop_free+0x39f/0xe10 kernel/bpf/bpf_lru_list.c:499
 prealloc_lru_pop kernel/bpf/hashtab.c:290 [inline]
 __htab_lru_percpu_map_update_elem+0xec/0x800 kernel/bpf/hashtab.c:1318
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14021 Comm: syz-executor.2 Not tainted 6.2.0-rc7-syzkaller-00091-g35674e787518-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
==================================================================
==================================================================
BUG: KCSAN: data-race in __bpf_lru_list_rotate / __htab_lru_percpu_map_update_elem

write to 0xffff88813d26d3e3 of 1 bytes by task 14032 on cpu 0:
 __bpf_lru_node_move kernel/bpf/bpf_lru_list.c:113 [inline]
 __bpf_lru_list_rotate_active kernel/bpf/bpf_lru_list.c:149 [inline]
 __bpf_lru_list_rotate+0x1bf/0x750 kernel/bpf/bpf_lru_list.c:240
 bpf_lru_list_pop_free_to_local kernel/bpf/bpf_lru_list.c:329 [inline]
 bpf_common_lru_pop_free kernel/bpf/bpf_lru_list.c:447 [inline]
 bpf_lru_pop_free+0x671/0xe10 kernel/bpf/bpf_lru_list.c:499
 prealloc_lru_pop kernel/bpf/hashtab.c:290 [inline]
 __htab_lru_percpu_map_update_elem+0xec/0x800 kernel/bpf/hashtab.c:1318
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88813d26d3e3 of 1 bytes by task 14021 on cpu 1:
 bpf_lru_node_set_ref kernel/bpf/bpf_lru_list.h:70 [inline]
 __htab_lru_percpu_map_update_elem+0x30b/0x800 kernel/bpf/hashtab.c:1334
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x01 -> 0x00

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14021 Comm: syz-executor.2 Not tainted 6.2.0-rc7-syzkaller-00091-g35674e787518-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
==================================================================
==================================================================
BUG: KCSAN: data-race in __htab_lru_percpu_map_update_elem / bpf_lru_pop_free

write to 0xffff88813d26d3e3 of 1 bytes by task 14032 on cpu 0:
 __bpf_lru_node_move_in kernel/bpf/bpf_lru_list.c:92 [inline]
 __local_list_flush kernel/bpf/bpf_lru_list.c:298 [inline]
 bpf_lru_list_pop_free_to_local kernel/bpf/bpf_lru_list.c:327 [inline]
 bpf_common_lru_pop_free kernel/bpf/bpf_lru_list.c:447 [inline]
 bpf_lru_pop_free+0x318/0xe10 kernel/bpf/bpf_lru_list.c:499
 prealloc_lru_pop kernel/bpf/hashtab.c:290 [inline]
 __htab_lru_percpu_map_update_elem+0xec/0x800 kernel/bpf/hashtab.c:1318
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88813d26d3e3 of 1 bytes by task 14021 on cpu 1:
 bpf_lru_node_set_ref kernel/bpf/bpf_lru_list.h:70 [inline]
 __htab_lru_percpu_map_update_elem+0x30b/0x800 kernel/bpf/hashtab.c:1334
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x01 -> 0x00

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14021 Comm: syz-executor.2 Not tainted 6.2.0-rc7-syzkaller-00091-g35674e787518-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
==================================================================
==================================================================
BUG: KCSAN: data-race in __htab_lru_percpu_map_update_elem / bpf_lru_pop_free

write to 0xffff88813d26d42b of 1 bytes by task 14032 on cpu 0:
 bpf_lru_node_set_ref kernel/bpf/bpf_lru_list.h:71 [inline]
 __htab_lru_percpu_map_update_elem+0x3ce/0x800 kernel/bpf/hashtab.c:1334
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88813d26d42b of 1 bytes by task 14021 on cpu 1:
 bpf_lru_node_is_ref kernel/bpf/bpf_lru_list.c:44 [inline]
 __local_list_flush kernel/bpf/bpf_lru_list.c:297 [inline]
 bpf_lru_list_pop_free_to_local kernel/bpf/bpf_lru_list.c:327 [inline]
 bpf_common_lru_pop_free kernel/bpf/bpf_lru_list.c:447 [inline]
 bpf_lru_pop_free+0x2ac/0xe10 kernel/bpf/bpf_lru_list.c:499
 prealloc_lru_pop kernel/bpf/hashtab.c:290 [inline]
 __htab_lru_percpu_map_update_elem+0xec/0x800 kernel/bpf/hashtab.c:1318
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14021 Comm: syz-executor.2 Not tainted 6.2.0-rc7-syzkaller-00091-g35674e787518-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
==================================================================
==================================================================
BUG: KCSAN: data-race in __htab_lru_percpu_map_update_elem / bpf_lru_pop_free

write to 0xffff88813d26d3e3 of 1 bytes by task 14032 on cpu 0:
 __bpf_lru_node_move_in kernel/bpf/bpf_lru_list.c:92 [inline]
 __local_list_flush kernel/bpf/bpf_lru_list.c:300 [inline]
 bpf_lru_list_pop_free_to_local kernel/bpf/bpf_lru_list.c:327 [inline]
 bpf_common_lru_pop_free kernel/bpf/bpf_lru_list.c:447 [inline]
 bpf_lru_pop_free+0x39f/0xe10 kernel/bpf/bpf_lru_list.c:499
 prealloc_lru_pop kernel/bpf/hashtab.c:290 [inline]
 __htab_lru_percpu_map_update_elem+0xec/0x800 kernel/bpf/hashtab.c:1318
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88813d26d3e3 of 1 bytes by task 14021 on cpu 1:
 bpf_lru_node_set_ref kernel/bpf/bpf_lru_list.h:70 [inline]
 __htab_lru_percpu_map_update_elem+0x30b/0x800 kernel/bpf/hashtab.c:1334
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x01 -> 0x00

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14021 Comm: syz-executor.2 Not tainted 6.2.0-rc7-syzkaller-00091-g35674e787518-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
==================================================================
==================================================================
BUG: KCSAN: data-race in __htab_lru_percpu_map_update_elem / bpf_lru_pop_free

write to 0xffff88813d26d3e3 of 1 bytes by task 14032 on cpu 0:
 __bpf_lru_node_move_in kernel/bpf/bpf_lru_list.c:92 [inline]
 __local_list_flush kernel/bpf/bpf_lru_list.c:298 [inline]
 bpf_lru_list_pop_free_to_local kernel/bpf/bpf_lru_list.c:327 [inline]
 bpf_common_lru_pop_free kernel/bpf/bpf_lru_list.c:447 [inline]
 bpf_lru_pop_free+0x318/0xe10 kernel/bpf/bpf_lru_list.c:499
 prealloc_lru_pop kernel/bpf/hashtab.c:290 [inline]
 __htab_lru_percpu_map_update_elem+0xec/0x800 kernel/bpf/hashtab.c:1318
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88813d26d3e3 of 1 bytes by task 14021 on cpu 1:
 bpf_lru_node_set_ref kernel/bpf/bpf_lru_list.h:70 [inline]
 __htab_lru_percpu_map_update_elem+0x30b/0x800 kernel/bpf/hashtab.c:1334
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x01 -> 0x00

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14021 Comm: syz-executor.2 Not tainted 6.2.0-rc7-syzkaller-00091-g35674e787518-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
==================================================================
==================================================================
BUG: KCSAN: data-race in __bpf_lru_list_rotate / __htab_lru_percpu_map_update_elem

write to 0xffff88813d26d3e3 of 1 bytes by task 14032 on cpu 0:
 __bpf_lru_node_move kernel/bpf/bpf_lru_list.c:113 [inline]
 __bpf_lru_list_rotate_active kernel/bpf/bpf_lru_list.c:149 [inline]
 __bpf_lru_list_rotate+0x1bf/0x750 kernel/bpf/bpf_lru_list.c:240
 bpf_lru_list_pop_free_to_local kernel/bpf/bpf_lru_list.c:329 [inline]
 bpf_common_lru_pop_free kernel/bpf/bpf_lru_list.c:447 [inline]
 bpf_lru_pop_free+0x671/0xe10 kernel/bpf/bpf_lru_list.c:499
 prealloc_lru_pop kernel/bpf/hashtab.c:290 [inline]
 __htab_lru_percpu_map_update_elem+0xec/0x800 kernel/bpf/hashtab.c:1318
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88813d26d3e3 of 1 bytes by task 14021 on cpu 1:
 bpf_lru_node_set_ref kernel/bpf/bpf_lru_list.h:70 [inline]
 __htab_lru_percpu_map_update_elem+0x30b/0x800 kernel/bpf/hashtab.c:1334
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x01 -> 0x00

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14021 Comm: syz-executor.2 Not tainted 6.2.0-rc7-syzkaller-00091-g35674e787518-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
==================================================================
==================================================================
BUG: KCSAN: data-race in __bpf_lru_list_rotate / __htab_lru_percpu_map_update_elem

write to 0xffff88813d26d42b of 1 bytes by task 14032 on cpu 0:
 bpf_lru_node_set_ref kernel/bpf/bpf_lru_list.h:71 [inline]
 __htab_lru_percpu_map_update_elem+0x3ce/0x800 kernel/bpf/hashtab.c:1334
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88813d26d42b of 1 bytes by task 14021 on cpu 1:
 bpf_lru_node_is_ref kernel/bpf/bpf_lru_list.c:44 [inline]
 __bpf_lru_list_rotate_active kernel/bpf/bpf_lru_list.c:148 [inline]
 __bpf_lru_list_rotate+0xd4/0x750 kernel/bpf/bpf_lru_list.c:240
 bpf_lru_list_pop_free_to_local kernel/bpf/bpf_lru_list.c:329 [inline]
 bpf_common_lru_pop_free kernel/bpf/bpf_lru_list.c:447 [inline]
 bpf_lru_pop_free+0x671/0xe10 kernel/bpf/bpf_lru_list.c:499
 prealloc_lru_pop kernel/bpf/hashtab.c:290 [inline]
 __htab_lru_percpu_map_update_elem+0xec/0x800 kernel/bpf/hashtab.c:1318
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14021 Comm: syz-executor.2 Not tainted 6.2.0-rc7-syzkaller-00091-g35674e787518-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
==================================================================
==================================================================
BUG: KCSAN: data-race in __bpf_lru_list_rotate / __htab_lru_percpu_map_update_elem

write to 0xffff88813d26d42b of 1 bytes by task 14032 on cpu 0:
 bpf_lru_node_set_ref kernel/bpf/bpf_lru_list.h:71 [inline]
 __htab_lru_percpu_map_update_elem+0x3ce/0x800 kernel/bpf/hashtab.c:1334
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88813d26d42b of 1 bytes by task 14021 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+0x528/0x750 kernel/bpf/bpf_lru_list.c:242
 bpf_lru_list_pop_free_to_local kernel/bpf/bpf_lru_list.c:329 [inline]
 bpf_common_lru_pop_free kernel/bpf/bpf_lru_list.c:447 [inline]
 bpf_lru_pop_free+0x671/0xe10 kernel/bpf/bpf_lru_list.c:499
 prealloc_lru_pop kernel/bpf/hashtab.c:290 [inline]
 __htab_lru_percpu_map_update_elem+0xec/0x800 kernel/bpf/hashtab.c:1318
 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313
 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x39b/0x4c0 kernel/bpf/syscall.c:1672
 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4511
 __sys_bpf+0x338/0x810
 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00 -> 0x01


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/10 03:54 upstream 35674e787518 07980f9d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __bpf_lru_list_rotate / __htab_lru_percpu_map_update_elem
* Struck through repros no longer work on HEAD.