syzbot


KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch (5)

Status: auto-obsoleted due to no activity on 2023/12/23 00:07
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+784b3ee2508f51dc29ed@syzkaller.appspotmail.com
First crash: 246d, last: 118d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch mm 1 1493d 1493d 0/26 auto-closed as invalid on 2020/04/07 10:35
upstream KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch (2) mm 1 1315d 1315d 0/26 auto-closed as invalid on 2020/08/29 01:07
upstream KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch (3) mm 108 852d 1179d 0/26 auto-closed as invalid on 2021/12/04 05:37
upstream KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch (4) mm 75 312d 813d 0/26 auto-obsoleted due to no activity on 2023/05/28 04:22

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch

read-write to 0xffff888100135b50 of 8 bytes by task 8549 on cpu 0:
 percpu_counter_add_batch+0xc9/0x140 lib/percpu_counter.c:96
 shmem_inode_acct_block+0x1ee/0x220
 shmem_alloc_and_acct_folio mm/shmem.c:1676 [inline]
 shmem_get_folio_gfp+0x4ad/0xc30 mm/shmem.c:2020
 shmem_get_folio mm/shmem.c:2143 [inline]
 shmem_write_begin+0xa6/0x210 mm/shmem.c:2688
 generic_perform_write+0x1c9/0x410 mm/filemap.c:3969
 shmem_file_write_iter+0xc8/0xe0 mm/shmem.c:2865
 call_write_iter include/linux/fs.h:2020 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x48a/0x790 fs/read_write.c:584
 ksys_write+0xeb/0x1a0 fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __x64_sys_write+0x42/0x50 fs/read_write.c:646
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff888100135b50 of 8 bytes by task 8552 on cpu 1:
 percpu_counter_read include/linux/percpu_counter.h:101 [inline]
 __percpu_counter_compare+0x2b/0x1d0 lib/percpu_counter.c:262
 percpu_counter_compare include/linux/percpu_counter.h:64 [inline]
 shmem_inode_acct_block+0xf6/0x220 mm/shmem.c:221
 shmem_alloc_and_acct_folio mm/shmem.c:1676 [inline]
 shmem_get_folio_gfp+0x4ad/0xc30 mm/shmem.c:2020
 shmem_get_folio mm/shmem.c:2143 [inline]
 shmem_write_begin+0xa6/0x210 mm/shmem.c:2688
 generic_perform_write+0x1c9/0x410 mm/filemap.c:3969
 shmem_file_write_iter+0xc8/0xe0 mm/shmem.c:2865
 call_write_iter include/linux/fs.h:2020 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x48a/0x790 fs/read_write.c:584
 ksys_write+0xeb/0x1a0 fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __x64_sys_write+0x42/0x50 fs/read_write.c:646
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x0000000000000423 -> 0x0000000000000443

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 8552 Comm: syz-executor.2 Not tainted 6.6.0-syzkaller-10396-g4652b8e4f3ff #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
==================================================================

Crashes (30):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/03 05:40 upstream 4652b8e4f3ff c4ac074c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/11/02 09:41 upstream babe393974de 69904c9f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/10/31 11:49 upstream 5a6a09e97199 58499c95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/10/28 16:34 upstream 56567a20b22b 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/10/25 13:32 upstream 4f82870119a4 17e6d526 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/10/10 08:24 upstream 94f6f0550c62 c9be5398 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/10/06 10:21 upstream b78b18fb8ee1 db17ad9f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/10/05 14:02 upstream 3006adf3be79 b7d7ff54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/10/03 06:17 upstream ce36c8b14987 65faba36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/10/01 23:18 upstream e81a2dabc3f3 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/10/01 23:18 upstream e81a2dabc3f3 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/09/30 22:47 upstream 3b517966c561 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/09/30 14:18 upstream 9f3ebbef746f 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/09/24 05:34 upstream 3aba70aed91f 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/09/12 04:37 upstream 0bb80ecc33a8 59da8366 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/09/06 07:49 upstream 7733171926cc 0b6286dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/08/25 14:59 upstream 4f9e7fabf864 03d9c195 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/08/24 19:44 upstream 93f5de5f648d 49be837e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/08/22 07:41 upstream f7757129e3de 6b415825 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/08/21 11:27 upstream f7757129e3de d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/07/31 10:52 upstream 5d0c230f1de8 2a0d0f29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/07/29 16:15 upstream ffabf7c73176 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/07/29 00:02 upstream f837f0a3c948 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/07/17 13:19 upstream fdf0eaf11452 20f8b3c2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/07/17 08:00 upstream 20edcec23f92 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/07/14 19:51 upstream bde7f150276b d624500f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/07/12 17:50 upstream 3f01e9fed845 979d5fe2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/07/06 12:32 upstream c17414a273b8 ba5dba36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/07/03 09:52 upstream a901a3568fd2 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
2023/06/28 10:34 upstream 04fc8904d5d1 4cd5bb25 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch
* Struck through repros no longer work on HEAD.