INFO: task syz-executor.5:7391 blocked for more than 143 seconds.
Not tainted 6.3.0-syzkaller-10197-g91ec4b0d11fe #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5 state:D stack:24616 pid:7391 ppid:5016 flags:0x00004004
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5307 [inline]
__schedule+0x173b/0x4630 kernel/sched/core.c:6625
schedule+0xc3/0x180 kernel/sched/core.c:6701
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760
rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178
__down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306
inode_lock include/linux/fs.h:761 [inline]
ext4_buffered_write_iter+0xaf/0x3a0 fs/ext4/file.c:283
ext4_file_write_iter+0x1d6/0x1930
do_iter_write+0x7b1/0xcb0 fs/read_write.c:860
iter_file_splice_write+0x843/0xfe0 fs/splice.c:779
do_splice_from fs/splice.c:857 [inline]
direct_splice_actor+0xe7/0x1c0 fs/splice.c:1023
splice_direct_to_actor+0x4c4/0xbd0 fs/splice.c:978
do_splice_direct+0x283/0x3d0 fs/splice.c:1066
do_sendfile+0x620/0xff0 fs/read_write.c:1254
__do_sys_sendfile64 fs/read_write.c:1322 [inline]
__se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1308
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f186ca8c169
RSP: 002b:00007f186d720168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f186cbabf80 RCX: 00007f186ca8c169
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004
RBP: 00007f186cae7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdf3592abf R14: 00007f186d720300 R15: 0000000000022000
</TASK>
INFO: task syz-executor.5:7409 blocked for more than 143 seconds.
Not tainted 6.3.0-syzkaller-10197-g91ec4b0d11fe #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5 state:D stack:24984 pid:7409 ppid:5016 flags:0x00004004
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5307 [inline]
__schedule+0x173b/0x4630 kernel/sched/core.c:6625
schedule+0xc3/0x180 kernel/sched/core.c:6701
io_schedule+0x8c/0x100 kernel/sched/core.c:8887
bit_wait_io+0x12/0xc0 kernel/sched/wait_bit.c:209
__wait_on_bit_lock+0xbd/0x1a0 kernel/sched/wait_bit.c:90
out_of_line_wait_on_bit_lock+0x1d4/0x250 kernel/sched/wait_bit.c:117
wait_on_bit_lock_io include/linux/wait_bit.h:208 [inline]
__lock_buffer fs/buffer.c:70 [inline]
lock_buffer include/linux/buffer_head.h:400 [inline]
__sync_dirty_buffer+0x120/0x380 fs/buffer.c:2776
__ext4_handle_dirty_metadata+0x2a6/0x820 fs/ext4/ext4_jbd2.c:387
ext4_convert_inline_data_nolock+0xaba/0xd80 fs/ext4/inline.c:1251
ext4_convert_inline_data+0x4da/0x620 fs/ext4/inline.c:2062
ext4_fallocate+0x14e/0x2000 fs/ext4/extents.c:4708
vfs_fallocate+0x54b/0x6b0 fs/open.c:324
ksys_fallocate fs/open.c:347 [inline]
__do_sys_fallocate fs/open.c:355 [inline]
__se_sys_fallocate fs/open.c:353 [inline]
__x64_sys_fallocate+0xbd/0x100 fs/open.c:353
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f186ca8c169
RSP: 002b:00007f186d6ff168 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007f186cbac050 RCX: 00007f186ca8c169
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000008
RBP: 00007f186cae7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000009000f4 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdf3592abf R14: 00007f186d6ff300 R15: 0000000000022000
</TASK>
INFO: task syz-executor.5:7415 blocked for more than 144 seconds.
Not tainted 6.3.0-syzkaller-10197-g91ec4b0d11fe #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5 state:D stack:28504 pid:7415 ppid:5016 flags:0x00004004
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5307 [inline]
__schedule+0x173b/0x4630 kernel/sched/core.c:6625
schedule+0xc3/0x180 kernel/sched/core.c:6701
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760
rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178
__down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306
inode_lock include/linux/fs.h:761 [inline]
ext4_dio_write_iter fs/ext4/file.c:534 [inline]
ext4_file_write_iter+0x5d5/0x1930 fs/ext4/file.c:708
call_write_iter include/linux/fs.h:1854 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x7da/0xbf0 fs/read_write.c:584
ksys_write+0x1a0/0x2c0 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f186ca8c169
RSP: 002b:00007f18632fe168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f186cbac120 RCX: 00007f186ca8c169
RDX: 0000000000000120 RSI: 0000000020000480 RDI: 0000000000000008
RBP: 00007f186cae7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdf3592abf R14: 00007f18632fe300 R15: 0000000000022000
</TASK>
INFO: task syz-executor.5:7418 blocked for more than 144 seconds.
Not tainted 6.3.0-syzkaller-10197-g91ec4b0d11fe #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5 state:D stack:29096 pid:7418 ppid:5016 flags:0x00004004
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5307 [inline]
__schedule+0x173b/0x4630 kernel/sched/core.c:6625
schedule+0xc3/0x180 kernel/sched/core.c:6701
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760
rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178
__down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306
inode_lock include/linux/fs.h:761 [inline]
ext4_fallocate+0x146/0x2000 fs/ext4/extents.c:4707
vfs_fallocate+0x54b/0x6b0 fs/open.c:324
ksys_fallocate fs/open.c:347 [inline]
__do_sys_fallocate fs/open.c:355 [inline]
__se_sys_fallocate fs/open.c:353 [inline]
__x64_sys_fallocate+0xbd/0x100 fs/open.c:353
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f186ca8c169
RSP: 002b:00007f18630dd168 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007f186cbac1f0 RCX: 00007f186ca8c169
RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000008
RBP: 00007f186cae7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000010000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdf3592abf R14: 00007f18630dd300 R15: 0000000000022000
</TASK>
Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/13:
#0: ffffffff8cf25370 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:518
1 lock held by rcu_tasks_trace/14:
#0: ffffffff8cf25730 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:518
1 lock held by khungtaskd/28:
#0: ffffffff8cf251a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
3 locks held by kworker/u4:4/56:
#0: ffff8880176ed138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2363
#1: ffffc90001577d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2365
#2: ffff88801662e0e0 (&type->s_umount_key#41){.+.+}-{3:3}, at: trylock_super+0x1f/0xf0 fs/super.c:414
2 locks held by getty/4732:
#0: ffff88802c6b2098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2176
5 locks held by kworker/u4:8/5160:
#0: ffff8880b993bed8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:539
#1: ffffc9000528fd20 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2365
#2: ffff8880b9929598 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x120/0x260 kernel/time/timer.c:999
#3: ffff8880b993bed8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:539
#4: ffff88807eabdab0 (&mm->cid_lock){....}-{2:2}, at: mm_cid_get kernel/sched/sched.h:3280 [inline]
#4: ffff88807eabdab0 (&mm->cid_lock){....}-{2:2}, at: switch_mm_cid kernel/sched/sched.h:3302 [inline]
#4: ffff88807eabdab0 (&mm->cid_lock){....}-{2:2}, at: prepare_task_switch kernel/sched/core.c:5117 [inline]
#4: ffff88807eabdab0 (&mm->cid_lock){....}-{2:2}, at: context_switch kernel/sched/core.c:5258 [inline]
#4: ffff88807eabdab0 (&mm->cid_lock){....}-{2:2}, at: __schedule+0x12e4/0x4630 kernel/sched/core.c:6625
2 locks held by syz-executor.5/7391:
#0: ffff88801da3e460 (sb_writers#4){.+.+}-{0:0}, at: do_sendfile+0x5fb/0xff0 fs/read_write.c:1253
#1: ffff888035914000 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:761 [inline]
#1: ffff888035914000 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: ext4_buffered_write_iter+0xaf/0x3a0 fs/ext4/file.c:283
3 locks held by syz-executor.5/7409:
#0: ffff88801da3e460 (sb_writers#4){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2508 [inline]
#0: ffff88801da3e460 (sb_writers#4){.+.+}-{0:0}, at: vfs_fallocate+0x4be/0x6b0 fs/open.c:323
#1: ffff888035914000 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:761 [inline]
#1: ffff888035914000 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: ext4_fallocate+0x146/0x2000 fs/ext4/extents.c:4707
#2: ffff888035913cc8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_lock_xattr fs/ext4/xattr.h:155 [inline]
#2: ffff888035913cc8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_convert_inline_data+0x3b6/0x620 fs/ext4/inline.c:2060
3 locks held by syz-executor.5/7415:
#0: ffff88801cb019e8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x254/0x2f0 fs/file.c:1047
#1: ffff88801da3e460 (sb_writers#4){.+.+}-{0:0}, at: vfs_write+0x27e/0xbf0 fs/read_write.c:580
#2: ffff888035914000 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:761 [inline]
#2: ffff888035914000 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: ext4_dio_write_iter fs/ext4/file.c:534 [inline]
#2: ffff888035914000 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: ext4_file_write_iter+0x5d5/0x1930 fs/ext4/file.c:708
2 locks held by syz-executor.5/7418:
#0: ffff88801da3e460 (sb_writers#4){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2508 [inline]
#0: ffff88801da3e460 (sb_writers#4){.+.+}-{0:0}, at: vfs_fallocate+0x4be/0x6b0 fs/open.c:323
#1: ffff888035914000 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:761 [inline]
#1: ffff888035914000 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: ext4_fallocate+0x146/0x2000 fs/ext4/extents.c:4707
2 locks held by syz-executor.0/7786:
#0: ffff8880200ba460 (sb_writers#4){.+.+}-{0:0}, at: do_sendfile+0x5fb/0xff0 fs/read_write.c:1253
#1: ffff888083c0ca00 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:761 [inline]
#1: ffff888083c0ca00 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: ext4_buffered_write_iter+0xaf/0x3a0 fs/ext4/file.c:283
3 locks held by syz-executor.0/7806:
#0: ffff8880200ba460 (sb_writers#4){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2508 [inline]
#0: ffff8880200ba460 (sb_writers#4){.+.+}-{0:0}, at: vfs_fallocate+0x4be/0x6b0 fs/open.c:323
#1: ffff888083c0ca00 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:761 [inline]
#1: ffff888083c0ca00 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: ext4_fallocate+0x146/0x2000 fs/ext4/extents.c:4707
#2: ffff888083c0c6c8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_lock_xattr fs/ext4/xattr.h:155 [inline]
#2: ffff888083c0c6c8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_convert_inline_data+0x3b6/0x620 fs/ext4/inline.c:2060
3 locks held by syz-executor.0/7817:
#0: ffff8880257eed68 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x254/0x2f0 fs/file.c:1047
#1: ffff8880200ba460 (sb_writers#4){.+.+}-{0:0}, at: vfs_write+0x27e/0xbf0 fs/read_write.c:580
#2: ffff888083c0ca00 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:761 [inline]
#2: ffff888083c0ca00 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: ext4_dio_write_iter fs/ext4/file.c:534 [inline]
#2: ffff888083c0ca00 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: ext4_file_write_iter+0x5d5/0x1930 fs/ext4/file.c:708
2 locks held by syz-executor.0/7818:
#0: ffff8880200ba460 (sb_writers#4){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2508 [inline]
#0: ffff8880200ba460 (sb_writers#4){.+.+}-{0:0}, at: vfs_fallocate+0x4be/0x6b0 fs/open.c:323
#1: ffff888083c0ca00 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:761 [inline]
#1: ffff888083c0ca00 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: ext4_fallocate+0x146/0x2000 fs/ext4/extents.c:4707
1 lock held by syz-executor.1/7808:
#0: ffff8881471d84c8 (&disk->open_mutex){+.+.}-{3:3}, at: sync_bdevs+0x1a9/0x320 block/bdev.c:975
1 lock held by syz-executor.5/7857:
#0: ffff8881471d84c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x145/0xa30 block/bdev.c:736
2 locks held by syz-executor.1/7955:
#0: ffff88801da3e0e0 (&type->s_umount_key#30){++++}-{3:3}, at: iterate_supers+0xb0/0x1e0 fs/super.c:743
#1: ffff8881471d27d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline]
#1: ffff8881471d27d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x278/0xab0 fs/fs-writeback.c:2728
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.3.0-syzkaller-10197-g91ec4b0d11fe #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106
nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x187/0x300 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
watchdog+0xec2/0xf00 kernel/hung_task.c:379
kthread+0x2b2/0x350 kernel/kthread.c:379
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
</TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 5162 Comm: kworker/u4:9 Not tainted 6.3.0-syzkaller-10197-g91ec4b0d11fe #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
Workqueue: bat_events batadv_nc_worker
RIP: 0010:__kasan_check_read+0xa/0x20 mm/kasan/shadow.c:31
Code: 48 c7 c7 1f dc 82 8c 48 89 de eb 0a 48 c7 c7 57 dc 82 8c 4c 89 fe e8 d5 a4 c4 08 31 db eb d4 90 f3 0f 1e fa 89 f6 48 8b 0c 24 <31> d2 e9 2f eb ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00
RSP: 0018:ffffc900052efa78 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff816a7954
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8e545aa8
RBP: ffffc900052efbd8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000a5df58
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8880309a4c40
FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c000d1b000 CR3: 000000000cd30000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
instrument_atomic_read include/linux/instrumented.h:68 [inline]
_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
cpumask_test_cpu include/linux/cpumask.h:504 [inline]
cpu_online include/linux/cpumask.h:1082 [inline]
trace_lock_acquire include/trace/events/lock.h:24 [inline]
lock_acquire+0xd4/0x520 kernel/locking/lockdep.c:5662
rcu_lock_acquire+0x2e/0x40 include/linux/rcupdate.h:327
rcu_read_lock include/linux/rcupdate.h:773 [inline]
batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline]
batadv_nc_worker+0xc5/0x5c0 net/batman-adv/network-coding.c:719
process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2390
worker_thread+0xa63/0x1210 kernel/workqueue.c:2537
kthread+0x2b2/0x350 kernel/kthread.c:379
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
</TASK>