INFO: task kworker/u4:0:12874 blocked for more than 144 seconds. Not tainted 6.3.0-rc6-next-20230413-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:0 state:D stack:25640 pid:12874 ppid:2 flags:0x00004000 Workqueue: nfc3_nci_rx_wq nci_rx_work Call Trace: context_switch kernel/sched/core.c:5334 [inline] __schedule+0x1d23/0x5650 kernel/sched/core.c:6659 schedule+0xde/0x1a0 kernel/sched/core.c:6735 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6794 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747 device_lock include/linux/device.h:837 [inline] nfc_targets_found+0xe8/0x3e0 net/nfc/core.c:778 nci_target_auto_activated net/nfc/nci/ntf.c:489 [inline] nci_rf_intf_activated_ntf_packet net/nfc/nci/ntf.c:672 [inline] nci_ntf_packet+0x1326/0x2bc0 net/nfc/nci/ntf.c:802 nci_rx_work+0x190/0x330 net/nfc/nci/core.c:1517 process_one_work+0x99a/0x15e0 kernel/workqueue.c:2405 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552 kthread+0x33e/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task kworker/1:7:20711 blocked for more than 144 seconds. Not tainted 6.3.0-rc6-next-20230413-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/1:7 state:D stack:28392 pid:20711 ppid:2 flags:0x00004000 Workqueue: events nfc_urelease_event_work Call Trace: context_switch kernel/sched/core.c:5334 [inline] __schedule+0x1d23/0x5650 kernel/sched/core.c:6659 schedule+0xde/0x1a0 kernel/sched/core.c:6735 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6794 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747 nci_request net/nfc/nci/core.c:149 [inline] nci_stop_poll+0xf8/0x1d0 net/nfc/nci/core.c:873 nfc_stop_poll+0x10e/0x270 net/nfc/core.c:259 nfc_urelease_event_work+0x1a8/0x2d0 net/nfc/netlink.c:1842 process_one_work+0x99a/0x15e0 kernel/workqueue.c:2405 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552 kthread+0x33e/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task syz-executor.5:21001 blocked for more than 144 seconds. Not tainted 6.3.0-rc6-next-20230413-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:27064 pid:21001 ppid:5110 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5334 [inline] __schedule+0x1d23/0x5650 kernel/sched/core.c:6659 schedule+0xde/0x1a0 kernel/sched/core.c:6735 schedule_timeout+0x276/0x2b0 kernel/time/timer.c:2143 do_wait_for_common kernel/sched/completion.c:85 [inline] __wait_for_common+0x1ce/0x5c0 kernel/sched/completion.c:106 __flush_workqueue+0x3f5/0x13a0 kernel/workqueue.c:2977 nci_close_device+0x142/0x370 net/nfc/nci/core.c:579 nci_unregister_device+0x38/0x310 net/nfc/nci/core.c:1292 virtual_ncidev_close+0x52/0xb0 drivers/nfc/virtual_ncidev.c:163 __fput+0x27c/0xa90 fs/file_table.c:321 task_work_run+0x16f/0x270 kernel/task_work.c:179 get_signal+0x1c7/0x25b0 kernel/signal.c:2635 arch_do_signal_or_restart+0x79/0x5c0 arch/x86/kernel/signal.c:307 exit_to_user_mode_loop kernel/entry/common.c:168 [inline] exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f75a4a8c169 RSP: 002b:00007f75a5845168 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: fffffffffffffff2 RBX: 00007f75a4babf80 RCX: 00007f75a4a8c169 RDX: 0000000000000064 RSI: 0000000020000840 RDI: 0000000000000003 RBP: 00007f75a4ae7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe46c4bc8f R14: 00007f75a5845300 R15: 0000000000022000 INFO: task syz-executor.3:21038 blocked for more than 144 seconds. Not tainted 6.3.0-rc6-next-20230413-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:26920 pid:21038 ppid:5123 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5334 [inline] __schedule+0x1d23/0x5650 kernel/sched/core.c:6659 schedule+0xde/0x1a0 kernel/sched/core.c:6735 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6794 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747 nfc_register_device+0x32/0x3c0 net/nfc/core.c:1116 nci_register_device+0x7cb/0xb50 net/nfc/nci/core.c:1257 virtual_ncidev_open+0x14f/0x230 drivers/nfc/virtual_ncidev.c:148 misc_open+0x37a/0x4a0 drivers/char/misc.c:165 chrdev_open+0x26a/0x770 fs/char_dev.c:414 do_dentry_open+0x6cc/0x13f0 fs/open.c:920 do_open fs/namei.c:3560 [inline] path_openat+0x1baa/0x2750 fs/namei.c:3715 do_filp_open+0x1ba/0x410 fs/namei.c:3742 do_sys_openat2+0x16d/0x4c0 fs/open.c:1356 do_sys_open fs/open.c:1372 [inline] __do_sys_openat fs/open.c:1388 [inline] __se_sys_openat fs/open.c:1383 [inline] __x64_sys_openat+0x143/0x1f0 fs/open.c:1383 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f818048c169 RSP: 002b:00007f81811a1168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f81805abf80 RCX: 00007f818048c169 RDX: 0000000000000002 RSI: 0000000020000080 RDI: ffffffffffffff9c RBP: 00007f81804e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc4a087b2f R14: 00007f81811a1300 R15: 0000000000022000 INFO: task syz-executor.3:21048 blocked for more than 145 seconds. Not tainted 6.3.0-rc6-next-20230413-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:28248 pid:21048 ppid:5123 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5334 [inline] __schedule+0x1d23/0x5650 kernel/sched/core.c:6659 schedule+0xde/0x1a0 kernel/sched/core.c:6735 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6794 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747 misc_open+0x63/0x4a0 drivers/char/misc.c:129 chrdev_open+0x26a/0x770 fs/char_dev.c:414 do_dentry_open+0x6cc/0x13f0 fs/open.c:920 do_open fs/namei.c:3560 [inline] path_openat+0x1baa/0x2750 fs/namei.c:3715 do_filp_open+0x1ba/0x410 fs/namei.c:3742 do_sys_openat2+0x16d/0x4c0 fs/open.c:1356 do_sys_open fs/open.c:1372 [inline] __do_sys_openat fs/open.c:1388 [inline] __se_sys_openat fs/open.c:1383 [inline] __x64_sys_openat+0x143/0x1f0 fs/open.c:1383 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f818048c169 RSP: 002b:00007f818115f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f81805ac120 RCX: 00007f818048c169 RDX: 0000000000000002 RSI: 0000000020000080 RDI: ffffffffffffff9c RBP: 00007f81804e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc4a087b2f R14: 00007f818115f300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/13: #0: ffffffff8c796bb0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:519 1 lock held by rcu_tasks_trace/14: #0: ffffffff8c7968b0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:519 1 lock held by khungtaskd/28: #0: ffffffff8c7977c0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x390 kernel/locking/lockdep.c:6545 2 locks held by kworker/u4:4/70: 1 lock held by klogd/4436: #0: ffff8880b983c698 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:566 [inline] #0: ffff8880b983c698 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x90/0x120 kernel/sched/core.c:551 2 locks held by getty/4756: #0: ffff888029036098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2176 3 locks held by kworker/u4:0/12874: #0: ffff88803095d138 ((wq_completion)nfc3_nci_rx_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff88803095d138 ((wq_completion)nfc3_nci_rx_wq){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff88803095d138 ((wq_completion)nfc3_nci_rx_wq){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1324 [inline] #0: ffff88803095d138 ((wq_completion)nfc3_nci_rx_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:643 [inline] #0: ffff88803095d138 ((wq_completion)nfc3_nci_rx_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:670 [inline] #0: ffff88803095d138 ((wq_completion)nfc3_nci_rx_wq){+.+.}-{0:0}, at: process_one_work+0x883/0x15e0 kernel/workqueue.c:2376 #1: ffffc9000820fdb0 ((work_completion)(&ndev->rx_work)){+.+.}-{0:0}, at: process_one_work+0x8b7/0x15e0 kernel/workqueue.c:2380 #2: ffff88802e909100 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline] #2: ffff88802e909100 (&dev->mutex){....}-{3:3}, at: nfc_targets_found+0xe8/0x3e0 net/nfc/core.c:778 6 locks held by kworker/1:7/20711: #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1324 [inline] #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:643 [inline] #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:670 [inline] #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x883/0x15e0 kernel/workqueue.c:2376 #1: ffffc900059afdb0 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x8b7/0x15e0 kernel/workqueue.c:2380 #2: ffffffff8e59a528 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0x96/0x2d0 net/nfc/netlink.c:1833 #3: ffff88802e909508 (&genl_data->genl_data_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0x143/0x2d0 net/nfc/netlink.c:1839 #4: ffff88802e909100 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline] #4: ffff88802e909100 (&dev->mutex){....}-{3:3}, at: nfc_stop_poll+0x2d/0x270 net/nfc/core.c:247 #5: ffff88802e969350 (&ndev->req_lock){+.+.}-{3:3}, at: nci_request net/nfc/nci/core.c:149 [inline] #5: ffff88802e969350 (&ndev->req_lock){+.+.}-{3:3}, at: nci_stop_poll+0xf8/0x1d0 net/nfc/nci/core.c:873 1 lock held by syz-executor.5/21001: #0: ffff88802e969350 (&ndev->req_lock){+.+.}-{3:3}, at: nci_close_device+0x6d/0x370 net/nfc/nci/core.c:561 2 locks held by syz-executor.3/21038: #0: ffffffff8d270a48 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x63/0x4a0 drivers/char/misc.c:129 #1: ffffffff8e59a528 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_register_device+0x32/0x3c0 net/nfc/core.c:1116 1 lock held by syz-executor.3/21048: #0: ffffffff8d270a48 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x63/0x4a0 drivers/char/misc.c:129 1 lock held by syz-executor.5/21111: #0: ffffffff8d270a48 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x63/0x4a0 drivers/char/misc.c:129 1 lock held by syz-executor.3/21114: #0: ffffffff8d270a48 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x63/0x4a0 drivers/char/misc.c:129 1 lock held by syz-executor.5/21116: #0: ffffffff8d270a48 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x63/0x4a0 drivers/char/misc.c:129 1 lock held by syz-executor.3/21118: #0: ffffffff8d270a48 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x63/0x4a0 drivers/char/misc.c:129 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.3.0-rc6-next-20230413-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 nmi_cpu_backtrace+0x29c/0x350 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x2a4/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+0xe16/0x1090 kernel/hung_task.c:379 kthread+0x33e/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 4429 Comm: syslogd Not tainted 6.3.0-rc6-next-20230413-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 RIP: 0010:debug_check_no_obj_freed+0x2b1/0x420 lib/debugobjects.c:1028 Code: 8b 35 3b 3b 63 0a 48 83 c4 50 b9 0a 00 00 00 48 c7 c2 60 33 10 8d 5b bf 08 00 00 00 5d 41 5c 41 5d 41 5e 41 5f e9 ff 86 3d fd <48> 83 c4 50 5b 5d 41 5c 41 5d 41 5e 41 5f c3 49 8d 78 20 4c 89 cd RSP: 0018:ffffc9000315f8b0 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff88807a7ddc00 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffff88801244f140 R08: 0000000000000001 R09: ffffffff9150dcef R10: 0000000000000001 R11: 0000000000000000 R12: 1ffffffff2401da5 R13: 0000000000000000 R14: dead000000000100 R15: dffffc0000000000 FS: 00007f76e61df800(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c007ccd000 CR3: 000000001d2a3000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: slab_free_hook mm/slub.c:1756 [inline] slab_free_freelist_hook+0xeb/0x1c0 mm/slub.c:1807 slab_free mm/slub.c:3786 [inline] __kmem_cache_free+0xaf/0x2d0 mm/slub.c:3799 skb_kfree_head net/core/skbuff.c:856 [inline] skb_free_head+0x108/0x1a0 net/core/skbuff.c:868 skb_release_data+0x57a/0x820 net/core/skbuff.c:897 skb_release_all net/core/skbuff.c:962 [inline] __kfree_skb net/core/skbuff.c:976 [inline] consume_skb net/core/skbuff.c:1189 [inline] consume_skb+0xd0/0x170 net/core/skbuff.c:1183 __unix_dgram_recvmsg+0x42c/0xb90 net/unix/af_unix.c:2532 unix_dgram_recvmsg+0xc4/0xf0 net/unix/af_unix.c:2549 sock_recvmsg_nosec net/socket.c:1017 [inline] sock_recvmsg+0xe2/0x160 net/socket.c:1038 sock_read_iter+0x2bd/0x3b0 net/socket.c:1116 call_read_iter include/linux/fs.h:1848 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x81c/0x950 fs/read_write.c:470 ksys_read+0x1ec/0x250 fs/read_write.c:613 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f76e636b8fe Code: c0 e9 e6 fe ff ff 50 48 8d 3d 0e c7 09 00 e8 c9 cf 01 00 66 0f 1f 84 00 00 00 00 00 64 8b 04 25 18 00 00 00 85 c0 75 14 0f 05 <48> 3d 00 f0 ff ff 77 5a c3 66 0f 1f 84 00 00 00 00 00 48 83 ec 28 RSP: 002b:00007ffeee6404b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f76e636b8fe RDX: 00000000000000ff RSI: 0000555806060950 RDI: 0000000000000000 RBP: 0000555806060910 R08: 00007f76e63fb040 R09: 00007f76e63fb0c0 R10: 00007f76e63fafc0 R11: 0000000000000246 R12: 00005558060609d3 R13: 0000555806060950 R14: 0000000000000000 R15: 0000000000000000