INFO: task kworker/1:5:5091 blocked for more than 143 seconds. Not tainted 6.4.0-rc6-syzkaller-00195-g40f71e7cd3c6 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/1:5 state:D stack:25496 pid:5091 ppid:2 flags:0x00004000 Workqueue: events nfc_urelease_event_work Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0xc9a/0x5880 kernel/sched/core.c:6669 schedule+0xde/0x1a0 kernel/sched/core.c:6745 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804 __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+0x1a1/0x2d0 net/nfc/netlink.c:1842 process_one_work+0x99a/0x15e0 kernel/workqueue.c:2405 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552 kthread+0x344/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task kworker/u4:7:12343 blocked for more than 143 seconds. Not tainted 6.4.0-rc6-syzkaller-00195-g40f71e7cd3c6 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:7 state:D stack:24080 pid:12343 ppid:2 flags:0x00004000 Workqueue: nfc2_nci_rx_wq nci_rx_work Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0xc9a/0x5880 kernel/sched/core.c:6669 schedule+0xde/0x1a0 kernel/sched/core.c:6745 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804 __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+0x344/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task syz-executor.0:21274 blocked for more than 143 seconds. Not tainted 6.4.0-rc6-syzkaller-00195-g40f71e7cd3c6 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:27000 pid:21274 ppid:5028 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0xc9a/0x5880 kernel/sched/core.c:6669 schedule+0xde/0x1a0 kernel/sched/core.c:6745 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:2652 arch_do_signal_or_restart+0x79/0x5c0 arch/x86/kernel/signal.c:306 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:0x7f6f47e8c389 RSP: 002b:00007f6f469fe168 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: fffffffffffffff2 RBX: 00007f6f47fabf80 RCX: 00007f6f47e8c389 RDX: 0000000000000064 RSI: 0000000020000840 RDI: 0000000000000003 RBP: 00007f6f47ed7493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd77deb3cf R14: 00007f6f469fe300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/13: #0: ffffffff8c7984b0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:518 1 lock held by rcu_tasks_trace/14: #0: ffffffff8c7981b0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:518 1 lock held by khungtaskd/28: #0: ffffffff8c7990c0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x340 kernel/locking/lockdep.c:6559 2 locks held by getty/4754: #0: ffff88814b1be098 (&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/0:4/5087: #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: ffffc9000504fdb0 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x8b7/0x15e0 kernel/workqueue.c:2380 #2: ffffffff8e5af468 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0x8f/0x2d0 net/nfc/netlink.c:1833 3 locks held by kworker/1:4/5089: #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: ffffc9000506fdb0 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x8b7/0x15e0 kernel/workqueue.c:2380 #2: ffffffff8e5af468 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0x8f/0x2d0 net/nfc/netlink.c:1833 6 locks held by kworker/1:5/5091: #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: ffffc9000508fdb0 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x8b7/0x15e0 kernel/workqueue.c:2380 #2: ffffffff8e5af468 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0x8f/0x2d0 net/nfc/netlink.c:1833 #3: ffff888029f94508 (&genl_data->genl_data_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0x13c/0x2d0 net/nfc/netlink.c:1839 #4: ffff888029f94100 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline] #4: ffff888029f94100 (&dev->mutex){....}-{3:3}, at: nfc_stop_poll+0x2d/0x270 net/nfc/core.c:247 #5: ffff88803e0a0350 (&ndev->req_lock){+.+.}-{3:3}, at: nci_request net/nfc/nci/core.c:149 [inline] #5: ffff88803e0a0350 (&ndev->req_lock){+.+.}-{3:3}, at: nci_stop_poll+0xf8/0x1d0 net/nfc/nci/core.c:873 3 locks held by kworker/0:13/6074: #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: ffffc90015fc7db0 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x8b7/0x15e0 kernel/workqueue.c:2380 #2: ffffffff8e5af468 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0x8f/0x2d0 net/nfc/netlink.c:1833 3 locks held by kworker/u4:7/12343: #0: ffff888076439138 ((wq_completion)nfc2_nci_rx_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888076439138 ((wq_completion)nfc2_nci_rx_wq){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888076439138 ((wq_completion)nfc2_nci_rx_wq){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1324 [inline] #0: ffff888076439138 ((wq_completion)nfc2_nci_rx_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:643 [inline] #0: ffff888076439138 ((wq_completion)nfc2_nci_rx_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:670 [inline] #0: ffff888076439138 ((wq_completion)nfc2_nci_rx_wq){+.+.}-{0:0}, at: process_one_work+0x883/0x15e0 kernel/workqueue.c:2376 #1: ffffc900031efdb0 ((work_completion)(&ndev->rx_work)){+.+.}-{0:0}, at: process_one_work+0x8b7/0x15e0 kernel/workqueue.c:2380 #2: ffff888029f94100 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline] #2: ffff888029f94100 (&dev->mutex){....}-{3:3}, at: nfc_targets_found+0xe8/0x3e0 net/nfc/core.c:778 3 locks held by kworker/0:2/20163: #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: ffffc9000b7a7db0 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x8b7/0x15e0 kernel/workqueue.c:2380 #2: ffffffff8e5af468 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0x8f/0x2d0 net/nfc/netlink.c:1833 1 lock held by syz-executor.0/21274: #0: ffff88803e0a0350 (&ndev->req_lock){+.+.}-{3:3}, at: nci_close_device+0x6d/0x370 net/nfc/nci/core.c:561 2 locks held by syz-executor.0/21431: #0: ffffffff8d27b808 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x63/0x4a0 drivers/char/misc.c:129 #1: ffffffff8e5af468 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_register_device+0x32/0x3c0 net/nfc/core.c:1116 1 lock held by syz-executor.0/21473: #0: ffffffff8d27b808 (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.4.0-rc6-syzkaller-00195-g40f71e7cd3c6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/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+0x344/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: 4435 Comm: syslogd Not tainted 6.4.0-rc6-syzkaller-00195-g40f71e7cd3c6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:check_region_inline mm/kasan/generic.c:170 [inline] RIP: 0010:kasan_check_range+0x130/0x190 mm/kasan/generic.c:187 Code: 00 74 ef 49 8d 04 2c 48 85 d2 75 0b 48 89 da 48 29 c2 e9 55 ff ff ff 49 39 d2 75 17 49 0f be 02 41 83 e1 07 49 39 c1 7d 0a 5b 01 00 00 00 5d 41 5c c3 44 89 c2 e8 9f ee ff ff 5b 83 f0 01 5d RSP: 0018:ffffc9000311f950 EFLAGS: 00000046 RAX: fffffbfff22a55b5 RBX: 1ffff92000623f34 RCX: ffffffff8165609e RDX: fffffbfff22a55b5 RSI: 0000000000000008 RDI: ffffffff9152ada0 RBP: fffffbfff22a55b4 R08: 0000000000000000 R09: ffffffff9152ada7 R10: fffffbfff22a55b4 R11: 0000000000000001 R12: ffff88807e092888 R13: 0000000000000003 R14: 000000000000052a R15: ffff88807e0928a8 FS: 00007f0fe8ab5380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c00a996000 CR3: 000000001a749000 CR4: 0000000000350ee0 Call Trace: instrument_atomic_read include/linux/instrumented.h:68 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] hlock_class kernel/locking/lockdep.c:228 [inline] mark_lock.part.0+0xee/0x1970 kernel/locking/lockdep.c:4634 mark_lock kernel/locking/lockdep.c:4620 [inline] mark_held_locks+0x9f/0xe0 kernel/locking/lockdep.c:4252 __trace_hardirqs_on_caller kernel/locking/lockdep.c:4270 [inline] lockdep_hardirqs_on_prepare kernel/locking/lockdep.c:4337 [inline] lockdep_hardirqs_on_prepare+0x139/0x410 kernel/locking/lockdep.c:4289 trace_hardirqs_on+0x36/0x40 kernel/trace/trace_preemptirq.c:61 seqcount_lockdep_reader_access include/linux/seqlock.h:104 [inline] ktime_get_coarse_real_ts64+0x1bb/0x200 kernel/time/timekeeping.c:2261 current_time+0x79/0x2c0 fs/inode.c:2448 file_update_time+0x90/0x270 fs/inode.c:2082 __generic_file_write_iter+0x138/0x500 mm/filemap.c:4006 generic_file_write_iter+0xe3/0x350 mm/filemap.c:4089 call_write_iter include/linux/fs.h:1868 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x945/0xd50 fs/read_write.c:584 ksys_write+0x12b/0x250 fs/read_write.c:637 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:0x7f0fe8c09bf2 Code: 89 c7 48 89 44 24 08 e8 7b 34 fa ff 48 8b 44 24 08 48 83 c4 28 c3 c3 64 8b 04 25 18 00 00 00 85 c0 75 20 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 6f 48 8b 15 07 a2 0d 00 f7 d8 64 89 02 48 83 RSP: 002b:00007ffe2d229a58 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f0fe8c09bf2 RDX: 000000000000004f RSI: 00005557c32e3c50 RDI: 0000000000000003 RBP: 00005557c32e3c50 R08: 0000000000000001 R09: 0000000000000000 R10: 00007f0fe8da83a3 R11: 0000000000000246 R12: 000000000000004f R13: 00007f0fe8ab5300 R14: 0000000000000004 R15: 00005557c32e3a60