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: 946d, last: 16h05m

Sample crash report:
loop1: detected capacity change from 0 to 512
==================================================================
BUG: KCSAN: data-race in __find_get_block / has_bh_in_lru

write to 0xffff888237c283f8 of 8 bytes by task 10703 on cpu 0:
 bh_lru_install fs/buffer.c:1250 [inline]
 __find_get_block+0x22c/0x6c0 fs/buffer.c:1309
 __getblk_slow fs/buffer.c:1034 [inline]
 __getblk_gfp+0xde/0x1c0 fs/buffer.c:1333
 sb_getblk_gfp include/linux/buffer_head.h:333 [inline]
 __ext4_sb_bread_gfp fs/ext4/super.c:236 [inline]
 ext4_sb_bread_unmovable+0x3b/0x1a0 fs/ext4/super.c:259
 __ext4_fill_super fs/ext4/super.c:4343 [inline]
 ext4_fill_super+0x416/0x4f10 fs/ext4/super.c:5499
 get_tree_bdev+0x2b4/0x3b0 fs/super.c:1292
 ext4_get_tree+0x18/0x20 fs/ext4/super.c:5529
 vfs_get_tree+0x49/0x190 fs/super.c:1497
 do_new_mount+0x200/0x650 fs/namespace.c:3040
 path_mount+0x4b1/0xb60 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x281/0x2d0 fs/namespace.c:3568
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3568
 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+0x46/0xb0

read to 0xffff888237c283f8 of 8 bytes by task 10701 on cpu 1:
 has_bh_in_lru+0x31/0x1c0 fs/buffer.c:1414
 smp_call_function_many_cond+0x2a9/0x6d0 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:76 [inline]
 set_blocksize+0x242/0x270 block/bdev.c:153
 sb_set_blocksize+0x2c/0xa0 block/bdev.c:162
 __ext4_fill_super fs/ext4/super.c:4735 [inline]
 ext4_fill_super+0x21d2/0x4f10 fs/ext4/super.c:5499
 get_tree_bdev+0x2b4/0x3b0 fs/super.c:1292
 ext4_get_tree+0x18/0x20 fs/ext4/super.c:5529
 vfs_get_tree+0x49/0x190 fs/super.c:1497
 do_new_mount+0x200/0x650 fs/namespace.c:3040
 path_mount+0x4b1/0xb60 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x281/0x2d0 fs/namespace.c:3568
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3568
 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+0x46/0xb0

value changed: 0xffff888106749548 -> 0xffff88813c0055b0

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 10701 Comm: syz-executor.1 Not tainted 5.18.0-syzkaller-09061-g16477cdfefdb-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
EXT4-fs (loop1): inodes count not valid: 262176 vs 32

Crashes (1106):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/26 23:32 upstream 16477cdfefdb 3037caa9 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/26 10:04 upstream d7227785e384 3037caa9 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/25 01:28 upstream 0350785b0a09 647c0e27 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/24 11:26 upstream 143a6252e1b8 fcfad4ff .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/24 01:03 upstream 140e40e39a29 e7f9308d .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/23 12:40 upstream 4b0986a3613c 4c7657cb .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/22 11:13 upstream eaea45fc0e7b 7268fa62 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/21 09:41 upstream 3b5e1590a267 7268fa62 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/20 20:49 upstream 3d7285a335ed bd37ad7e .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/19 18:51 upstream f993aed406ea cb1ac2e7 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/19 03:08 upstream ef1302160bfb 50c53f39 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/18 03:26 upstream 210e04ff7681 744a39e2 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/16 09:58 upstream 42226c989789 744a39e2 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/15 19:31 upstream bc403203d65a 744a39e2 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/15 06:06 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/14 13:59 upstream ec7f49619d8e 744a39e2 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/14 03:57 upstream f2dd007445b1 107f6434 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/13 14:46 upstream f3f19f939c11 7ce5a022 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/13 01:12 upstream 0ac824f379fb 9ad6612a .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/12 00:34 upstream feb9c5e19e91 beb0b407 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/11 01:53 upstream feb9c5e19e91 8d7b3b67 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/10 00:11 upstream 9be9ed2612b5 8b277b8e .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/08 21:15 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/08 12:27 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/08 04:30 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/07 12:33 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/07 08:09 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/06 11:29 upstream fe27d189e3f4 efeff0a5 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/05 12:58 upstream a7391ad35724 b3f09415 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/05 01:48 upstream a7391ad35724 dc9e5259 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/04 11:17 upstream 107c948d1d3e dc9e5259 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/03 20:10 upstream ef8e4d3c2ab1 dc9e5259 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/03 05:08 upstream 9050ba3a61a4 2df221f6 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/02 12:36 upstream 672c0c517342 2df221f6 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/02 00:48 upstream b2da7df52e16 2df221f6 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/05/01 01:56 upstream 57ae8a492116 2df221f6 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/04/30 21:36 upstream 8013d1d3d2e3 2df221f6 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/04/30 08:48 upstream 8013d1d3d2e3 ad6b95d8 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/04/28 21:37 upstream 259b897e5a79 e9076525 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/04/28 10:10 upstream 8f4dd16603ce 8a1f1f07 .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/04/27 15:17 upstream 46cf2c613f4b 1fa34c1b .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/04/26 22:36 upstream cf424ef014ac 1fa34c1b .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/04/26 14:30 upstream d615b5416f8a 1fa34c1b .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/04/25 22:31 upstream af2d861d4cd2 152baedd .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/04/25 07:06 upstream 42740a2ff5d3 131df97d .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/04/24 14:26 upstream 22da5264abf4 131df97d .config log report info KCSAN: data-race in __find_get_block / has_bh_in_lru
ci2-upstream-kcsan-gce 2022/04/23 23:52 upstream 13bc32bad705 131df97d .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