INFO: task syz-executor.0:9196 blocked for more than 143 seconds. Not tainted 6.6.0-rc6-next-20231018-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:28512 pid:9196 tgid:9177 ppid:5090 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5369 [inline] __schedule+0xee4/0x5a10 kernel/sched/core.c:6680 __schedule_loop kernel/sched/core.c:6757 [inline] schedule+0xe7/0x270 kernel/sched/core.c:6772 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6829 rwsem_down_read_slowpath+0x61e/0xb20 kernel/locking/rwsem.c:1086 __down_read_common kernel/locking/rwsem.c:1250 [inline] __down_read kernel/locking/rwsem.c:1263 [inline] down_read+0xf0/0x470 kernel/locking/rwsem.c:1528 inode_lock_shared include/linux/fs.h:812 [inline] lookup_slow fs/namei.c:1710 [inline] walk_component+0x33b/0x5a0 fs/namei.c:2002 lookup_last fs/namei.c:2459 [inline] path_lookupat+0x17f/0x770 fs/namei.c:2483 filename_lookup+0x1e7/0x5b0 fs/namei.c:2512 user_path_at_empty+0x42/0x60 fs/namei.c:2911 do_readlinkat+0xdd/0x310 fs/stat.c:490 __do_sys_readlinkat fs/stat.c:517 [inline] __se_sys_readlinkat fs/stat.c:514 [inline] __x64_sys_readlinkat+0x96/0x100 fs/stat.c:514 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f81f287cae9 RSP: 002b:00007f81f36860c8 EFLAGS: 00000246 ORIG_RAX: 000000000000010b RAX: ffffffffffffffda RBX: 00007f81f299c050 RCX: 00007f81f287cae9 RDX: 00000000200001c0 RSI: 00000000200000c0 RDI: 0000000000000006 RBP: 00007f81f28c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000093 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f81f299c050 R15: 00007fff86e65ef8 Showing all locks held in the system: 3 locks held by kworker/0:1/9: #0: ffff8880b983c718 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:558 #1: ffff8880b9828888 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x2d9/0x900 kernel/sched/psi.c:988 #2: ffff8880b98297d8 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x5d/0x200 kernel/time/timer.c:999 1 lock held by khungtaskd/29: #0: ffffffff8cbacbe0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline] #0: ffffffff8cbacbe0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #0: ffffffff8cbacbe0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6613 2 locks held by kworker/u4:2/41: #0: ffff8880b993c718 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:558 #1: ffffc90000b1fd80 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_one_work+0x7f4/0x15e0 kernel/workqueue.c:2606 2 locks held by getty/4812: #0: ffff88814b4030a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfc6/0x1490 drivers/tty/n_tty.c:2201 2 locks held by kworker/1:7/5152: #0: ffff888012c72938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x78a/0x15e0 kernel/workqueue.c:2605 #1: ffffc9000488fd80 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7f4/0x15e0 kernel/workqueue.c:2606 5 locks held by kworker/0:5/5155: #0: ffff888015add538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x78a/0x15e0 kernel/workqueue.c:2605 #1: ffffc900048bfd80 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x7f4/0x15e0 kernel/workqueue.c:2606 #2: ffff88814232c190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:992 [inline] #2: ffff88814232c190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c1/0x4e10 drivers/usb/core/hub.c:5791 #3: ffff8880206be510 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3154 [inline] #3: ffff8880206be510 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5360 [inline] #3: ffff8880206be510 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5603 [inline] #3: ffff8880206be510 (&port_dev->status_lock){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5763 [inline] #3: ffff8880206be510 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x27fe/0x4e10 drivers/usb/core/hub.c:5845 #4: ffff8881446ca468 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5361 [inline] #4: ffff8881446ca468 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5603 [inline] #4: ffff8881446ca468 (hcd->address0_mutex){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5763 [inline] #4: ffff8881446ca468 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_event+0x2827/0x4e10 drivers/usb/core/hub.c:5845 4 locks held by kworker/u4:13/7313: 2 locks held by syz-executor.0/9181: 1 lock held by syz-executor.0/9196: #0: ffff888031174000 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:812 [inline] #0: ffff888031174000 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: lookup_slow fs/namei.c:1710 [inline] #0: ffff888031174000 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: walk_component+0x33b/0x5a0 fs/namei.c:2002 1 lock held by syz-executor.4/10441: #0: ffff88804a9d6e10 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #0: ffff88804a9d6e10 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: __sock_release+0x86/0x260 net/socket.c:658 2 locks held by syz-executor.3/10453: #0: ffff888078e74130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1720 [inline] #0: ffff888078e74130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2c/0xf40 net/packet/af_packet.c:3208 #1: ffffffff8cbb8478 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline] #1: ffffffff8cbb8478 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x404/0x7e0 kernel/rcu/tree_exp.h:996 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.6.0-rc6-next-20231018-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x277/0x380 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x299/0x300 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+0xf87/0x1210 kernel/hung_task.c:379 kthread+0x33c/0x440 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 9318 Comm: udevd Not tainted 6.6.0-rc6-next-20231018-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:27 [inline] RIP: 0010:check_kcov_mode kernel/kcov.c:173 [inline] RIP: 0010:write_comp_data+0x12/0x80 kernel/kcov.c:236 Code: 04 25 c0 bc 03 00 48 8b 80 f0 15 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 49 89 d2 49 89 f8 49 89 f1 65 48 8b 14 25 c0 bc 03 00 <65> 8b 05 4f f6 7a 7e a9 00 01 ff 00 74 0f f6 c4 01 74 59 8b 82 fc RSP: 0018:ffffc900157776f8 EFLAGS: 00000293 RAX: 0000000000000000 RBX: ffffc90015777780 RCX: ffffffff813a9742 RDX: ffff888026cd3b80 RSI: ffffffff81df9d34 RDI: 0000000000000006 RBP: 0000000000000001 R08: 0000000000000006 R09: ffffffff81df9d34 R10: ffffffff81000000 R11: 0000000000000000 R12: ffffffff81df9d34 R13: 0000000000000000 R14: ffffc90015777840 R15: ffffc900157777b5 FS: 00007f9b2e78cc80(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f473a577978 CR3: 000000002d8ba000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: orc_find arch/x86/kernel/unwind_orc.c:206 [inline] unwind_next_frame+0x1d2/0x2390 arch/x86/kernel/unwind_orc.c:494 arch_stack_walk+0xfa/0x170 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x96/0xd0 kernel/stacktrace.c:122 kasan_save_stack+0x33/0x50 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:522 ____kasan_slab_free mm/kasan/common.c:236 [inline] ____kasan_slab_free+0x15b/0x1b0 mm/kasan/common.c:200 kasan_slab_free include/linux/kasan.h:164 [inline] slab_free_hook mm/slub.c:1800 [inline] slab_free_freelist_hook+0x114/0x1e0 mm/slub.c:1826 slab_free mm/slub.c:3809 [inline] __kmem_cache_free+0xc0/0x180 mm/slub.c:3822 tomoyo_realpath_from_path+0x1a6/0x710 security/tomoyo/realpath.c:286 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_number_perm+0x241/0x580 security/tomoyo/file.c:723 security_file_ioctl+0x72/0xb0 security/security.c:2647 __do_sys_ioctl fs/ioctl.c:865 [inline] __se_sys_ioctl fs/ioctl.c:857 [inline] __x64_sys_ioctl+0xbb/0x210 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f9b2e31ad49 Code: 5c c3 48 8d 44 24 08 48 89 54 24 e0 48 89 44 24 c0 48 8d 44 24 d0 48 89 44 24 c8 b8 10 00 00 00 c7 44 24 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 76 10 48 8b 15 ae 60 0d 00 f7 d8 41 83 c8 RSP: 002b:00007fff9e0327d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9b2e31ad49 RDX: 00007fff9e032810 RSI: 0000000080280215 RDI: 0000000000000009 RBP: 00005568609b30c0 R08: 0000000000000000 R09: 00007f9b2e3f1c10 R10: 0000000000001000 R11: 0000000000000246 R12: 0000000000000009 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000001