syzbot


KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru (2)

Status: moderation: reported on 2021/10/01 15:57
Reported-by: syzbot+aea2daf492f8a5b182aa@syzkaller.appspotmail.com
First crash: 668d, last: 24d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru 14 1089d 1155d 0/24 auto-closed as invalid on 2020/04/15 20:03

Sample crash report:
==================================================================
BUG: KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru

write to 0xffff888237d286b8 of 8 bytes by task 3130 on cpu 1:
 __invalidate_bh_lrus fs/buffer.c:1381 [inline]
 invalidate_bh_lru+0xad/0x110 fs/buffer.c:1393
 smp_call_function_many_cond+0x4ee/0x650 kernel/smp.c:978
 on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1155
 on_each_cpu_cond include/linux/smp.h:105 [inline]
 invalidate_bh_lrus+0x26/0x30 fs/buffer.c:1412
 kill_bdev block/bdev.c:75 [inline]
 blkdev_flush_mapping+0xb6/0x1c0 block/bdev.c:662
 blkdev_put_whole block/bdev.c:693 [inline]
 blkdev_put+0x32d/0x420 block/bdev.c:953
 kill_block_super+0x7b/0x90 fs/super.c:1389
 deactivate_locked_super+0x6a/0xb0 fs/super.c:332
 deactivate_super+0x85/0x90 fs/super.c:363
 cleanup_mnt+0x267/0x2d0 fs/namespace.c:1291
 __cleanup_mnt+0x15/0x20 fs/namespace.c:1298
 task_work_run+0xde/0x110 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x124/0x130 kernel/entry/common.c:171
 exit_to_user_mode_prepare kernel/entry/common.c:203 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:296
 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888237d286b8 of 8 bytes by task 3137 on cpu 0:
 has_bh_in_lru+0x31/0x1c0 fs/buffer.c:1403
 smp_call_function_many_cond+0x2e3/0x650 kernel/smp.c:935
 on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1155
 on_each_cpu_cond include/linux/smp.h:105 [inline]
 invalidate_bh_lrus+0x26/0x30 fs/buffer.c:1412
 kill_bdev block/bdev.c:75 [inline]
 blkdev_flush_mapping+0xb6/0x1c0 block/bdev.c:662
 blkdev_put_whole block/bdev.c:693 [inline]
 blkdev_put+0x32d/0x420 block/bdev.c:953
 kill_block_super+0x7b/0x90 fs/super.c:1389
 deactivate_locked_super+0x6a/0xb0 fs/super.c:332
 deactivate_super+0x85/0x90 fs/super.c:363
 cleanup_mnt+0x267/0x2d0 fs/namespace.c:1291
 __cleanup_mnt+0x15/0x20 fs/namespace.c:1298
 task_work_run+0xde/0x110 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x124/0x130 kernel/entry/common.c:171
 exit_to_user_mode_prepare kernel/entry/common.c:203 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:296
 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0xffff88810ae86d68 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3137 Comm: syz-executor.3 Not tainted 6.2.0-rc2-syzkaller-00010-g69b41ac87e4a-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================

Crashes (213):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2023/01/04 20:38 upstream 69b41ac87e4a 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/12/28 12:10 upstream 1b929c02afd3 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/12/25 21:20 upstream 72a85e2b0a1e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/11/28 10:51 upstream b7b275e60bcd f4470a7b .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/11/27 17:07 upstream faf68e3523c2 f4470a7b .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/11/15 03:04 upstream e01d50cbd6ee 97de9cfc .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/11/07 08:07 upstream 089d1c31224e 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/11/06 11:55 upstream 2f5065a0bc9d 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/10/28 14:41 upstream 23758867219c 8168b69e .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/10/21 18:10 upstream 6d36c728bc2e 63e790dd .config console log report info [disk image] [vmlinux] KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/10/20 00:47 upstream aae703b02f92 b31320fc .config console log report info [disk image] [vmlinux] KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/10/13 10:12 upstream a185a0995518 adf90437 .config console log report info [disk image] [vmlinux] KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/10/12 05:21 upstream 60bb8154d1d7 02b6492e .config console log report info [disk image] [vmlinux] KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/10/04 05:57 upstream 4fe89d07dcc2 feb56351 .config console log report info [disk image] [vmlinux] KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/10/03 08:33 upstream a962b54e162c feb56351 .config console log report info [disk image] [vmlinux] KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/09/25 10:43 upstream 1a61b828566f 0042f2b4 .config console log report info [disk image] [vmlinux] KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/09/23 05:25 upstream dc164f4fb00a 0042f2b4 .config console log report info [disk image] [vmlinux] KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/09/14 19:46 upstream 3245cb65fd91 b884348d .config console log report info [disk image] [vmlinux] KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/09/10 23:44 upstream b96fbd602d35 356d8217 .config console log report info [disk image] [vmlinux] KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/09/05 09:20 upstream 7e18e42e4b28 28811d0a .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/09/04 13:45 upstream 7726d4c3e60b 28811d0a .config console log report info [disk image] [vmlinux] KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/09/03 22:01 upstream 42cf58c272ee 28811d0a .config console log report info [disk image] [vmlinux] KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/09/03 09:58 upstream d895ec7938c4 49e94a20 .config console log report info [disk image] [vmlinux] KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/25 03:43 upstream c40e8341e3b3 514514f6 .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/22 07:57 upstream e3f259d33c0e 26a13b38 .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/20 09:37 upstream 50cd95ac4654 26a13b38 .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/19 16:02 upstream 4c2d0b039c5c 26a13b38 .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/13 13:17 upstream 7ebfc85e2cd7 8dfcaa3d .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/11 18:12 upstream ffcf9c5700e4 787ed7e0 .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/10 00:11 upstream 426b4ca2d6a5 c2a623d6 .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/07 23:06 upstream 3bc1bc0b59d0 88e3a122 .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/07 15:11 upstream 1612c382ffbd 88e3a122 .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/06 05:38 upstream 9e2f40233670 e853abd9 .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/04 08:28 upstream ff89dd08c0f0 1c9013ac .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/03 06:11 upstream 7d0d3fa7339e 1c9013ac .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/01 19:15 upstream 3d7cb6b04c3f fef302b1 .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/30 11:54 upstream e65c6a46df94 fef302b1 .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/29 18:51 upstream 6e2c0490769e fef302b1 .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/29 00:05 upstream 33ea1340bafe fb95c74d .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/28 14:50 upstream 6e7765cb477a fb95c74d .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/25 03:53 upstream af2c9ac24019 22343af4 .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/24 01:05 upstream 515f71412bb7 22343af4 .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/23 15:55 upstream 70664fc10c0d 22343af4 .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/22 00:10 upstream 68e77ffbfd06 5e6028b9 .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2021/10/01 05:00 upstream 4de593fb965f 1d849ab4 .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2021/09/27 15:43 upstream 5816b3e6577e 78494d16 .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2021/04/01 00:50 upstream d19cc4bfbff1 6a81331a .config console log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
* Struck through repros no longer work on HEAD.