INFO: task syz.1.10631:27383 blocked for more than 143 seconds. Not tainted 6.12.0-rc3-syzkaller-00217-g4d939780b705 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.10631 state:D stack:27360 pid:27383 tgid:27382 ppid:5788 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5322 [inline] __schedule+0x1895/0x4b30 kernel/sched/core.c:6682 __schedule_loop kernel/sched/core.c:6759 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6774 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6831 rwsem_down_write_slowpath+0xeee/0x13b0 kernel/locking/rwsem.c:1176 __down_write_common kernel/locking/rwsem.c:1304 [inline] __down_write kernel/locking/rwsem.c:1313 [inline] down_write+0x1d7/0x220 kernel/locking/rwsem.c:1578 filemap_invalidate_lock include/linux/fs.h:860 [inline] blkdev_fallocate+0x20e/0x490 block/fops.c:808 vfs_fallocate+0x569/0x6e0 fs/open.c:333 ksys_fallocate fs/open.c:356 [inline] __do_sys_fallocate fs/open.c:364 [inline] __se_sys_fallocate fs/open.c:362 [inline] __x64_sys_fallocate+0xbd/0x110 fs/open.c:362 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f989c17dff9 RSP: 002b:00007f989d05c038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f989c335f80 RCX: 00007f989c17dff9 RDX: 0000000000000000 RSI: 0000000000000011 RDI: 0000000000000004 RBP: 00007f989c1f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000072a00 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f989c335f80 R15: 00007f989c45fa28 Showing all locks held in the system: 1 lock held by khungtaskd/30: #0: ffffffff8e937de0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8e937de0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8e937de0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6720 2 locks held by getty/4983: #0: ffff888032aea0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211 5 locks held by kworker/1:6/5965: #0: ffff8880206e6948 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310 #1: ffffc90008f57d00 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc90008f57d00 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310 #2: ffff8880283c2190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #2: ffff8880283c2190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1fe/0x5150 drivers/usb/core/hub.c:5849 #3: ffff8880649c6190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #3: ffff8880649c6190 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8e/0x520 drivers/base/dd.c:1005 #4: ffff888075529160 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #4: ffff888075529160 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8e/0x520 drivers/base/dd.c:1005 2 locks held by kworker/u8:1/22827: 1 lock held by syz.0.8688/23188: #0: ffff88802375d9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:860 [inline] #0: ffff88802375d9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x20e/0x490 block/fops.c:808 1 lock held by syz.1.10631/27383: #0: ffff88802375d9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:860 [inline] #0: ffff88802375d9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x20e/0x490 block/fops.c:808 1 lock held by syz.0.11140/28588: #0: ffff88802375d9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:860 [inline] #0: ffff88802375d9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x20e/0x490 block/fops.c:808 1 lock held by syz.1.11892/30453: #0: ffff88802375d9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:870 [inline] #0: ffff88802375d9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0x135/0x8a0 mm/readahead.c:226 1 lock held by syz.1.11892/30456: #0: ffff88802375d9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:860 [inline] #0: ffff88802375d9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blk_ioctl_zeroout block/ioctl.c:238 [inline] #0: ffff88802375d9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_common_ioctl+0x150b/0x2480 block/ioctl.c:572 4 locks held by syz.3.12313/31429: 4 locks held by syz.1.12329/31464: #0: ffff88806e753e08 (&sb->s_type->i_mutex_key #10){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:815 [inline] #10){+.+.}-{3:3}, at: __sock_release net/socket.c:657 [inline] #10){+.+.}-{3:3}, at: sock_close+0x90/0x240 net/socket.c:1426 #1: ffffffff8fd36bd0 ((netlink_chain).rwsem){++++}-{3:3}, at: blocking_notifier_call_chain+0x53/0x90 kernel/notifier.c:387 #2: ffff88807812d0c8 (&nft_net->commit_mutex){+.+.}-{3:3}, at: nft_rcv_nl_event+0x120/0x6b0 net/netfilter/nf_tables_api.c:11561 #3: ffffffff8e93d378 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:297 [inline] #3: ffffffff8e93d378 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x381/0x830 kernel/rcu/tree_exp.h:976 ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.12.0-rc3-syzkaller-00217-g4d939780b705 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] watchdog+0xff4/0x1040 kernel/hung_task.c:379 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 31429 Comm: syz.3.12313 Not tainted 6.12.0-rc3-syzkaller-00217-g4d939780b705 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:rdtsc_ordered arch/x86/include/asm/msr.h:217 [inline] RIP: 0010:delay_tsc+0x22/0xe0 arch/x86/lib/delay.c:70 Code: 90 90 90 90 90 90 90 90 f3 0f 1e fa 55 41 57 41 56 53 49 89 fe bf 01 00 00 00 e8 59 bf a0 f5 e8 14 08 04 00 41 89 c7 0f 01 f9 <66> 90 48 89 d3 48 c1 e3 20 48 09 c3 0f 01 f9 66 90 48 89 d5 48 c1 RSP: 0018:ffffc90003fe6bb8 EFLAGS: 00000086 RAX: 000000001c97022f RBX: 0000000000000000 RCX: 0000000000000001 RDX: 000000000000019c RSI: ffffffff8c610180 RDI: ffffffff8c610140 RBP: ffffc90003fe6db0 R08: ffffffff854a2bd4 R09: 1ffff11004968046 R10: dffffc0000000000 R11: ffffffff8bc27ca0 R12: dffffc0000000000 R13: ffffffff9a410ef0 R14: 0000000000000899 R15: 0000000000000001 FS: 00007f58757ff6c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b3041bff8 CR3: 0000000046334000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: wait_for_lsr drivers/tty/serial/8250/8250_port.c:2074 [inline] serial8250_console_fifo_write drivers/tty/serial/8250/8250_port.c:3315 [inline] serial8250_console_write+0x1328/0x1ed0 drivers/tty/serial/8250/8250_port.c:3393 console_emit_next_record kernel/printk/printk.c:3092 [inline] console_flush_all+0x869/0xeb0 kernel/printk/printk.c:3180 __console_flush_and_unlock kernel/printk/printk.c:3239 [inline] console_unlock+0x14f/0x3b0 kernel/printk/printk.c:3279 vprintk_emit+0x730/0xa10 kernel/printk/printk.c:2407 _printk+0xd5/0x120 kernel/printk/printk.c:2432 show_free_areas mm/show_mem.c:349 [inline] __show_mem+0x16ff/0x2470 mm/show_mem.c:406 warn_alloc_show_mem mm/page_alloc.c:3507 [inline] warn_alloc+0x354/0x410 mm/page_alloc.c:3532 __vmalloc_area_node mm/vmalloc.c:3628 [inline] __vmalloc_node_range_noprof+0x691/0x13f0 mm/vmalloc.c:3828 __vmalloc_node_noprof mm/vmalloc.c:3893 [inline] __vmalloc_area_node mm/vmalloc.c:3621 [inline] __vmalloc_node_range_noprof+0x59c/0x13f0 mm/vmalloc.c:3828 __kvmalloc_node_noprof+0x142/0x190 mm/util.c:680 __v4l2_ctrl_modify_dimensions+0x43b/0xb60 drivers/media/v4l2-core/v4l2-ctrls-api.c:999 v4l2_ctrl_modify_dimensions include/media/v4l2-ctrls.h:1013 [inline] vivid_update_format_cap+0x133c/0x2090 drivers/media/test-drivers/vivid/vivid-vid-cap.c:458 vidioc_s_input+0x374/0x1560 drivers/media/test-drivers/vivid/vivid-vid-cap.c:1163 __video_do_ioctl+0xc23/0xdd0 drivers/media/v4l2-core/v4l2-ioctl.c:3119 video_usercopy+0x89b/0x1180 drivers/media/v4l2-core/v4l2-ioctl.c:3460 v4l2_ioctl+0x189/0x1e0 drivers/media/v4l2-core/v4l2-dev.c:364 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xf9/0x170 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5875d7dff9 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:00007f58757ff038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f5875f35f80 RCX: 00007f5875d7dff9 RDX: 0000000020000100 RSI: 00000000c0045627 RDI: 0000000000000003 RBP: 00007f5875df0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f5875f35f80 R15: 00007f587605fa28