INFO: task syz-executor.3:8059 blocked for more than 145 seconds. Not tainted 6.3.0-rc3-next-20230320-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:27896 pid:8059 ppid:5133 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5305 [inline] __schedule+0x1d23/0x5650 kernel/sched/core.c:6623 schedule+0xde/0x1a0 kernel/sched/core.c:6699 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6758 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747 eventpoll_release_file+0xe2/0x1d0 fs/eventpoll.c:962 eventpoll_release include/linux/eventpoll.h:53 [inline] __fput+0x7da/0xa90 fs/file_table.c:312 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: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:0x7f2f2de8c0f9 RSP: 002b:00007f2f2ec51168 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: 000000000000000b RBX: 00007f2f2dfabf80 RCX: 00007f2f2de8c0f9 RDX: 0000000000000318 RSI: 00000000200bd000 RDI: 0000000000000004 RBP: 00007f2f2dee7b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffeaee1db8f R14: 00007f2f2ec51300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/13: #0: ffffffff8c795870 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:516 1 lock held by rcu_tasks_trace/14: #0: ffffffff8c795570 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:516 1 lock held by khungtaskd/28: #0: ffffffff8c796440 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x390 kernel/locking/lockdep.c:6545 2 locks held by getty/4766: #0: ffff888027e37098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900015a02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2176 1 lock held by syz-executor.2/5120: #0: ffffffff8c7a18b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline] #0: ffffffff8c7a18b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3e8/0x770 kernel/rcu/tree_exp.h:992 2 locks held by kworker/1:7/5205: #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:643 [inline] #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:670 [inline] #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x883/0x15e0 kernel/workqueue.c:2376 #1: ffffc90005297db0 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x8b7/0x15e0 kernel/workqueue.c:2380 2 locks held by kworker/u4:19/6577: 1 lock held by syz-executor.3/8059: #0: ffff88806f622468 (&ep->mtx){+.+.}-{3:3}, at: eventpoll_release_file+0xe2/0x1d0 fs/eventpoll.c:962 1 lock held by syz-executor.3/8066: 3 locks held by syz-executor.4/9060: 1 lock held by dhcpcd/9063: #0: ffff88803f26be10 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:761 [inline] #0: ffff88803f26be10 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: __sock_release+0x86/0x290 net/socket.c:652 1 lock held by vhost-9066/9070: 1 lock held by dhcpcd/9074: #0: ffff888077286130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1697 [inline] #0: ffff888077286130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2f/0xe30 net/packet/af_packet.c:3196 1 lock held by syz-executor.1/9079: 3 locks held by kvm-nx-lpage-re/9078: #0: ffffffff8c7de4c8 (cgroup_mutex){+.+.}-{3:3}, at: cgroup_lock include/linux/cgroup.h:370 [inline] #0: ffffffff8c7de4c8 (cgroup_mutex){+.+.}-{3:3}, at: cgroup_attach_task_all+0x25/0x140 kernel/cgroup/cgroup-v1.c:61 #1: ffffffff8c640a30 (cpu_hotplug_lock){++++}-{0:0}, at: cgroup_attach_lock+0x11/0x40 kernel/cgroup/cgroup.c:2445 #2: ffffffff8c7de290 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: cgroup_attach_lock+0x35/0x40 kernel/cgroup/cgroup.c:2447 1 lock held by syz-executor.5/9081: #0: ffffffff8c7de290 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: copy_process+0x5025/0x76b0 kernel/fork.c:2519 2 locks held by syz-executor.5/9084: #0: ffff88807a5620e0 (&type->s_umount_key#48){+.+.}-{3:3}, at: grab_super+0x59/0x260 fs/super.c:385 #1: ffffffff8c7de4c8 (cgroup_mutex){+.+.}-{3:3}, at: cgroup_lock include/linux/cgroup.h:370 [inline] #1: ffffffff8c7de4c8 (cgroup_mutex){+.+.}-{3:3}, at: cgroup_do_get_tree+0x1bf/0x740 kernel/cgroup/cgroup.c:2180 2 locks held by dhcpcd/9083: #0: ffff888078618130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1697 [inline] #0: ffff888078618130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2f/0xe30 net/packet/af_packet.c:3196 #1: ffffffff8c7a18b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline] #1: ffffffff8c7a18b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3e8/0x770 kernel/rcu/tree_exp.h:992 1 lock held by dhcpcd/9085: #0: ffff8880201be130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1697 [inline] #0: ffff8880201be130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2f/0xe30 net/packet/af_packet.c:3196 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.3.0-rc3-next-20230320-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/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: 6577 Comm: kworker/u4:19 Not tainted 6.3.0-rc3-next-20230320-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Workqueue: bat_events batadv_nc_worker RIP: 0010:unwind_next_frame+0x113/0x1ef0 arch/x86/kernel/unwind_orc.c:467 Code: 48 c1 ea 03 80 3c 02 00 0f 85 00 17 00 00 41 f6 86 88 00 00 00 03 0f 85 cc 02 00 00 4d 8d 75 35 48 b8 00 00 00 00 00 fc ff df <4c> 89 f2 48 c1 ea 03 0f b6 04 02 4c 89 f2 83 e2 07 38 d0 7f 08 84 RSP: 0018:ffffc900001e0620 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: 0000000000000001 RCX: 1ffffffff23b8258 RDX: 1ffff92000efff70 RSI: ffffffff8164bf36 RDI: ffffc900077ffb80 RBP: ffffc900001e06d8 R08: ffffffff8fa3c5ce R09: ffffc900001e06c4 R10: 0000000000000001 R11: 0000000000094001 R12: ffffc900001e06e0 R13: ffffc900001e0690 R14: ffffc900001e06c5 R15: 0000000000082820 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000201b3030 CR3: 0000000036222000 CR4: 00000000003526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: arch_stack_walk+0x81/0xf0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x90/0xc0 kernel/stacktrace.c:122 kasan_save_stack+0x22/0x40 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 __kasan_slab_alloc+0x7f/0x90 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook mm/slab.h:710 [inline] slab_alloc_node mm/slub.c:3452 [inline] kmem_cache_alloc_node+0x185/0x3e0 mm/slub.c:3497 kmalloc_reserve+0x165/0x270 net/core/skbuff.c:518 __alloc_skb+0x129/0x330 net/core/skbuff.c:604 skb_copy+0x13d/0x3e0 net/core/skbuff.c:1874 mac80211_hwsim_tx_frame_no_nl.isra.0+0xb02/0x1290 drivers/net/wireless/virtual/mac80211_hwsim.c:1725 mac80211_hwsim_tx_frame+0x1ee/0x2a0 drivers/net/wireless/virtual/mac80211_hwsim.c:2054 mac80211_hwsim_beacon_tx+0x560/0xb10 drivers/net/wireless/virtual/mac80211_hwsim.c:2117 __iterate_interfaces+0x2c8/0x570 net/mac80211/util.c:766 ieee80211_iterate_active_interfaces_atomic+0x73/0x1c0 net/mac80211/util.c:802 mac80211_hwsim_beacon+0x101/0x200 drivers/net/wireless/virtual/mac80211_hwsim.c:2143 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x599/0xa30 kernel/time/hrtimer.c:1749 hrtimer_run_softirq+0x17f/0x360 kernel/time/hrtimer.c:1766 __do_softirq+0x1d4/0x905 kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x114/0x190 kernel/softirq.c:650 irq_exit_rcu+0x9/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x97/0xc0 arch/x86/kernel/apic/apic.c:1107 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 RIP: 0010:lock_acquire.part.0+0x156/0x370 kernel/locking/lockdep.c:5656 Code: b8 ff ff ff ff 65 0f c1 05 27 ca 9d 7e 83 f8 01 0f 85 c7 01 00 00 9c 58 f6 c4 02 0f 85 da 01 00 00 48 85 ed 0f 85 ad 01 00 00 <48> b8 00 00 00 00 00 fc ff df 48 01 c3 48 c7 03 00 00 00 00 48 c7 RSP: 0018:ffffc900077ffba8 EFLAGS: 00000206 RAX: 0000000000000046 RBX: 1ffff92000efff76 RCX: 93aa422587adf0fb RDX: 1ffff11010077146 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000200 R08: 0000000000000000 R09: ffffffff914f2c07 R10: fffffbfff229e580 R11: 1ffff11002f9908a R12: 0000000000000002 R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff8c796440 rcu_lock_acquire include/linux/rcupdate.h:327 [inline] rcu_read_lock include/linux/rcupdate.h:773 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline] batadv_nc_worker+0x131/0xfe0 net/batman-adv/network-coding.c:719 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