syzbot


INFO: task hung in nl80211_pre_doit (2)

Status: auto-closed as invalid on 2022/01/17 00:54
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 455d, last: 414d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in rtnetlink_rcv_msg C inconclusive inconclusive 389 1d04h 1384d 0/24 upstream: reported C repro on 2019/02/22 17:00
upstream INFO: task hung in nl80211_pre_doit 5 670d 747d 0/24 auto-closed as invalid on 2021/05/17 09:21
linux-4.19 INFO: task hung in nl80211_pre_doit 1 328d 328d 0/1 auto-closed as invalid on 2022/05/13 08:55

Sample crash report:
INFO: task syz-executor.5:20429 blocked for more than 143 seconds.
      Not tainted 5.15.0-rc3-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:26096 pid:20429 ppid:  6752 flags:0x00004004
Call Trace:
 context_switch kernel/sched/core.c:4940 [inline]
 __schedule+0x940/0x26f0 kernel/sched/core.c:6287
 schedule+0xd3/0x270 kernel/sched/core.c:6366
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6425
 __mutex_lock_common kernel/locking/mutex.c:669 [inline]
 __mutex_lock+0xa34/0x12f0 kernel/locking/mutex.c:729
 nl80211_pre_doit+0x23/0x620 net/wireless/nl80211.c:14927
 genl_family_rcv_msg_doit+0x1ee/0x320 net/netlink/genetlink.c:726
 genl_family_rcv_msg net/netlink/genetlink.c:775 [inline]
 genl_rcv_msg+0x328/0x580 net/netlink/genetlink.c:792
 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2504
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:803
 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1340
 netlink_sendmsg+0x86d/0xdb0 net/netlink/af_netlink.c:1929
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:724
 __sys_sendto+0x21c/0x320 net/socket.c:2036
 __do_sys_sendto net/socket.c:2048 [inline]
 __se_sys_sendto net/socket.c:2044 [inline]
 __x64_sys_sendto+0xdd/0x1b0 net/socket.c:2044
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f3e7dc1c69c
RSP: 002b:00007f3e7b1bdf80 EFLAGS: 00000293 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f3e7b1be0f0 RCX: 00007f3e7dc1c69c
RDX: 0000000000000024 RSI: 00007f3e7b1be140 RDI: 0000000000000006
RBP: 0000000000000000 R08: 00007f3e7b1bdfd4 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 00007f3e7b1be140 R14: 0000000000000006 R15: 0000000000000000

Showing all locks held in the system:
4 locks held by kworker/u4:1/10:
 #0: ffff888140275938 ((wq_completion)netns){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff888140275938 ((wq_completion)netns){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
 #0: ffff888140275938 ((wq_completion)netns){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1198 [inline]
 #0: ffff888140275938 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:634 [inline]
 #0: ffff888140275938 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:661 [inline]
 #0: ffff888140275938 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x8a3/0x16b0 kernel/workqueue.c:2268
 #1: ffffc90000f0fdb0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x8d7/0x16b0 kernel/workqueue.c:2272
 #2: ffffffff8d0cef50 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x9b/0xb00 net/core/net_namespace.c:553
 #3: ffffffff8d0e21a8 (rtnl_mutex){+.+.}-{3:3}, at: wg_netns_pre_exit+0x15/0x190 drivers/net/wireguard/device.c:402
1 lock held by khungtaskd/27:
 #0: ffffffff8b97d420 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6446
1 lock held by in:imklog/6461:
 #0: ffff888024f588b0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:990
2 locks held by agetty/6470:
 #0: ffff888076eba098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:252
 #1: ffffc900014e42e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcf0/0x1230 drivers/tty/n_tty.c:2113
3 locks held by kworker/0:1/17134:
 #0: ffff888010c67d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff888010c67d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
 #0: ffff888010c67d38 ((wq_completion)events){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1198 [inline]
 #0: ffff888010c67d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:634 [inline]
 #0: ffff888010c67d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:661 [inline]
 #0: ffff888010c67d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x8a3/0x16b0 kernel/workqueue.c:2268
 #1: ffffc9000fd1fdb0 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x8d7/0x16b0 kernel/workqueue.c:2272
 #2: ffffffff8d0e21a8 (rtnl_mutex){+.+.}-{3:3}, at: linkwatch_event+0xb/0x60 net/core/link_watch.c:251
3 locks held by kworker/0:3/19007:
 #0: ffff888010c67d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff888010c67d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
 #0: ffff888010c67d38 ((wq_completion)events){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1198 [inline]
 #0: ffff888010c67d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:634 [inline]
 #0: ffff888010c67d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:661 [inline]
 #0: ffff888010c67d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x8a3/0x16b0 kernel/workqueue.c:2268
 #1: ffffc9000fa8fdb0 (deferred_process_work){+.+.}-{0:0}, at: process_one_work+0x8d7/0x16b0 kernel/workqueue.c:2272
 #2: ffffffff8d0e21a8 (rtnl_mutex){+.+.}-{3:3}, at: switchdev_deferred_process_work+0xa/0x20 net/switchdev/switchdev.c:74
3 locks held by kworker/0:6/19010:
 #0: ffff888027bb4938 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff888027bb4938 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
 #0: ffff888027bb4938 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1198 [inline]
 #0: ffff888027bb4938 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:634 [inline]
 #0: ffff888027bb4938 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:661 [inline]
 #0: ffff888027bb4938 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x8a3/0x16b0 kernel/workqueue.c:2268
 #1: ffffc9000f43fdb0 ((addr_chk_work).work){+.+.}-{0:0}, at: process_one_work+0x8d7/0x16b0 kernel/workqueue.c:2272
 #2: ffffffff8d0e21a8 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_verify_work+0xa/0x20 net/ipv6/addrconf.c:4590
1 lock held by syz-executor.5/20415:
2 locks held by syz-executor.5/20429:
 #0: ffffffff8d174f90 (cb_lock){++++}-{3:3}, at: genl_rcv+0x15/0x40 net/netlink/genetlink.c:802
 #1: ffffffff8d0e21a8 (rtnl_mutex){+.+.}-{3:3}, at: nl80211_pre_doit+0x23/0x620 net/wireless/nl80211.c:14927
1 lock held by syz-executor.1/20444:
 #0: ffffffff8d0e21a8 (rtnl_mutex){+.+.}-{3:3}, at: tun_detach drivers/net/tun.c:684 [inline]
 #0: ffffffff8d0e21a8 (rtnl_mutex){+.+.}-{3:3}, at: tun_chr_close+0x3a/0x180 drivers/net/tun.c:3397

=============================================

NMI backtrace for cpu 1
CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:105
 nmi_trigger_cpumask_backtrace+0x1ae/0x220 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline]
 watchdog+0xc1d/0xf50 kernel/hung_task.c:295
 kthread+0x3e5/0x4d0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 16838 Comm: kworker/u4:0 Not tainted 5.15.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:__phys_addr+0x3b/0x140 arch/x86/mm/physaddr.c:25
Code: e8 ea b3 40 00 48 01 dd 48 89 df 41 0f 92 c4 48 89 ee e8 18 bb 40 00 4d 85 e4 0f 85 a4 00 00 00 49 bc 00 00 00 00 80 77 00 00 <e8> c0 b3 40 00 49 01 dc 48 89 ef 4c 89 e6 e8 f2 ba 40 00 4c 39 e5
RSP: 0018:ffffc9000f407968 EFLAGS: 00000046
RAX: 0000000000000000 RBX: ffff888012235000 RCX: ffff888092235000
RDX: 0000000000000000 RSI: ffff88807c030240 RDI: 0000000000000003
RBP: ffff888092235000 R08: ffff888012235000 R09: ffff888140183458
R10: ffffffff81347e88 R11: 000000000000003f R12: 0000778000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 000000000005df21
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007efcdc799020 CR3: 000000000b68e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 build_cr3 arch/x86/mm/tlb.c:162 [inline]
 build_cr3 arch/x86/mm/tlb.c:156 [inline]
 load_new_mm_cr3+0xa2/0x130 arch/x86/mm/tlb.c:282
 switch_mm_irqs_off+0x496/0xa10 arch/x86/mm/tlb.c:627
 use_temporary_mm arch/x86/kernel/alternative.c:741 [inline]
 __text_poke+0x447/0x8c0 arch/x86/kernel/alternative.c:838
 text_poke_bp_batch+0x2eb/0x560 arch/x86/kernel/alternative.c:1127
 text_poke_flush arch/x86/kernel/alternative.c:1268 [inline]
 text_poke_flush arch/x86/kernel/alternative.c:1265 [inline]
 text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1275
 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146
 jump_label_update+0x1d5/0x430 kernel/jump_label.c:830
 static_key_enable_cpuslocked+0x1b1/0x260 kernel/jump_label.c:177
 static_key_enable+0x16/0x20 kernel/jump_label.c:190
 toggle_allocation_gate mm/kfence/core.c:626 [inline]
 toggle_allocation_gate+0x100/0x390 mm/kfence/core.c:618
 process_one_work+0x9bf/0x16b0 kernel/workqueue.c:2297
 worker_thread+0x658/0x11f0 kernel/workqueue.c:2444
 kthread+0x3e5/0x4d0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
----------------
Code disassembly (best guess):
   0:	e8 ea b3 40 00       	callq  0x40b3ef
   5:	48 01 dd             	add    %rbx,%rbp
   8:	48 89 df             	mov    %rbx,%rdi
   b:	41 0f 92 c4          	setb   %r12b
   f:	48 89 ee             	mov    %rbp,%rsi
  12:	e8 18 bb 40 00       	callq  0x40bb2f
  17:	4d 85 e4             	test   %r12,%r12
  1a:	0f 85 a4 00 00 00    	jne    0xc4
  20:	49 bc 00 00 00 00 80 	movabs $0x778000000000,%r12
  27:	77 00 00
* 2a:	e8 c0 b3 40 00       	callq  0x40b3ef <-- trapping instruction
  2f:	49 01 dc             	add    %rbx,%r12
  32:	48 89 ef             	mov    %rbp,%rdi
  35:	4c 89 e6             	mov    %r12,%rsi
  38:	e8 f2 ba 40 00       	callq  0x40bb2f
  3d:	4c 39 e5             	cmp    %r12,%rbp

Crashes (18):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-selinux-root 2021/09/30 17:59 upstream 02d5e016800d be530f6c .config log report info INFO: task hung in nl80211_pre_doit
ci-upstream-kasan-gce-smack-root 2021/09/29 08:57 upstream a4e6f95a891a d82cb927 .config log report info INFO: task hung in nl80211_pre_doit
ci-upstream-kasan-gce-smack-root 2021/09/28 21:23 upstream d33bec7b3dfa d82cb927 .config log report info INFO: task hung in nl80211_pre_doit
ci-upstream-kasan-gce 2021/09/28 21:16 upstream d33bec7b3dfa d82cb927 .config log report info INFO: task hung in nl80211_pre_doit
ci-upstream-kasan-gce 2021/09/28 21:16 upstream d33bec7b3dfa d82cb927 .config log report info INFO: task hung in nl80211_pre_doit
ci-upstream-kasan-gce-selinux-root 2021/09/28 21:16 upstream d33bec7b3dfa d82cb927 .config log report info INFO: task hung in nl80211_pre_doit
ci-upstream-kasan-gce 2021/09/28 20:54 upstream d33bec7b3dfa d82cb927 .config log report info INFO: task hung in nl80211_pre_doit
ci-upstream-kasan-gce-root 2021/09/25 17:05 upstream 7d42e9818258 8cac236e .config log report info INFO: task hung in nl80211_pre_doit
ci-upstream-kasan-gce 2021/09/14 09:02 upstream d0ee23f9d78b 58d09404 .config log report info INFO: task hung in nl80211_pre_doit
ci-upstream-kasan-gce 2021/09/08 20:19 upstream ac08b1c68d1b e2776ee4 .config log report info INFO: task hung in nl80211_pre_doit
ci-upstream-kasan-gce-386 2021/09/30 23:18 upstream 02d5e016800d 1d849ab4 .config log report info INFO: task hung in nl80211_pre_doit
ci-upstream-kasan-gce-386 2021/09/29 18:35 upstream 02d5e016800d be530f6c .config log report info INFO: task hung in nl80211_pre_doit
ci-upstream-kasan-gce-386 2021/09/29 15:04 upstream a4e6f95a891a be530f6c .config log report info INFO: task hung in nl80211_pre_doit
ci-upstream-kasan-gce-386 2021/09/28 21:09 upstream d33bec7b3dfa d82cb927 .config log report info INFO: task hung in nl80211_pre_doit
ci-upstream-kasan-gce-386 2021/09/28 21:00 upstream d33bec7b3dfa d82cb927 .config log report info INFO: task hung in nl80211_pre_doit
ci-upstream-kasan-gce-386 2021/09/11 20:27 upstream c605c39677b9 5ae8508a .config log report info INFO: task hung in nl80211_pre_doit
ci-upstream-net-kasan-gce 2021/10/19 00:54 net-next f616447034a1 24dc29db .config log report info INFO: task hung in nl80211_pre_doit
ci-upstream-net-kasan-gce 2021/10/18 14:08 net-next d40dfa0cebd8 0c5d9412 .config log report info INFO: task hung in nl80211_pre_doit
* Struck through repros no longer work on HEAD.