syzbot


KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu

Status: auto-closed as invalid on 2021/12/28 13:59
Reported-by: syzbot+8302fb2b854bb5b51ac1@syzkaller.appspotmail.com
First crash: 573d, last: 372d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (3) 1 48d 48d 0/24 auto-obsoleted due to no activity on 2022/11/16 21:51
upstream KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu (2) 14 93d 299d 0/24 auto-closed as invalid on 2022/10/03 06:12

Sample crash report:
loop3: detected capacity change from 0 to 2048
==================================================================
BUG: KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu

write to 0xffff888237d281d8 of 8 bytes by task 19 on cpu 1:
 __invalidate_bh_lrus fs/buffer.c:1393 [inline]
 invalidate_bh_lrus_cpu+0xad/0xe0 fs/buffer.c:1438
 lru_add_and_bh_lrus_drain mm/swap.c:732 [inline]
 lru_add_drain_per_cpu+0x4e/0x60 mm/swap.c:749
 process_one_work+0x3fc/0x980 kernel/workqueue.c:2298
 process_scheduled_works kernel/workqueue.c:2361 [inline]
 worker_thread+0x79f/0xa70 kernel/workqueue.c:2450
 kthread+0x2c7/0x2e0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30

read to 0xffff888237d281d8 of 8 bytes by task 12036 on cpu 0:
 has_bh_in_lru+0x31/0x1c0 fs/buffer.c:1415
 smp_call_function_many_cond+0x256/0x660 kernel/smp.c:917
 on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1135
 on_each_cpu_cond include/linux/smp.h:105 [inline]
 invalidate_bh_lrus+0x26/0x30 fs/buffer.c:1424
 kill_bdev block/bdev.c:77 [inline]
 set_blocksize+0x242/0x270 block/bdev.c:158
 sb_set_blocksize+0x2c/0xa0 block/bdev.c:167
 ext4_fill_super+0x2287/0x78f0 fs/ext4/super.c:4333
 mount_bdev+0x1e8/0x290 fs/super.c:1370
 ext4_mount+0x2d/0x40 fs/ext4/super.c:6523
 legacy_get_tree+0x70/0xc0 fs/fs_context.c:610
 vfs_get_tree+0x4a/0x1a0 fs/super.c:1500
 do_new_mount fs/namespace.c:2988 [inline]
 path_mount+0x11cf/0x1c40 fs/namespace.c:3318
 do_mount fs/namespace.c:3331 [inline]
 __do_sys_mount fs/namespace.c:3539 [inline]
 __se_sys_mount+0x24b/0x2f0 fs/namespace.c:3516
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3516
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0xffff88813abbbf70 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 12036 Comm: syz-executor.3 Not tainted 5.16.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (137):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/11/23 13:58 upstream 136057256686 545ab074 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/11/18 00:35 upstream ee1703cda8dc cafff8b6 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/11/02 22:46 upstream bfc484fe6abb 17f3edd2 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/10/20 23:33 upstream 2f111a6fd5b5 f111d03b .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/10/15 16:22 upstream 8fe31e0995f0 0c5d9412 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/09/25 07:40 upstream 7d42e9818258 8cac236e .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/09/23 23:31 upstream f10f0481a5b5 8cac236e .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/09/20 15:38 upstream e4e737bb5c17 3d9c9a2a .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/09/20 06:27 upstream 20621d2f27a0 70b76c1d .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/09/18 16:17 upstream 4357f03d6611 70b76c1d .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/09/18 04:44 upstream ddf21bd8ab98 70b76c1d .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/09/16 12:56 upstream ff1ffd71d5f0 07e953c1 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/09/16 03:54 upstream 80be5998ad63 07e953c1 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/09/15 18:59 upstream 3ca706c189db 07e953c1 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/09/14 22:56 upstream 1619b69edce1 07e953c1 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/09/13 18:23 upstream 6880fa6c5660 58d09404 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/09/13 12:08 upstream 6880fa6c5660 3ce60af8 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/09/11 20:34 upstream 926de8c4326c 3ce60af8 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/09/10 18:03 upstream bf9f243f23e6 5ae8508a .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/09/10 07:26 upstream bf9f243f23e6 e2776ee4 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/09/08 13:34 upstream ac08b1c68d1b e2776ee4 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/09/08 09:13 upstream 0bcfe68b8767 064c9eb7 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/09/03 12:46 upstream a9c9a6f741cd d236a457 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/09/03 08:01 upstream 7ba88a2a09f4 f62a5829 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/09/01 02:26 upstream b91db6a0b52e 7eb7e152 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/08/30 18:41 upstream 7d2a07b76933 8f58a0ef .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/08/28 09:15 upstream 64b4fc45bea6 d5a29e53 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/08/27 20:18 upstream 1a6436f37512 57b01c6e .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/08/26 10:21 upstream 73f3af7b4611 b599f2fc .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/08/25 02:22 upstream 6e764bcd1cf7 b599f2fc .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/08/24 04:39 upstream d5ae8d7f85b7 b599f2fc .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/08/23 14:33 upstream e22ce8eb631b b599f2fc .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/08/20 07:07 upstream f87d64319e6f b599f2fc .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/08/19 16:30 upstream d6d09a694205 e2da378b .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/08/17 14:28 upstream 794c7931a242 a2fe1cb5 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/08/16 19:05 upstream 7c60610d4767 6652437d .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/08/15 10:00 upstream 0aa78d17099b 2489ab88 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/08/14 04:01 upstream dfa377c35d70 2489ab88 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/08/13 12:33 upstream f8e6dfc64f61 3fd2ea69 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/08/12 07:26 upstream 1746f4db5135 6972b106 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/08/11 21:27 upstream 761c6d7ec820 6972b106 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/08/10 18:22 upstream 9a73fa375d58 6972b106 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/08/07 00:00 upstream 894d6f401b21 6972b106 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/08/06 15:55 upstream 902e7f373fff 2f537099 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/08/05 22:22 upstream e04480920d1e d2d6e680 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/08/05 06:09 upstream 251a1524293d 7f7bb950 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/08/05 01:43 upstream 251a1524293d b97d64c9 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/08/02 12:07 upstream c500bee1c5b2 6c236867 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/06/18 06:55 upstream fd0aa1a4567d aba2b2fb .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/06/17 16:28 upstream 70585216fe77 aba2b2fb .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
ci2-upstream-kcsan-gce 2021/05/06 13:50 upstream 8404c9fbc84b 06c27ff5 .config log report info KCSAN: data-race in has_bh_in_lru / invalidate_bh_lrus_cpu
* Struck through repros no longer work on HEAD.