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: 1876d, last: 14h35m

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 (2377):
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/12/12 22:56 upstream 150b567e0d57 530e80f8 .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/12/12 04:00 upstream 231825b2e1ff 6f1b0fa8 .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/12/10 03:15 upstream 7cb1b4663150 cfc402b4 .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/12/09 11:05 upstream fac04efc5c79 9ac0fdc6 .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/12/08 23:21 upstream 62b5a46999c7 9ac0fdc6 .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/12/08 14:30 upstream 7503345ac5f5 9ac0fdc6 .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/12/07 06:34 upstream 9a6e8c7c3a02 9ac0fdc6 .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/12/05 02:21 upstream feffde684ac2 b50eb251 .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/12/03 04:05 upstream cdd30ebb1b9f 578925bc .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/12/02 02:36 upstream f788b5ef1ca9 68914665 .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/12/01 14:24 upstream bcc8eda6d349 68914665 .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/11/30 16:57 upstream 2ba9f676d0a2 68914665 .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/11/30 02:42 upstream 509f806f7f70 68914665 .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/11/29 07:36 upstream 7af08b57bcb9 5df23865 .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/11/28 08:26 upstream b86545e02e8c 5df23865 .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/11/27 12:53 upstream aaf20f870da0 52b38cc1 .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/11/26 17:31 upstream 2c22dc1ee3a1 e9a9a9f2 .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/11/24 09:17 upstream 9f16d5e6f220 68da6d95 .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/11/24 00:40 upstream 42d9e8b7ccdd 68da6d95 .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/11/23 02:43 upstream 06afb0f36106 68da6d95 .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/11/22 02:21 upstream 43fb83c17ba2 4b25d554 .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/11/20 13:46 upstream bf9aa14fc523 4fca1650 .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/11/20 08:40 upstream bf9aa14fc523 7d02db5a .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/11/20 04:10 upstream 158f238aa69d 7d02db5a .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/11/19 01:48 upstream 23acd177540d 571351cb .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/11/18 19:15 upstream adc218676eef e7bb5d6e .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/11/18 08:38 upstream adc218676eef cfe3a04a .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/11/17 16:38 upstream 4a5df3796467 cfe3a04a .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/11/16 14:13 upstream e8bdb3c8be08 cfe3a04a .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/11/15 18:00 upstream cfaaa7d010d1 cfe3a04a .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/11/15 02:07 upstream cfaaa7d010d1 a8c99394 .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/11/14 07:56 upstream 0a9b9d17f3a7 a8c99394 .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/11/13 19:22 upstream f1b785f4c787 bb3f8425 .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/11/12 07:33 upstream 2d5404caa8c7 75bb1b32 .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/11/11 21:10 upstream 2d5404caa8c7 0c4b1325 .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/11/09 14:00 upstream da4373fbcf00 6b856513 .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/11/08 16:10 upstream 906bd684e4b1 179b040e .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/11/07 21:14 upstream ff7afaeca1a1 867e44df .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/11/02 05:46 upstream 6c52d4da1c74 f00eed24 .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/10/30 12:15 upstream c1e939a21eb1 fb888278 .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/10/30 10:54 upstream c1e939a21eb1 66aeb999 .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/10/28 12:22 upstream 819837584309 65e8686b .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/10/28 08:06 upstream 284a2f899676 65e8686b .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/10/26 12:33 upstream 850925a8133c 65e8686b .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/10/24 13:11 upstream c2ee9f594da8 0d144d1a .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/10/23 07:12 upstream c2ee9f594da8 15fa2979 .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/10/21 23:45 upstream d12937763990 f1e4447c .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.