Hello,
syzbot found the following issue on:
HEAD commit: c2e7554e Merge tag 'gfs2-v5.10-rc4-fixes' of git://git.ker..
git tree: upstream
console output:
https://syzkaller.appspot.com/x/log.txt?x=11055572500000
kernel config:
https://syzkaller.appspot.com/x/.config?x=e9a6e9171a00e85a
dashboard link:
https://syzkaller.appspot.com/bug?extid=7017e2e7267e5dd9ddd0
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project.git 913f6005669cfb590c99865a90bc51ed0983d09d)
CC: [
ax...@kernel.dk linux...@vger.kernel.org linux-...@vger.kernel.org]
Unfortunately, I don't have any reproducer for this issue yet.
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+7017e2...@syzkaller.appspotmail.com
==================================================================
BUG: KCSAN: data-race in rq_depth_scale_up / wbt_inflight_cb
write to 0xffff8881039210e0 of 4 bytes by interrupt on cpu 1:
rq_depth_calc_max_depth block/blk-rq-qos.c:157 [inline]
rq_depth_scale_up+0x156/0x180 block/blk-rq-qos.c:174
scale_up block/blk-wbt.c:311 [inline]
wb_timer_fn+0xd4/0xa00 block/blk-wbt.c:374
blk_stat_timer_fn+0x3f4/0x410 block/blk-stat.c:99
call_timer_fn+0x2e/0x240 kernel/time/timer.c:1410
expire_timers+0x116/0x260 kernel/time/timer.c:1455
__run_timers+0x338/0x3d0 kernel/time/timer.c:1747
run_timer_softirq+0x19/0x30 kernel/time/timer.c:1760
__do_softirq+0x12c/0x2b1 kernel/softirq.c:298
asm_call_irq_on_stack+0xf/0x20
__run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
do_softirq_own_stack+0x32/0x40 arch/x86/kernel/irq_64.c:77
invoke_softirq kernel/softirq.c:393 [inline]
__irq_exit_rcu+0xb2/0xc0 kernel/softirq.c:423
sysvec_apic_timer_interrupt+0x74/0x90 arch/x86/kernel/apic/apic.c:1091
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:631
__preempt_count_dec_and_test arch/x86/include/asm/preempt.h:94 [inline]
__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline]
_raw_spin_unlock_irq+0x2c/0x40 kernel/locking/spinlock.c:199
finish_lock_switch kernel/sched/core.c:3513 [inline]
finish_task_switch+0x81/0x280 kernel/sched/core.c:3613
context_switch kernel/sched/core.c:3777 [inline]
__schedule+0x39b/0x550 kernel/sched/core.c:4523
schedule+0x7f/0xb0 kernel/sched/core.c:4601
freezable_schedule include/linux/freezer.h:172 [inline]
do_nanosleep+0xff/0x390 kernel/time/hrtimer.c:1878
hrtimer_nanosleep kernel/time/hrtimer.c:1931 [inline]
__do_sys_nanosleep kernel/time/hrtimer.c:1965 [inline]
__se_sys_nanosleep+0x20b/0x2a0 kernel/time/hrtimer.c:1952
__x64_sys_nanosleep+0x2d/0x40 kernel/time/hrtimer.c:1952
do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xa9
read to 0xffff8881039210e0 of 4 bytes by task 23089 on cpu 0:
get_limit block/blk-wbt.c:473 [inline]
wbt_inflight_cb+0xc6/0x220 block/blk-wbt.c:495
rq_qos_wait+0xac/0x210 block/blk-rq-qos.c:266
__wbt_wait block/blk-wbt.c:518 [inline]
wbt_wait+0x1bb/0x2b0 block/blk-wbt.c:583
__rq_qos_throttle+0x39/0x70 block/blk-rq-qos.c:72
rq_qos_throttle block/blk-rq-qos.h:182 [inline]
blk_mq_submit_bio+0x233/0x1020 block/blk-mq.c:2174
__submit_bio_noacct_mq block/blk-core.c:1026 [inline]
submit_bio_noacct+0x77d/0x930 block/blk-core.c:1059
submit_bio+0x1f3/0x360 block/blk-core.c:1129
ext4_io_submit+0xcd/0xf0 fs/ext4/page-io.c:382
ext4_writepages+0x143a/0x1e30 fs/ext4/inode.c:2812
do_writepages+0x7b/0x150 mm/page-writeback.c:2352
__filemap_fdatawrite_range+0x19d/0x1d0 mm/filemap.c:422
filemap_write_and_wait_range+0x8b/0x2a0 mm/filemap.c:655
__iomap_dio_rw+0x38c/0x9b0 fs/iomap/direct-io.c:489
iomap_dio_rw+0x30/0x70 fs/iomap/direct-io.c:605
ext4_dio_read_iter fs/ext4/file.c:77 [inline]
ext4_file_read_iter+0x3bd/0x420 fs/ext4/file.c:129
call_read_iter include/linux/fs.h:1897 [inline]
generic_file_splice_read+0x22a/0x310 fs/splice.c:311
do_splice_to fs/splice.c:788 [inline]
splice_direct_to_actor+0x2aa/0x650 fs/splice.c:867
do_splice_direct+0xf5/0x170 fs/splice.c:976
do_sendfile+0x5db/0xca0 fs/read_write.c:1257
__do_sys_sendfile64 fs/read_write.c:1318 [inline]
__se_sys_sendfile64 fs/read_write.c:1304 [inline]
__x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1304
do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xa9
Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 23089 Comm: syz-executor.1 Not tainted 5.10.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
---
This report is generated by a bot. It may contain errors.
See
https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at
syzk...@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.