syzbot


KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (6)

Status: auto-obsoleted due to no activity on 2023/09/17 01:43
Subsystems: ext4
[Documentation on labels]
First crash: 264d, last: 264d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (3) fs 1 568d 568d 0/26 auto-obsoleted due to no activity on 2022/11/16 21:51
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (5) fs 2 373d 385d 0/26 auto-obsoleted due to no activity on 2023/05/30 05:48
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (7) ext4 3 199d 227d 0/26 auto-obsoleted due to no activity on 2023/11/20 11:49
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (9) fs 1 104d 104d 0/26 auto-obsoleted due to no activity on 2024/02/23 17:16
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (10) fs 1 20d 20d 0/26 moderation: reported on 2024/04/12 23:40
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (2) fs 14 612d 819d 0/26 auto-closed as invalid on 2022/10/03 06:12
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (8) ext4 1 154d 143d 0/26 auto-obsoleted due to no activity on 2024/01/04 10:47
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu ext4 137 891d 1049d 0/26 auto-closed as invalid on 2021/12/28 13:59
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (4) ext4 3 479d 530d 0/26 auto-obsoleted due to no activity on 2023/03/11 22:09

Sample crash report:
EXT4-fs (loop3): unmounting filesystem 00000000-0000-0000-0000-000000000000.
==================================================================
BUG: KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu

write to 0xffff888237c2a388 of 8 bytes by task 16794 on cpu 0:
 __invalidate_bh_lrus fs/buffer.c:1493 [inline]
 invalidate_bh_lrus_cpu+0x82/0xb0 fs/buffer.c:1538
 lru_add_and_bh_lrus_drain mm/swap.c:768 [inline]
 lru_add_drain_per_cpu+0x70/0x90 mm/swap.c:787
 process_one_work+0x434/0x860 kernel/workqueue.c:2600
 process_scheduled_works kernel/workqueue.c:2667 [inline]
 worker_thread+0x763/0xa10 kernel/workqueue.c:2756
 kthread+0x1d7/0x210 kernel/kthread.c:389
 ret_from_fork+0x2e/0x40 arch/x86/kernel/process.c:145
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304

read to 0xffff888237c2a388 of 8 bytes by task 3158 on cpu 1:
 has_bh_in_lru+0x35/0x1e0 fs/buffer.c:1515
 smp_call_function_many_cond+0x2e4/0xc20 kernel/smp.c:788
 on_each_cpu_cond_mask+0x3c/0x80 kernel/smp.c:1003
 on_each_cpu_cond include/linux/smp.h:105 [inline]
 invalidate_bh_lrus+0x2a/0x30 fs/buffer.c:1524
 invalidate_bdev+0x55/0x80 block/bdev.c:85
 ext4_put_super+0x502/0x7f0 fs/ext4/super.c:1340
 generic_shutdown_super+0xd9/0x260 fs/super.c:499
 kill_block_super+0x3b/0x60 fs/super.c:1417
 deactivate_locked_super+0x6b/0xd0 fs/super.c:330
 deactivate_super+0x9b/0xb0 fs/super.c:361
 cleanup_mnt+0x272/0x2e0 fs/namespace.c:1254
 __cleanup_mnt+0x19/0x20 fs/namespace.c:1261
 task_work_run+0x135/0x1a0 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xd1/0xe0 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
 syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297
 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000000000000 -> 0xffff888106322478

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3158 Comm: syz-executor.3 Not tainted 6.5.0-rc5-syzkaller-00353-gae545c3283dc #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
==================================================================
EXT4-fs (loop3): unmounting filesystem 00000000-0000-0000-0000-000000000000.
EXT4-fs (loop3): unmounting filesystem 00000000-0000-0000-0000-000000000000.
EXT4-fs (loop3): unmounting filesystem 00000000-0000-0000-0000-000000000000.
EXT4-fs (loop3): unmounting filesystem 00000000-0000-0000-0000-000000000000.

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/13 01:42 upstream ae545c3283dc 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
* Struck through repros no longer work on HEAD.