INFO: task syz.4.84:4085 blocked for more than 143 seconds.
Not tainted 6.1.111-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.84 state:D stack:24512 pid:4085 ppid:3863 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5241 [inline]
__schedule+0x143f/0x4570 kernel/sched/core.c:6558
schedule+0xbf/0x180 kernel/sched/core.c:6634
rwsem_down_write_slowpath+0xea1/0x14b0 kernel/locking/rwsem.c:1189
filemap_invalidate_lock include/linux/fs.h:803 [inline]
blkdev_fallocate+0x225/0x4a0 block/fops.c:656
vfs_fallocate+0x547/0x6b0 fs/open.c:323
ksys_fallocate fs/open.c:346 [inline]
__do_sys_fallocate fs/open.c:354 [inline]
__se_sys_fallocate fs/open.c:352 [inline]
__x64_sys_fallocate+0xb9/0x100 fs/open.c:352
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f6d22d7def9
RSP: 002b:00007f6d23ab3038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007f6d22f36058 RCX: 00007f6d22d7def9
RDX: 0000000000000000 RSI: 0000000000000010 RDI: 0000000000000008
RBP: 00007f6d22df0b76 R08: 0000000000000000 R09: 0000000000000000
R10: 0000002000000400 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f6d22f36058 R15: 00007ffe1f9f1408
Showing all locks held in the system:
3 locks held by kworker/0:0/7:
#0: ffff888017c70938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267
#1: ffffc900000c7d20 (free_ipc_work){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267
#2: ffffffff8d3305f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:323 [inline]
#2: ffffffff8d3305f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x360/0x930 kernel/rcu/tree_exp.h:962
1 lock held by rcu_tasks_kthre/12:
#0: ffffffff8d32b1d0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xe30 kernel/rcu/tasks.h:517
1 lock held by rcu_tasks_trace/13:
#0: ffffffff8d32b9d0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xe30 kernel/rcu/tasks.h:517
1 lock held by khungtaskd/28:
#0: ffffffff8d32b000 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline]
#0: ffffffff8d32b000 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline]
#0: ffffffff8d32b000 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x290 kernel/locking/lockdep.c:6494
3 locks held by kworker/1:1H/52:
2 locks held by getty/3404:
#0: ffff88802ef66098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
#1: ffffc900031262f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a7/0x1db0 drivers/tty/n_tty.c:2198
2 locks held by kworker/0:3/3695:
#0: ffff888017c72138 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267
#1: ffffc9000439fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267
1 lock held by syz.4.5/3765:
2 locks held by kworker/u4:9/3794:
1 lock held by syz.4.84/4085:
#0: ffff888148f288c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:803 [inline]
#0: ffff888148f288c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x225/0x4a0 block/fops.c:656
1 lock held by syz.2.105/4171:
#0: ffff888148f288c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:803 [inline]
#0: ffff888148f288c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x225/0x4a0 block/fops.c:656
1 lock held by syz.3.381/5260:
#0: ffff888148f288c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:803 [inline]
#0: ffff888148f288c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x225/0x4a0 block/fops.c:656
7 locks held by syz-executor/5359:
#0: ffff88807f6fe460 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x269/0xbc0 fs/read_write.c:580
#1: ffff88804cad3088 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1e7/0x4f0 fs/kernfs/file.c:325
#2: ffff888142fb6cb8 (kn->active#50){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x20b/0x4f0 fs/kernfs/file.c:326
#3: ffffffff8de22aa8 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xf8/0x480 drivers/net/netdevsim/bus.c:209
#4: ffff8880591410e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline]
#4: ffff8880591410e8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1080 [inline]
#4: ffff8880591410e8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xb6/0x880 drivers/base/dd.c:1283
#5: ffff8880591422f8 (&devlink->lock_key){+.+.}-{3:3}, at: nsim_drv_remove+0x54/0x160 drivers/net/netdevsim/dev.c:1674
#6: ffffffff8d3304c0 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x48/0x5f0 kernel/rcu/tree.c:4019
1 lock held by syz.2.414/5391:
#0: ffff888148f288c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:803 [inline]
#0: ffff888148f288c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x225/0x4a0 block/fops.c:656
3 locks held by syz.4.419/5409:
#0: ffff88804f9610b8 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:508 [inline]
#0: ffff88804f9610b8 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x1ff/0x500 net/bluetooth/hci_core.c:2710
#1: ffff88804f960078 (&hdev->lock){+.+.}-{3:3}, at: hci_dev_close_sync+0x48d/0x1020 net/bluetooth/hci_sync.c:5053
#2: ffffffff8e650b88 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_disconn_cfm include/net/bluetooth/hci_core.h:1800 [inline]
#2: ffffffff8e650b88 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_conn_hash_flush+0xb8/0x2a0 net/bluetooth/hci_conn.c:2446
3 locks held by syz.1.421/5416:
#0: ffff88807f3310b8 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:508 [inline]
#0: ffff88807f3310b8 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x1ff/0x500 net/bluetooth/hci_core.c:2710
#1: ffff88807f330078 (&hdev->lock){+.+.}-{3:3}, at: hci_dev_close_sync+0x48d/0x1020 net/bluetooth/hci_sync.c:5053
#2: ffffffff8e650b88 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_disconn_cfm include/net/bluetooth/hci_core.h:1800 [inline]
#2: ffffffff8e650b88 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_conn_hash_flush+0xb8/0x2a0 net/bluetooth/hci_conn.c:2446
4 locks held by syz.0.423/5420:
#0: ffff88807f3350b8 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:508 [inline]
#0: ffff88807f3350b8 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x1ff/0x500 net/bluetooth/hci_core.c:2710
#1: ffff88807f334078 (&hdev->lock){+.+.}-{3:3}, at: hci_dev_close_sync+0x48d/0x1020 net/bluetooth/hci_sync.c:5053
#2: ffffffff8e650b88 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_disconn_cfm include/net/bluetooth/hci_core.h:1800 [inline]
#2: ffffffff8e650b88 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_conn_hash_flush+0xb8/0x2a0 net/bluetooth/hci_conn.c:2446
#3: ffffffff8d3305f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:291 [inline]
#3: ffffffff8d3305f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x4f0/0x930 kernel/rcu/tree_exp.h:962
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.1.111-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
nmi_cpu_backtrace+0x4e1/0x560 lib/nmi_backtrace.c:111
nmi_trigger_cpumask_backtrace+0x1ae/0x3f0 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline]
watchdog+0xf88/0xfd0 kernel/hung_task.c:377
kthread+0x28d/0x320 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 3765 Comm: syz.4.5 Not tainted 6.1.111-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:hlock_class kernel/locking/lockdep.c:228 [inline]
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4748 [inline]
RIP: 0010:__lock_acquire+0x794/0x1f80 kernel/locking/lockdep.c:4999
Code: 8b 5d 00 81 e3 ff 1f 00 00 48 89 d8 48 c1 e8 06 48 8d 3c c5 20 c2 1d 91 be 08 00 00 00 e8 b4 a1 77 00 48 0f a3 1d bc 30 b3 0f <73> 1b 48 8d 04 5b 48 c1 e0 06 48 8d 98 20 41 bb 90 48 ba 00 00 00
RSP: 0018:ffffc900049f7320 EFLAGS: 00000057
RAX: 0000000000000001 RBX: 000000000000002c RCX: ffffffff816a915c
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff911dc220
RBP: ffff888073c0a8e8 R08: dffffc0000000000 R09: fffffbfff223b845
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001
R13: ffff888073c0a8e8 R14: 0000000000000001 R15: 0000000000000003
FS: 00007f05de2c96c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2e8e137a8c CR3: 0000000026416000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662
rcu_lock_acquire include/linux/rcupdate.h:350 [inline]
rcu_read_lock include/linux/rcupdate.h:791 [inline]
percpu_ref_tryget_many include/linux/percpu-refcount.h:241 [inline]
percpu_ref_tryget include/linux/percpu-refcount.h:266 [inline]
blkg_tryget+0x3f/0x260 block/blk-cgroup.h:324
blkg_tryget_closest block/blk-cgroup.c:1879 [inline]
bio_associate_blkg_from_css+0xabc/0xca0 block/blk-cgroup.c:1911
__bio_clone+0x179/0x330 block/bio.c:771
bio_alloc_clone block/bio.c:803 [inline]
bio_split+0x104/0x430 block/bio.c:1584
bio_split_rw block/blk-merge.c:328 [inline]
__bio_split_to_limits+0xf34/0x1550 block/blk-merge.c:359
blk_mq_submit_bio+0x757/0x2300 block/blk-mq.c:3007
__submit_bio+0x261/0x2f0 block/blk-core.c:590
__submit_bio_noacct_mq block/blk-core.c:667 [inline]
submit_bio_noacct_nocheck+0xa1c/0xd10 block/blk-core.c:696
blk_next_bio+0x10f/0x150 block/bio.c:350
__blkdev_issue_zero_pages+0x1da/0x320 block/blk-lib.c:180
blkdev_issue_zeroout+0x2a2/0x420 block/blk-lib.c:272
blkdev_fallocate+0x38f/0x4a0
vfs_fallocate+0x547/0x6b0 fs/open.c:323
ksys_fallocate fs/open.c:346 [inline]
__do_sys_fallocate fs/open.c:354 [inline]
__se_sys_fallocate fs/open.c:352 [inline]
__x64_sys_fallocate+0xb9/0x100 fs/open.c:352
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f05dd57def9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f05de2c9038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007f05dd736130 RCX: 00007f05dd57def9
RDX: 0000000000000000 RSI: 0000000000000010 RDI: 0000000000000008
RBP: 00007f05dd5f0b76 R08: 0000000000000000 R09: 0000000000000000
R10: 0000002000000400 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f05dd736130 R15: 00007ffe1141d678