syzbot


KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru (2)

Status: moderation: reported on 2021/10/01 15:57
Reported-by: syzbot+aea2daf492f8a5b182aa@syzkaller.appspotmail.com
First crash: 543d, last: 23h43m
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru 14 963d 1030d 0/24 auto-closed as invalid on 2020/04/15 20:03

Sample crash report:
FAT-fs (loop3): bogus number of reserved sectors
FAT-fs (loop3): Can't find a valid FAT filesystem
==================================================================
BUG: KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru

write to 0xffff888237c28478 of 8 bytes by task 8398 on cpu 0:
 __invalidate_bh_lrus fs/buffer.c:1392 [inline]
 invalidate_bh_lru+0xad/0x110 fs/buffer.c:1404
 smp_call_function_many_cond+0x5a5/0x790 kernel/smp.c:979
 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
 invalidate_bdev+0x51/0x80 block/bdev.c:84
 invalidate_disk+0x25/0xb0 block/genhd.c:673
 __loop_clr_fd+0x176/0x3c0 drivers/block/loop.c:1164
 loop_clr_fd drivers/block/loop.c:1257 [inline]
 lo_ioctl+0xd8c/0x1290 drivers/block/loop.c:1563
 blkdev_ioctl+0x20e/0x440 block/ioctl.c:614
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:856
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:856
 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 0xffff888237c28478 of 8 bytes by task 8397 on cpu 1:
 has_bh_in_lru+0x31/0x1c0 fs/buffer.c:1414
 smp_call_function_many_cond+0x34a/0x790 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
 invalidate_bdev+0x51/0x80 block/bdev.c:84
 invalidate_disk+0x25/0xb0 block/genhd.c:673
 __loop_clr_fd+0x176/0x3c0 drivers/block/loop.c:1164
 loop_clr_fd drivers/block/loop.c:1257 [inline]
 lo_ioctl+0xd8c/0x1290 drivers/block/loop.c:1563
 blkdev_ioctl+0x20e/0x440 block/ioctl.c:614
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:856
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:856
 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

value changed: 0xffff888106340bc8 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 8397 Comm: syz-executor.3 Not tainted 6.0.0-rc6-syzkaller-00309-g1a61b828566f-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
==================================================================

Crashes (198):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/09/25 10:43 upstream 1a61b828566f 0042f2b4 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/09/23 05:25 upstream dc164f4fb00a 0042f2b4 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/09/14 19:46 upstream 3245cb65fd91 b884348d .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/09/10 23:44 upstream b96fbd602d35 356d8217 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/09/05 09:20 upstream 7e18e42e4b28 28811d0a .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/09/04 13:45 upstream 7726d4c3e60b 28811d0a .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/09/03 22:01 upstream 42cf58c272ee 28811d0a .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/09/03 09:58 upstream d895ec7938c4 49e94a20 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/25 03:43 upstream c40e8341e3b3 514514f6 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/22 07:57 upstream e3f259d33c0e 26a13b38 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/20 09:37 upstream 50cd95ac4654 26a13b38 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/19 16:02 upstream 4c2d0b039c5c 26a13b38 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/13 13:17 upstream 7ebfc85e2cd7 8dfcaa3d .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/11 18:12 upstream ffcf9c5700e4 787ed7e0 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/10 00:11 upstream 426b4ca2d6a5 c2a623d6 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/07 23:06 upstream 3bc1bc0b59d0 88e3a122 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/07 15:11 upstream 1612c382ffbd 88e3a122 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/06 05:38 upstream 9e2f40233670 e853abd9 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/04 08:28 upstream ff89dd08c0f0 1c9013ac .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/03 06:11 upstream 7d0d3fa7339e 1c9013ac .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/08/01 19:15 upstream 3d7cb6b04c3f fef302b1 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/30 11:54 upstream e65c6a46df94 fef302b1 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/29 18:51 upstream 6e2c0490769e fef302b1 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/29 00:05 upstream 33ea1340bafe fb95c74d .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/28 14:50 upstream 6e7765cb477a fb95c74d .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/25 03:53 upstream af2c9ac24019 22343af4 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/24 01:05 upstream 515f71412bb7 22343af4 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/23 15:55 upstream 70664fc10c0d 22343af4 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/22 00:10 upstream 68e77ffbfd06 5e6028b9 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/20 17:11 upstream ca85855bdcae 88cb1383 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/19 02:19 upstream 80e19f34c288 ff988920 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/11 15:45 upstream 32346491ddf2 f3f217ff .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/11 06:07 upstream d9919d43cbf6 b5765a15 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/09 06:42 upstream a471da3100ef b5765a15 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/07 09:22 upstream 9f09069cde34 bff65f44 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/05 01:04 upstream c1084b6c5620 bff65f44 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/07/02 02:34 upstream b336ad598a3b 1434eec0 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/06/30 06:51 upstream d9b2ba67917c 1434eec0 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/06/27 00:32 upstream 82708bb1eb9e a371c43c .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/06/24 20:34 upstream 38bc4ac43168 a371c43c .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/06/24 16:12 upstream 92f20ff72066 a371c43c .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/06/21 07:47 upstream 78ca55889a54 0fc5c330 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/06/19 20:44 upstream 05c6ca8512f2 8f633d84 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/06/19 08:10 upstream 354c6e071be9 8f633d84 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/06/17 05:17 upstream 48a23ec6ff2b 1719ee24 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/06/16 04:56 upstream 30306f6194ca 1719ee24 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/06/15 10:00 upstream 018ab4fabddd 127d1faf .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/06/15 05:15 upstream 24625f7d91fb 127d1faf .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2022/06/13 00:20 upstream 997952851843 0d5abf15 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2021/10/01 05:00 upstream 4de593fb965f 1d849ab4 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2021/09/27 15:43 upstream 5816b3e6577e 78494d16 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
ci2-upstream-kcsan-gce 2021/04/01 00:50 upstream d19cc4bfbff1 6a81331a .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lru
* Struck through repros no longer work on HEAD.