syzbot


KCSAN: data-race in detach_if_pending / wbt_wait

Status: closed as invalid on 2019/11/19 13:44
Subsystems: block
[Documentation on labels]
First crash: 1641d, last: 1641d
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 (2) block 2 1552d 1580d 0/26 auto-closed as invalid on 2020/04/04 17:24

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

write to 0xffff88812aa9fc18 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/0x2d0 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:1639
 rcu_gp_kthread+0x143/0x230 kernel/rcu/tree.c:1799
 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

read to 0xffff88812aa9fc18 of 8 bytes by task 14466 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:185 [inline]
 blk_mq_make_request+0x29c/0xf60 block/blk-mq.c:1971
 generic_make_request block/blk-core.c:1064 [inline]
 generic_make_request+0x196/0x740 block/blk-core.c:1006
 submit_bio+0x96/0x3c0 block/blk-core.c:1190
 submit_bh_wbc+0x40f/0x460 fs/buffer.c:3095
 submit_bh fs/buffer.c:3101 [inline]
 __sync_dirty_buffer+0xd3/0x210 fs/buffer.c:3187
 sync_dirty_buffer+0x24/0x40 fs/buffer.c:3200
 __ext4_handle_dirty_metadata+0x19c/0x350 fs/ext4/ext4_jbd2.c:300
 ext4_handle_dirty_dirblock+0x20a/0x280 fs/ext4/namei.c:404
 ext4_init_new_dir fs/ext4/namei.c:2738 [inline]
 ext4_mkdir+0x4aa/0x820 fs/ext4/namei.c:2773
 vfs_mkdir+0x283/0x390 fs/namei.c:3807
 do_mkdirat+0x1ac/0x1f0 fs/namei.c:3830

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14466 Comm: syz-executor.0 Not tainted 5.4.0-rc3+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/28 06:10 https://github.com/google/ktsan.git kcsan 05f2236801fe 25bb509e .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.