syzbot


KCSAN: data-race in detach_if_pending / wbt_wait (2)

Status: auto-closed as invalid on 2020/04/04 17:24
Subsystems: block
[Documentation on labels]
First crash: 1592d, last: 1565d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in detach_if_pending / wbt_wait block 1 1654d 1654d 0/26 closed as invalid on 2019/11/19 13:44

Sample crash report:
==================================================================
BUG: KCSAN: data-race in detach_if_pending / wbt_wait

read to 0xffff88812b17c118 of 8 bytes by task 8046 on cpu 1:
 blk_stat_is_active block/blk-stat.h:131 [inline]
 wbt_wait+0x177/0x250 block/blk-wbt.c:593
 __rq_qos_throttle+0x47/0x70 block/blk-rq-qos.c:72
 rq_qos_throttle block/blk-rq-qos.h:182 [inline]
 blk_mq_make_request+0x29c/0xf60 block/blk-mq.c:1932
 generic_make_request block/blk-core.c:1066 [inline]
 generic_make_request+0x196/0x700 block/blk-core.c:1008
 submit_bio+0x96/0x3c0 block/blk-core.c:1192
 submit_bh_wbc+0x40f/0x460 fs/buffer.c:3135
 submit_bh fs/buffer.c:3141 [inline]
 __sync_dirty_buffer+0xd3/0x210 fs/buffer.c:3227
 sync_dirty_buffer+0x24/0x40 fs/buffer.c:3240
 __ext4_handle_dirty_metadata+0x19c/0x3e0 fs/ext4/ext4_jbd2.c:316
 ext4_handle_dirty_dirblock+0x20a/0x280 fs/ext4/namei.c:404
 ext4_init_new_dir fs/ext4/namei.c:2749 [inline]
 ext4_mkdir+0x48b/0x820 fs/ext4/namei.c:2784
 vfs_mkdir+0x283/0x390 fs/namei.c:3819
 do_mkdirat+0x1ac/0x1f0 fs/namei.c:3842
 __do_sys_mkdir fs/namei.c:3858 [inline]
 __se_sys_mkdir fs/namei.c:3856 [inline]
 __x64_sys_mkdir+0x40/0x50 fs/namei.c:3856
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff88812b17c118 of 8 bytes by task 10 on cpu 0:
 __hlist_del include/linux/list.h:764 [inline]
 detach_timer kernel/time/timer.c:815 [inline]
 detach_if_pending+0xcd/0x290 kernel/time/timer.c:832
 try_to_del_timer_sync+0x60/0xb0 kernel/time/timer.c:1226
 del_timer_sync+0x6b/0xa0 kernel/time/timer.c:1365
 schedule_timeout+0x2d2/0x6e0 kernel/time/timer.c:1896
 rcu_gp_fqs_loop+0x37c/0x580 kernel/rcu/tree.c:1661
 rcu_gp_kthread+0x143/0x230 kernel/rcu/tree.c:1821
 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 10 Comm: rcu_preempt Not tainted 5.5.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/01/25 17:24 https://github.com/google/ktsan.git kcsan 245a43005292 2e95ab33 .config console log report ci2-upstream-kcsan-gce
2019/12/28 18:50 https://github.com/google/ktsan.git kcsan 245a43005292 af6b8ef8 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.