syzbot


KCSAN: data-race in __find_get_block / has_bh_in_lru

Status: moderation: reported on 2020/02/03 02:48
Reported-by: syzbot+aa6de90d54fa7c0888ad@syzkaller.appspotmail.com
First crash: 1075d, last: 18h47m

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

write to 0xffff888237c28478 of 8 bytes by task 17529 on cpu 0:
 bh_lru_install fs/buffer.c:1250 [inline]
 __find_get_block+0x22c/0x6c0 fs/buffer.c:1309
 __getblk_gfp+0x2d/0x1c0 fs/buffer.c:1329
 sb_getblk include/linux/buffer_head.h:363 [inline]
 ext4_getblk+0x178/0x4b0 fs/ext4/inode.c:868
 ext4_bread+0x28/0x100 fs/ext4/inode.c:914
 ext4_append+0x171/0x270 fs/ext4/namei.c:83
 ext4_init_new_dir+0x177/0x500 fs/ext4/namei.c:2943
 ext4_mkdir+0x329/0x760 fs/ext4/namei.c:2989
 vfs_mkdir+0x27a/0x380 fs/namei.c:4013
 do_mkdirat+0x101/0x270 fs/namei.c:4038
 __do_sys_mkdirat fs/namei.c:4053 [inline]
 __se_sys_mkdirat fs/namei.c:4051 [inline]
 __x64_sys_mkdirat+0x4c/0x60 fs/namei.c:4051
 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+0x63/0xcd

read to 0xffff888237c28478 of 8 bytes by task 7027 on cpu 1:
 has_bh_in_lru+0x31/0x1c0 fs/buffer.c:1414
 smp_call_function_many_cond+0x34a/0x790 kernel/smp.c:936
 on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1154
 on_each_cpu_cond include/linux/smp.h:105 [inline]
 invalidate_bh_lrus+0x26/0x30 fs/buffer.c:1423
 kill_bdev block/bdev.c:74 [inline]
 blkdev_flush_mapping+0xb6/0x1c0 block/bdev.c:661
 blkdev_put_whole block/bdev.c:692 [inline]
 blkdev_put+0x32d/0x420 block/bdev.c:952
 kill_block_super+0x7b/0x90 fs/super.c:1430
 deactivate_locked_super+0x6a/0xb0 fs/super.c:332
 deactivate_super+0x85/0x90 fs/super.c:363
 cleanup_mnt+0x2b6/0x320 fs/namespace.c:1186
 __cleanup_mnt+0x15/0x20 fs/namespace.c:1193
 task_work_run+0x8e/0x110 kernel/task_work.c:177
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x124/0x130 kernel/entry/common.c:169
 exit_to_user_mode_prepare kernel/entry/common.c:201 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:294
 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0xffff8881380adb60 -> 0xffff8881381f1e38

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 7027 Comm: syz-executor.1 Not tainted 6.0.0-rc7-syzkaller-00250-ga962b54e162c-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
==================================================================

Crashes (1322):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/10/03 02:15 upstream a962b54e162c feb56351 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/10/02 16:36 upstream b357fd1c2afc feb56351 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/10/01 21:17 upstream ffb4d94b4314 feb56351 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/30 22:30 upstream 70575e77839f feb56351 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/30 10:41 upstream 987a926c1d8a 45fd7169 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/29 02:26 upstream 49c13ed0316d a41a2080 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/28 04:31 upstream 46452d3786a8 75c78242 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/27 13:49 upstream 3800a713b607 10323ddf .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/26 15:20 upstream f76349cf4145 d59ba983 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/25 09:12 upstream 1a61b828566f 0042f2b4 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/24 17:22 upstream a63f2e7cb110 0042f2b4 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/23 21:07 upstream bf682942cd26 0042f2b4 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/22 15:09 upstream dc164f4fb00a 60af5050 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/22 02:33 upstream 06f7db949993 60af5050 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/21 10:24 upstream 60891ec99e14 380f82fb .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/21 01:41 upstream 60891ec99e14 c4b8ccfd .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/20 15:41 upstream 521a547ced64 7c41a9ba .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/19 14:57 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/19 10:58 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/18 20:35 upstream 38eddeedbbea dd9a85ff .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/17 11:49 upstream a335366bad13 dd9a85ff .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/17 01:54 upstream 6879c2d3b960 dd9a85ff .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/15 07:18 upstream 3245cb65fd91 dd9a85ff .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/14 11:29 upstream 3245cb65fd91 b884348d .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/13 17:56 upstream d1221cea11fc a08652b0 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/13 11:13 upstream e839a756012b a08652b0 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/13 03:06 upstream e839a756012b f371ed7e .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/12 19:29 upstream 80e78fcce86d f371ed7e .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/12 09:21 upstream 80e78fcce86d 356d8217 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/11 23:27 upstream 4ed9c1e971b1 356d8217 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/10 22:27 upstream b96fbd602d35 356d8217 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/10 03:01 upstream ce888220d5c7 356d8217 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/08 18:48 upstream 26b1224903b3 f3027468 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/08 03:40 upstream 0066f1b0e275 435aeef7 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/07 15:56 upstream 0066f1b0e275 c5b7bc57 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/06 04:29 upstream 53e99dcff61e 9dcd38fc .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/05 17:39 upstream 7e18e42e4b28 922294ab .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/05 06:34 upstream 7e18e42e4b28 28811d0a .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/04 11:21 upstream 7726d4c3e60b 28811d0a .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/03 21:41 upstream 42cf58c272ee 28811d0a .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/03 17:28 upstream d895ec7938c4 28811d0a .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/03 08:04 upstream d895ec7938c4 49e94a20 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/09/02 22:31 upstream 0b3acd1cc022 25194605 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2021/01/16 23:40 upstream 54c6247d06f1 65a7a854 .config log report info
ci2-upstream-kcsan-gce 2020/02/02 11:07 https://github.com/google/ktsan.git kcsan 245a43005292 2274ad39 .config log report
ci2-upstream-kcsan-gce 2020/01/30 02:45 https://github.com/google/ktsan.git kcsan 245a43005292 5ed23f9a .config log report
ci2-upstream-kcsan-gce 2019/10/24 14:58 https://github.com/google/ktsan.git kcsan 05f2236801fe d01bb02a .config log report
* Struck through repros no longer work on HEAD.