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: 1196d, last: 17h45m

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

write to 0xffff888237d286c0 of 8 bytes by task 4092 on cpu 1:
 bh_lru_install fs/buffer.c:1250 [inline]
 __find_get_block+0x254/0x6c0 fs/buffer.c:1309
 sb_find_get_block include/linux/buffer_head.h:369 [inline]
 ext4_free_blocks+0x6d4/0x890 fs/ext4/mballoc.c:6168
 ext4_remove_blocks+0x724/0x950 fs/ext4/extents.c:2545
 ext4_ext_rm_leaf+0x657/0xe40 fs/ext4/extents.c:2710
 ext4_ext_remove_space+0x86b/0x1480 fs/ext4/extents.c:2958
 ext4_ext_truncate+0x11c/0x1a0 fs/ext4/extents.c:4416
 ext4_truncate+0x787/0xaf0 fs/ext4/inode.c:4342
 ext4_evict_inode+0xadd/0xf10 fs/ext4/inode.c:286
 evict+0x1aa/0x410 fs/inode.c:664
 iput_final fs/inode.c:1747 [inline]
 iput+0x3f9/0x580 fs/inode.c:1773
 d_delete_notify include/linux/fsnotify.h:261 [inline]
 vfs_rmdir+0x270/0x2f0 fs/namei.c:4134
 do_rmdir+0x176/0x300 fs/namei.c:4182
 __do_sys_unlinkat fs/namei.c:4362 [inline]
 __se_sys_unlinkat fs/namei.c:4356 [inline]
 __x64_sys_unlinkat+0xa0/0xb0 fs/namei.c:4356
 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 0xffff888237d286c0 of 8 bytes by task 3167 on cpu 0:
 has_bh_in_lru+0x4e/0x1c0 fs/buffer.c:1403
 cpu_needs_drain mm/swap.c:836 [inline]
 __lru_add_drain_all+0x263/0x3c0 mm/swap.c:923
 lru_add_drain_all+0xc/0x10 mm/swap.c:939
 invalidate_bdev+0x56/0x80 block/bdev.c:86
 ext4_put_super+0x510/0x810 fs/ext4/super.c:1273
 generic_shutdown_super+0xd5/0x240 fs/super.c:492
 kill_block_super+0x4a/0x90 fs/super.c:1386
 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: 0x0000000000000000 -> 0xffff88810a967f70

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3167 Comm: syz-executor.4 Tainted: G        W          6.2.0-rc6-syzkaller-00003-g22b8077d0fce-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
==================================================================

Crashes (1426):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2023/01/31 22:49 upstream 22b8077d0fce b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/30 20:13 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/29 23:48 upstream ab072681eabe 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/29 08:50 upstream c96618275234 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/28 08:19 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/26 06:35 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/25 12:50 upstream 948ef7bb70c4 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/23 13:14 upstream 2475bf0250de 44388686 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/22 04:02 upstream f883675bf652 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/20 12:29 upstream d368967cb103 dd15ff29 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/19 01:25 upstream c1649ec55708 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/18 05:26 upstream 6e50979a9c87 42660d9e .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/17 07:13 upstream d532dd102151 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/16 01:42 upstream 7c6984405241 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/14 09:21 upstream d9fc1511728c 529798b0 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/12 12:33 upstream e8f60cd7db24 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/12 00:31 upstream 7dd4b804e080 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/10 17:41 upstream 5a41237ad1d4 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/09 21:32 upstream 1fe4fd6f5cad 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/09 04:49 upstream 1fe4fd6f5cad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/08 18:33 upstream 9b43a525db12 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/07 19:36 upstream 0a71553536d2 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/07 00:43 upstream 1f5abbd77e2c 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/06 12:24 upstream 41c03ba9beea 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/05 15:37 upstream 512dee0c00ad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/04 02:01 upstream 69b41ac87e4a f0036e18 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/02 07:16 upstream 88603b6dc419 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2023/01/01 01:42 upstream c8451c141e07 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/12/27 18:06 upstream 1b929c02afd3 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/12/26 16:19 upstream 1b929c02afd3 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/12/25 19:48 upstream 72a85e2b0a1e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/12/24 00:05 upstream 51094a24b85e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/12/23 18:40 upstream 8395ae05cb5a 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/12/21 14:29 upstream b6bb9676f216 4067838e .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/12/21 11:00 upstream 6feb57c2fd7c d3e76707 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/12/20 00:50 upstream aeba12b26c79 c52b2efb .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/12/18 15:00 upstream f9ff5644bcc0 05494336 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/12/16 08:08 upstream 851f657a8642 6f9c033e .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/12/14 17:49 upstream e2ca6ba6ba01 b18f0a64 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/12/13 04:00 upstream 830b3c68c1fb 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/12/12 11:28 upstream 4cee37b3a4e6 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/12/10 13:11 upstream 3ecc37918c80 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/12/09 21:48 upstream 0d1409e4ff08 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/12/08 21:09 upstream 479174d402bc 1034e5fa .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/12/08 13:05 upstream 479174d402bc d88f3abb .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/12/04 06:48 upstream c2bf05db6c78 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/12/01 05:07 upstream 04aa64375f48 4c2a66e8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 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
* Struck through repros no longer work on HEAD.