syzbot


KCSAN: data-race in __mod_timer / __mod_timer (6)

Status: auto-closed as invalid on 2021/11/17 13:29
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 482d, last: 482d
similar bugs (7):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __mod_timer / __mod_timer 1 953d 953d 0/24 auto-closed as invalid on 2020/08/03 09:45
upstream KCSAN: data-race in __mod_timer / __mod_timer (2) 6 792d 792d 0/24 auto-closed as invalid on 2021/01/11 09:46
upstream KCSAN: data-race in __mod_timer / __mod_timer (8) 19 143d 327d 0/24 auto-obsoleted due to no activity on 2022/10/22 07:18
upstream KCSAN: data-race in __mod_timer / __mod_timer (3) 1 754d 754d 0/24 auto-closed as invalid on 2021/02/18 17:11
upstream KCSAN: data-race in __mod_timer / __mod_timer (4) 1 716d 716d 0/24 auto-closed as invalid on 2021/03/28 20:33
upstream KCSAN: data-race in __mod_timer / __mod_timer (7) 11 370d 438d 0/24 auto-closed as invalid on 2022/03/10 01:23
upstream KCSAN: data-race in __mod_timer / __mod_timer (5) 2 667d 676d 0/24 auto-closed as invalid on 2021/05/17 11:47

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

write to 0xffff888102758388 of 8 bytes by task 31133 on cpu 1:
 __mod_timer+0x731/0xbf0 kernel/time/timer.c:1052
 mod_timer+0x1b/0x20 kernel/time/timer.c:1108
 blk_add_timer+0x191/0x1a0 block/blk-timeout.c:164
 blk_mq_start_request+0x115/0x1b0 block/blk-mq.c:727
 scsi_queue_rq+0x1295/0x15a0 drivers/scsi/scsi_lib.c:1688
 blk_mq_dispatch_rq_list+0x63b/0x1080 block/blk-mq.c:1360
 __blk_mq_do_dispatch_sched block/blk-mq-sched.c:201 [inline]
 blk_mq_do_dispatch_sched+0x3b5/0x640 block/blk-mq-sched.c:214
 __blk_mq_sched_dispatch_requests+0x1eb/0x290
 blk_mq_sched_dispatch_requests+0x9f/0x110 block/blk-mq-sched.c:360
 __blk_mq_run_hw_queue+0xbc/0x140 block/blk-mq.c:1480
 __blk_mq_delay_run_hw_queue+0x163/0x2f0 block/blk-mq.c:1557
 blk_mq_run_hw_queue+0x22c/0x250 block/blk-mq.c:1610
 blk_mq_sched_insert_requests+0x12b/0x1f0 block/blk-mq-sched.c:513
 blk_mq_flush_plug_list+0x302/0x3d0 block/blk-mq.c:1935
 blk_flush_plug_list+0x235/0x260 block/blk-core.c:1718
 blk_finish_plug+0x44/0x60 block/blk-core.c:1735
 ext4_writepages+0x18f1/0x1d70 fs/ext4/inode.c:2849
 do_writepages+0x26b/0x3c0 mm/page-writeback.c:2364
 filemap_fdatawrite_wbc mm/filemap.c:400 [inline]
 __filemap_fdatawrite_range mm/filemap.c:433 [inline]
 file_write_and_wait_range+0x1ae/0x240 mm/filemap.c:810
 ext4_sync_file+0x105/0x670 fs/ext4/fsync.c:151
 vfs_fsync_range+0x107/0x120 fs/sync.c:200
 generic_write_sync include/linux/fs.h:2955 [inline]
 ext4_buffered_write_iter+0x3af/0x400 fs/ext4/file.c:277
 ext4_file_write_iter+0x2e7/0x11f0
 call_write_iter include/linux/fs.h:2163 [inline]
 do_iter_readv_writev+0x2de/0x380 fs/read_write.c:729
 do_iter_write+0x192/0x5c0 fs/read_write.c:855
 vfs_iter_write+0x4c/0x70 fs/read_write.c:896
 iter_file_splice_write+0x43a/0x790 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:936
 splice_direct_to_actor+0x345/0x650 fs/splice.c:891
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x63e/0xbb0 fs/read_write.c:1249
 __do_sys_sendfile64 fs/read_write.c:1308 [inline]
 __se_sys_sendfile64 fs/read_write.c:1300 [inline]
 __x64_sys_sendfile64+0xb9/0x140 fs/read_write.c:1300
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888102758388 of 8 bytes by task 52 on cpu 0:
 __mod_timer+0x7d/0xbf0 kernel/time/timer.c:980
 mod_timer+0x1b/0x20 kernel/time/timer.c:1108
 blk_add_timer+0x191/0x1a0 block/blk-timeout.c:164
 blk_mq_start_request+0x115/0x1b0 block/blk-mq.c:727
 scsi_queue_rq+0x1295/0x15a0 drivers/scsi/scsi_lib.c:1688
 blk_mq_dispatch_rq_list+0x63b/0x1080 block/blk-mq.c:1360
 __blk_mq_do_dispatch_sched block/blk-mq-sched.c:201 [inline]
 blk_mq_do_dispatch_sched+0x3b5/0x640 block/blk-mq-sched.c:214
 __blk_mq_sched_dispatch_requests+0x1eb/0x290
 blk_mq_sched_dispatch_requests+0x9f/0x110 block/blk-mq-sched.c:360
 __blk_mq_run_hw_queue+0xbc/0x140 block/blk-mq.c:1480
 blk_mq_run_work_fn+0x3d/0x50 block/blk-mq.c:1812
 process_one_work+0x402/0x910 kernel/workqueue.c:2297
 worker_thread+0x636/0xae0 kernel/workqueue.c:2444
 kthread+0x262/0x280 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30

value changed: 0x00000001000373f7 -> 0x0000000100036ab4

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 52 Comm: kworker/0:1H Not tainted 5.15.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: kblockd blk_mq_run_work_fn
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2021/10/13 13:26 upstream f4d0cc426f77 9d56e7dd .config console log report info KCSAN: data-race in __mod_timer / __mod_timer
* Struck through repros no longer work on HEAD.