syzbot


KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem (6)

Status: auto-closed as invalid on 2022/05/29 15:23
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 306d, last: 222d
similar bugs (6):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem (4) 17 598d 699d 0/24 auto-closed as invalid on 2021/05/19 00:13
upstream KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem (2) 1 825d 825d 0/24 auto-closed as invalid on 2020/10/03 19:18
upstream KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem 3 917d 962d 0/24 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem (3) 1 752d 726d 0/24 auto-closed as invalid on 2020/12/21 11:59
upstream KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem (5) 3 355d 388d 0/24 auto-closed as invalid on 2022/01/16 23:04
upstream KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem (7) 3 126d 174d 0/24 auto-closed as invalid on 2022/09/02 21:44

Sample crash report:
==================================================================
BUG: KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem

write to 0xffff88813831639b of 1 bytes by task 4900 on cpu 1:
 bpf_lru_node_set_ref kernel/bpf/bpf_lru_list.h:70 [inline]
 htab_lru_map_update_elem+0x44d/0x760 kernel/bpf/hashtab.c:1172
 bpf_map_update_value+0x1b9/0x2f0 kernel/bpf/syscall.c:224
 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 0xffff88813831639b of 1 bytes by task 4891 on cpu 0:
 bpf_lru_node_is_ref kernel/bpf/bpf_lru_list.c:44 [inline]
 __local_list_pop_pending kernel/bpf/bpf_lru_list.c:384 [inline]
 bpf_common_lru_pop_free kernel/bpf/bpf_lru_list.c:476 [inline]
 bpf_lru_pop_free+0xa19/0xe90 kernel/bpf/bpf_lru_list.c:499
 prealloc_lru_pop kernel/bpf/hashtab.c:290 [inline]
 htab_lru_map_update_elem+0xb7/0x760 kernel/bpf/hashtab.c:1151
 bpf_map_update_value+0x1b9/0x2f0 kernel/bpf/syscall.c:224
 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: 0 PID: 4891 Comm: syz-executor.2 Not tainted 5.18.0-rc3-syzkaller-00235-g22da5264abf4-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (23):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/04/24 15:13 upstream 22da5264abf4 131df97d .config log report info KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem
ci2-upstream-kcsan-gce 2022/03/30 12:11 upstream d888c83fcec7 42718dd6 .config log report info KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem
ci2-upstream-kcsan-gce 2022/03/30 07:23 upstream d888c83fcec7 6bdac766 .config log report info KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem
ci2-upstream-kcsan-gce 2022/03/26 22:07 upstream bddac7c1e02b 89bc8608 .config log report info KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem
ci2-upstream-kcsan-gce 2022/03/26 05:25 upstream 52d543b5497c 89bc8608 .config log report info KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem
ci2-upstream-kcsan-gce 2022/03/23 23:17 upstream 6b1f86f8e9c7 5ff41e94 .config log report info KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem
ci2-upstream-kcsan-gce 2022/03/23 02:51 upstream 3bf03b9a0839 5ff41e94 .config log report info KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem
ci2-upstream-kcsan-gce 2022/03/22 13:12 upstream b47d5a4f6b8d d88ef0c5 .config log report info KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem
ci2-upstream-kcsan-gce 2022/03/21 21:45 upstream eaa54b1458ca e2d91b1d .config log report info KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem
ci2-upstream-kcsan-gce 2022/03/20 21:13 upstream 14702b3b2438 e2d91b1d .config log report info KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem
ci2-upstream-kcsan-gce 2022/03/19 20:20 upstream 97e9c8eb4bb1 e2d91b1d .config log report info KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem
ci2-upstream-kcsan-gce 2022/03/18 01:36 upstream 551acdc3c3d2 e2d91b1d .config log report info KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem
ci2-upstream-kcsan-gce 2022/03/16 05:51 upstream 56e337f2cf13 9e8eaa75 .config log report info KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem
ci2-upstream-kcsan-gce 2022/03/10 18:26 upstream 1db333d9a51f 9e8eaa75 .config log report info KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem
ci2-upstream-kcsan-gce 2022/03/09 06:34 upstream 92f90cc9fe0e 9e8eaa75 .config log report info KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem
ci2-upstream-kcsan-gce 2022/02/25 20:21 upstream 53ab78cd6d5a 45a13a73 .config log report info KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem
ci2-upstream-kcsan-gce 2022/02/24 01:27 upstream 23d04328444a 6e821dbf .config log report info KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem
ci2-upstream-kcsan-gce 2022/02/21 21:34 upstream 038101e6b2cd 6e821dbf .config log report info KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem
ci2-upstream-kcsan-gce 2022/02/20 08:02 upstream 4f12b742eb2b 3cd800e4 .config log report info KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem
ci2-upstream-kcsan-gce 2022/02/16 11:59 upstream c5d9ae265b10 8b9ca619 .config log report info KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem
ci2-upstream-kcsan-gce 2022/02/12 17:54 upstream 83e396641110 8b9ca619 .config log report info KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem
ci2-upstream-kcsan-gce 2022/02/03 19:44 upstream c36c04c2e132 30646bfe .config log report info KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem
ci2-upstream-kcsan-gce 2022/01/31 00:41 upstream 26291c54e111 495e00c5 .config log report info KCSAN: data-race in bpf_lru_pop_free / htab_lru_map_update_elem
* Struck through repros no longer work on HEAD.