syzbot


KCSAN: data-race in __find_get_block / has_bh_in_lru

Status: moderation: reported syz repro on 2020/02/03 02:48
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+aa6de90d54fa7c0888ad@syzkaller.appspotmail.com
First crash: 1638d, last: 3h39m

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

read-write to 0xffff888237d2a448 of 8 bytes by task 3114 on cpu 1:
 bh_lru_install fs/buffer.c:1340 [inline]
 __find_get_block+0x409/0x890 fs/buffer.c:1403
 bdev_getblk+0x35/0x7a0 fs/buffer.c:1423
 __getblk include/linux/buffer_head.h:358 [inline]
 sb_getblk include/linux/buffer_head.h:364 [inline]
 ext4_getblk+0x1c1/0x510 fs/ext4/inode.c:841
 ext4_bread+0x2c/0x110 fs/ext4/inode.c:887
 __ext4_read_dirblock+0x77/0x5a0 fs/ext4/namei.c:144
 htree_dirblock_to_tree+0x102/0x630 fs/ext4/namei.c:1082
 ext4_htree_fill_tree+0x429/0x9b0 fs/ext4/namei.c:1219
 ext4_dx_readdir fs/ext4/dir.c:597 [inline]
 ext4_readdir+0x15b0/0x1ac0 fs/ext4/dir.c:142
 iterate_dir+0x128/0x300 fs/readdir.c:106
 __do_sys_getdents64 fs/readdir.c:405 [inline]
 __se_sys_getdents64+0x88/0x1a0 fs/readdir.c:390
 __x64_sys_getdents64+0x43/0x50 fs/readdir.c:390
 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 0xffff888237d2a448 of 8 bytes by task 3102 on cpu 0:
 has_bh_in_lru+0x35/0x1e0 fs/buffer.c:1510
 cpu_needs_drain mm/swap.c:802 [inline]
 __lru_add_drain_all+0x254/0x420 mm/swap.c:889
 lru_add_drain_all+0x10/0x20 mm/swap.c:905
 invalidate_bdev+0x54/0x70 block/bdev.c:86
 ext4_put_super+0x51b/0x7e0 fs/ext4/super.c:1361
 generic_shutdown_super+0xdb/0x210 fs/super.c:696
 kill_block_super+0x2a/0x60 fs/super.c:1667
 ext4_kill_sb+0x44/0x80 fs/ext4/super.c:7330
 deactivate_locked_super+0x7a/0x1c0 fs/super.c:484
 deactivate_super+0x9b/0xb0 fs/super.c:517
 cleanup_mnt+0x272/0x2e0 fs/namespace.c:1256
 __cleanup_mnt+0x19/0x20 fs/namespace.c:1263
 task_work_run+0x135/0x1a0 kernel/task_work.c:180
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xd6/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:285 [inline]
 syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:296
 do_syscall_64+0x50/0x110 arch/x86/entry/common.c:88
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x0000000000000000 -> 0xffff8881053bbf70

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3102 Comm: syz-executor.0 Not tainted 6.7.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
==================================================================

Crashes (2132):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/04 09:12 upstream 33cc938e65a9 f819d6f7 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/04/19 00:30 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/04/18 11:42 upstream 8cd26fd90c1a af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/04/17 20:08 upstream 4b6b51322118 acc528cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/04/16 20:52 upstream 96fca68c4fbf 18f6e127 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/04/16 09:00 upstream 96fca68c4fbf 0d592ce4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/04/15 18:47 upstream 0bbac3facb5d b9af7e61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/04/15 07:48 upstream 0bbac3facb5d c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/04/15 00:09 upstream 399f4dae683a c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/04/13 22:20 upstream 7efd0a74039f c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/04/13 18:35 upstream 8f2c057754b2 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/04/12 19:01 upstream 5939d45155bb c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/04/12 15:58 upstream 586b5dfb51b9 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/04/12 03:58 upstream 586b5dfb51b9 27de0a5c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/04/11 02:16 upstream 9875c0beb8ad 33b9e058 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/04/10 17:12 upstream 2c71fdf02a95 4320ec32 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/04/09 23:25 upstream 20cb38a7af88 171ec371 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/04/09 02:16 upstream 20cb38a7af88 f3234354 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/04/08 17:33 upstream fec50db7033e 53df08b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/04/07 23:07 upstream 9fe30842a90b ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/04/07 04:13 upstream f2f80ac80987 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/04/04 17:01 upstream c85af715cac0 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/04/04 02:14 upstream 3e92c1e6cd87 51c4dcff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/03/30 12:02 upstream 4535e1a4174c 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/03/28 23:07 upstream 8d025e2092e2 e91187ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/03/27 23:25 upstream 498e47cd1d1f 120789fd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/03/26 21:52 upstream 928a87efa423 454571b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/03/26 07:33 upstream 928a87efa423 bcd9b39f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/03/25 02:01 upstream 5e74df2f8f15 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/03/24 09:31 upstream 70293240c5ce 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/03/22 18:08 upstream 8e938e398669 4b6cdce6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/03/20 22:11 upstream a4145ce1e7bc 5b7d42ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/03/20 07:14 upstream a4145ce1e7bc a485f239 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/03/19 18:20 upstream d95fcdf4961d e104824c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/03/17 16:39 upstream 741e9d668aa5 d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/03/16 21:38 upstream 66a27abac311 d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/03/15 14:57 upstream e5eb28f6d1af d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/03/14 02:35 upstream 61387b8dcf1d f919f202 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/03/13 03:40 upstream 1f440397665f c35c26ec .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/03/12 12:10 upstream 855684c7d938 c35c26ec .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/03/12 00:41 upstream 045395d86acd 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/03/11 14:48 upstream e8f897f4afef 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/03/11 03:26 upstream fa4b851b4ad6 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2024/03/10 14:07 upstream 005f6f34bd47 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __find_get_block / has_bh_in_lru
2021/01/16 23:40 upstream 54c6247d06f1 65a7a854 .config console log report info ci2-upstream-kcsan-gce
2020/02/02 11:07 https://github.com/google/ktsan.git kcsan 245a43005292 2274ad39 .config console log report ci2-upstream-kcsan-gce
2020/01/30 02:45 https://github.com/google/ktsan.git kcsan 245a43005292 5ed23f9a .config console log report ci2-upstream-kcsan-gce
2019/10/24 14:58 https://github.com/google/ktsan.git kcsan 05f2236801fe d01bb02a .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.