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: 1916d, last: 7m

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 (2404):
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
2025/01/22 09:40 upstream c4b9570cfb63 da72ac06 .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
2025/01/21 16:32 upstream 95ec54a420b8 da72ac06 .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
2025/01/20 21:49 upstream 100ceb4817a2 6e87cfa2 .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
2025/01/20 11:57 upstream ffd294d346d1 f2cb035c .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
2025/01/19 02:50 upstream fda5e3f28400 f2cb035c .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
2025/01/17 17:43 upstream 9bffa1ad25b8 953d1c45 .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
2025/01/16 16:42 upstream 619f0b6fad52 f9e07a6e .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
2025/01/15 22:37 upstream 619f0b6fad52 968edaf4 .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
2025/01/14 05:41 upstream c45323b7560e b1f1cd88 .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
2025/01/12 12:11 upstream b62cef9a5c67 6dbc6a9b .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
2025/01/11 10:24 upstream 77a903cd8e5a 6dbc6a9b .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
2025/01/07 06:51 upstream fbfd64d25c7a f3558dbf .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
2025/01/06 09:29 upstream 9244696b34f2 f3558dbf .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
2025/01/03 01:37 upstream 0bc21e701a6f d3ccff63 .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/31 04:20 upstream ccb98ccef0e5 d3ccff63 .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/29 12:00 upstream 059dd502b263 d3ccff63 .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/28 11:47 upstream fd0584d220fe d3ccff63 .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/27 00:35 upstream d6ef8b40d075 d3ccff63 .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/25 06:16 upstream 9b2ffa6148b1 444551c4 .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/23 00:49 upstream bcde95ce32b6 b4fbdbd4 .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/22 09:59 upstream 48f506ad0b68 d7f584ee .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/21 00:07 upstream e9b8ffafd20a d7f584ee .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/19 07:29 upstream eabcdba3ad40 1432fc84 .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/18 22:16 upstream aef25be35d23 a0626d3a .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/16 18:38 upstream 78d4f34e2115 eec85da6 .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/16 05:28 upstream 78d4f34e2115 7cbfbb3a .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/15 17:36 upstream 2d8308bf5b67 7cbfbb3a .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 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
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.