INFO: task kworker/1:1:27 blocked for more than 143 seconds. Not tainted 6.6.0-rc1-syzkaller-00236-gad8a69f361b9 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/1:1 state:D stack:23544 pid:27 ppid:2 flags:0x00004000 Workqueue: usb_hub_wq hub_event Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x18bd/0x4910 kernel/sched/core.c:6695 schedule+0xbf/0x180 kernel/sched/core.c:6771 usb_kill_urb+0x1c5/0x300 drivers/usb/core/urb.c:713 usb_start_wait_urb+0x1ac/0x510 drivers/usb/core/message.c:65 usb_internal_control_msg drivers/usb/core/message.c:103 [inline] usb_control_msg+0x2ad/0x4c0 drivers/usb/core/message.c:154 get_bMaxPacketSize0 drivers/usb/core/hub.c:4725 [inline] hub_port_init+0xc80/0x2480 drivers/usb/core/hub.c:4921 hub_port_connect drivers/usb/core/hub.c:5369 [inline] hub_port_connect_change drivers/usb/core/hub.c:5580 [inline] port_event drivers/usb/core/hub.c:5740 [inline] hub_event+0x2a34/0x5030 drivers/usb/core/hub.c:5822 process_one_work+0x775/0x1110 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0xabb/0x1060 kernel/workqueue.c:2784 kthread+0x2b0/0x340 kernel/kthread.c:388 ret_from_fork+0x44/0x70 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 INFO: task syz-executor.0:5466 blocked for more than 143 seconds. Not tainted 6.6.0-rc1-syzkaller-00236-gad8a69f361b9 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:24840 pid:5466 ppid:5399 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x18bd/0x4910 kernel/sched/core.c:6695 schedule+0xbf/0x180 kernel/sched/core.c:6771 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6830 __mutex_lock_common+0xe2b/0x2520 kernel/locking/mutex.c:679 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:799 device_lock include/linux/device.h:992 [inline] usbdev_release+0x76/0x7c0 drivers/usb/core/devio.c:1096 __fput+0x3f8/0x910 fs/file_table.c:384 __do_sys_close fs/open.c:1572 [inline] __se_sys_close+0x155/0x1e0 fs/open.c:1557 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7ffa5b47b9da RSP: 002b:00007ffd2c563e70 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007ffa5b47b9da RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 0000000000000032 R08: 0000001b2d260000 R09: 00007ffa5b59bf8c R10: 00007ffd2c563fc0 R11: 0000000000000293 R12: 00007ffa5b0000c8 R13: ffffffffffffffff R14: 00007ffa5b000000 R15: 0000000000015168 Showing all locks held in the system: 5 locks held by kworker/1:1/27: #0: ffff88814764e938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x64d/0x1110 #1: ffffc90000a2fd20 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x686/0x1110 kernel/workqueue.c:2605 #2: ffff888142b2a190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:992 [inline] #2: ffff888142b2a190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1fa/0x5030 drivers/usb/core/hub.c:5768 #3: ffff888142b2e508 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3138 [inline] #3: ffff888142b2e508 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5337 [inline] #3: ffff888142b2e508 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5580 [inline] #3: ffff888142b2e508 (&port_dev->status_lock){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5740 [inline] #3: ffff888142b2e508 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x269d/0x5030 drivers/usb/core/hub.c:5822 #4: ffff888020d14068 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5338 [inline] #4: ffff888020d14068 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5580 [inline] #4: ffff888020d14068 (hcd->address0_mutex){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5740 [inline] #4: ffff888020d14068 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_event+0x26d1/0x5030 drivers/usb/core/hub.c:5822 1 lock held by khungtaskd/29: #0: ffffffff8d32a960 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/4795: #0: ffff888149ebc0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900015972f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ad/0x1db0 drivers/tty/n_tty.c:2206 1 lock held by syz-executor.0/5466: #0: ffff888142b2a190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:992 [inline] #0: ffff888142b2a190 (&dev->mutex){....}-{3:3}, at: usbdev_release+0x76/0x7c0 drivers/usb/core/devio.c:1096 1 lock held by syz-executor.0/5786: #0: ffff888142b2a190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:992 [inline] #0: ffff888142b2a190 (&dev->mutex){....}-{3:3}, at: usbdev_open+0x152/0x7a0 drivers/usb/core/devio.c:1051 1 lock held by syz-executor.0/5806: #0: ffff888142b2a190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:992 [inline] #0: ffff888142b2a190 (&dev->mutex){....}-{3:3}, at: usbdev_open+0x152/0x7a0 drivers/usb/core/devio.c:1051 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.6.0-rc1-syzkaller-00236-gad8a69f361b9 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x494/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x194/0x2f0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xded/0xe30 kernel/hung_task.c:379 kthread+0x2b0/0x340 kernel/kthread.c:388 ret_from_fork+0x44/0x70 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 4481 Comm: klogd Not tainted 6.6.0-rc1-syzkaller-00236-gad8a69f361b9 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 RIP: 0010:apparmor_socket_getpeersec_dgram+0x0/0x10 security/apparmor/lsm.c:1171 Code: 0f 8c bd fe ff ff be 04 00 00 00 48 89 df e8 a7 a6 e9 fd 48 8b 54 24 08 e9 a6 fe ff ff e8 28 96 bd 06 0f 1f 84 00 00 00 00 00 ab 51 8d fd b8 a4 ff ff ff c3 0f 1f 44 00 00 41 57 41 56 41 54 RSP: 0018:ffffc90003427ac0 EFLAGS: 00000246 RAX: 1ffffffff19bff7c RBX: ffffffff8cdffbc8 RCX: ffff88807dc98000 RDX: ffffc90003427c1c RSI: 0000000000000000 RDI: ffff88801ad8c200 RBP: ffffffff8cdffbe0 R08: ffffc90003427c1f R09: 0000000000000000 R10: ffffc90003427c00 R11: fffff52000684f84 R12: ffff88801ad8c200 R13: dffffc0000000000 R14: ffffc90003427c1c R15: 0000000000000000 FS: 00007fd03bef4380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005647b4623680 CR3: 000000002608d000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: security_socket_getpeersec_dgram+0x54/0xb0 security/security.c:4393 unix_get_peersec_dgram include/net/scm.h:50 [inline] scm_send include/net/scm.h:87 [inline] unix_dgram_sendmsg+0x185/0x2070 net/unix/af_unix.c:1913 sock_sendmsg_nosec net/socket.c:730 [inline] sock_sendmsg net/socket.c:753 [inline] __sys_sendto+0x480/0x640 net/socket.c:2177 __do_sys_sendto net/socket.c:2189 [inline] __se_sys_sendto net/socket.c:2185 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2185 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fd03c0569b5 Code: 8b 44 24 08 48 83 c4 28 48 98 c3 48 98 c3 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 26 45 31 c9 45 31 c0 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 7a 48 8b 15 44 c4 0c 00 f7 d8 64 89 02 48 83 RSP: 002b:00007ffe2d191828 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fd03c0569b5 RDX: 000000000000008b RSI: 0000564103ee27a0 RDI: 0000000000000003 RBP: 0000564103edd910 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000004000 R11: 0000000000000246 R12: 0000000000000013 R13: 00007fd03c1e4212 R14: 00007ffe2d191928 R15: 0000000000000000