syzbot


KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn (5)

Status: auto-obsoleted due to no activity on 2023/06/02 17:22
Subsystems: bpf net
[Documentation on labels]
First crash: 553d, last: 299d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn net 4 1331d 1341d 0/26 auto-closed as invalid on 2020/08/04 06:35
upstream KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn (2) net 3 1246d 1280d 0/26 auto-closed as invalid on 2020/10/28 20:02
upstream KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn (9) kernel 4 4d15h 43d 0/26 moderation: reported on 2024/01/09 18:25
upstream KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn (4) bpf 12 628d 798d 0/26 auto-closed as invalid on 2022/07/08 11:31
upstream KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn (3) bpf 12 1052d 1149d 0/26 auto-closed as invalid on 2021/05/17 09:01
upstream KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn (6) net 7 219d 234d 0/26 auto-obsoleted due to no activity on 2023/08/21 13:19
upstream KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn (8) kernel 6 87d 73d 0/26 auto-obsoleted due to no activity on 2023/12/31 20:24
upstream KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn (7) kernel 1 147d 147d 0/26 auto-obsoleted due to no activity on 2023/11/01 12:19

Sample crash report:
==================================================================
BUG: KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn

read-write to 0xffffffff86f545d4 of 4 bytes by task 883 on cpu 1:
 pcpu_update_empty_pages mm/percpu.c:602 [inline]
 pcpu_chunk_populated mm/percpu.c:1531 [inline]
 pcpu_balance_populated mm/percpu.c:2088 [inline]
 pcpu_balance_workfn+0x96f/0xa80 mm/percpu.c:2238
 process_one_work+0x3e6/0x750 kernel/workqueue.c:2390
 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2537
 kthread+0x1d7/0x210 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

read to 0xffffffff86f545d4 of 4 bytes by task 26167 on cpu 0:
 pcpu_alloc+0xa59/0x1280 mm/percpu.c:1870
 __alloc_percpu_gfp+0x26/0x30 mm/percpu.c:1930
 __percpu_counter_init+0x47/0x130 lib/percpu_counter.c:162
 mm_init+0x44a/0x5e0 kernel/fork.c:1300
 dup_mm kernel/fork.c:1680 [inline]
 copy_mm+0x11c/0xf80 kernel/fork.c:1732
 copy_process+0x1008/0x21b0 kernel/fork.c:2498
 kernel_clone+0x169/0x560 kernel/fork.c:2908
 __do_sys_clone kernel/fork.c:3051 [inline]
 __se_sys_clone kernel/fork.c:3035 [inline]
 __x64_sys_clone+0xe8/0x120 kernel/fork.c:3035
 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: 0x00000001 -> 0x00000004

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 26167 Comm: syz-executor.4 Not tainted 6.3.0-syzkaller-10620-g33afd4b76393 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
==================================================================
EXT4-fs (loop4): unmounting filesystem 00000000-0000-0000-0000-000000000000.
EXT4-fs (loop4): unmounting filesystem 00000000-0000-0000-0000-000000000000.
EXT4-fs (loop4): unmounting filesystem 00000000-0000-0000-0000-000000000000.
EXT4-fs (loop4): unmounting filesystem 00000000-0000-0000-0000-000000000000.

Crashes (21):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/28 17:17 upstream 33afd4b76393 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn
2023/04/19 16:10 upstream 789b4a41c247 94b4184e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn
2023/04/07 08:53 upstream f2afccfefe7b f7ba566d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn
2023/03/20 19:09 upstream 7d31677bb7b1 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn
2023/02/12 23:51 upstream ceaa837f96ad 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn
2023/02/07 04:26 upstream 05ecb680708a 0a9c11b6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn
2023/02/05 23:37 upstream 4ec5183ec486 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn
2023/02/03 13:03 upstream e7368fd30165 1b2f701a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn
2023/01/23 14:51 upstream 2475bf0250de 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn
2022/12/12 16:09 upstream 830b3c68c1fb 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn
2022/12/09 14:37 upstream 0d1409e4ff08 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn
2022/12/08 03:32 upstream 479174d402bc d88f3abb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn
2022/11/22 17:22 upstream eb7081409f94 9da37ae8 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn
2022/10/30 07:14 upstream 882ad2a2a8ff 2a71366b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn
2022/10/22 06:31 upstream 440b7895c990 c0b80a55 .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn
2022/09/26 08:51 upstream f76349cf4145 d59ba983 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn
2022/09/20 16:21 upstream 521a547ced64 c4b8ccfd .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn
2022/09/03 14:29 upstream d895ec7938c4 28811d0a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn
2022/08/20 18:20 upstream f31c32efd57c 26a13b38 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn
2022/08/19 10:14 upstream 4c2d0b039c5c 26a13b38 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn
2022/08/17 20:13 upstream 274a2eebf80c a9409d47 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_balance_workfn
* Struck through repros no longer work on HEAD.