syzbot


INFO: task hung in rfkill_global_led_trigger_worker

Status: auto-closed as invalid on 2022/07/31 23:38
Reported-by: syzbot+d227977a5a522957fe0d@syzkaller.appspotmail.com
First crash: 413d, last: 302d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in rfkill_global_led_trigger_worker 3 430d 466d 0/24 auto-closed as invalid on 2022/01/24 07:42
upstream INFO: task hung in rfkill_global_led_trigger_worker (2) C error 154 1h21m 75d 0/24 upstream: reported C repro on 2022/11/15 16:56

Sample crash report:
bridge0: port 1(bridge_slave_0) entered disabled state
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
INFO: task kworker/0:2:4386 blocked for more than 140 seconds.
      Not tainted 4.19.211-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
kworker/0:2     D26424  4386      2 0x80000000
Workqueue: events rfkill_global_led_trigger_worker
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:3619
 __mutex_lock_common kernel/locking/mutex.c:1016 [inline]
 __mutex_lock+0x5f0/0x1190 kernel/locking/mutex.c:1078
 rfkill_global_led_trigger_worker+0x17/0x110 net/rfkill/core.c:191
 process_one_work+0x864/0x1570 kernel/workqueue.c:2153
 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415

Showing all locks held in the system:
3 locks held by kworker/1:1/33:
 #0: 000000000829d521 ((wq_completion)"events"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124
 #1: 000000008038d0a8 (deferred_process_work){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128
 #2: 00000000955d0b68 (rtnl_mutex){+.+.}, at: switchdev_deferred_process_work+0xa/0x20 net/switchdev/switchdev.c:150
3 locks held by kworker/u4:2/61:
1 lock held by khungtaskd/1569:
 #0: 00000000050d5234 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
3 locks held by kworker/0:2/4386:
 #0: 000000000829d521 ((wq_completion)"events"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124
 #1: 00000000df64fdd0 ((work_completion)(&rfkill_global_led_trigger_work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128
 #2: 00000000d9c3f876 (rfkill_global_mutex){+.+.}, at: rfkill_global_led_trigger_worker+0x17/0x110 net/rfkill/core.c:191
1 lock held by in:imklog/7807:
 #0: 00000000c7af3c0d (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
2 locks held by agetty/7826:
 #0: 0000000008aee0a8 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272
 #1: 000000005e160063 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x217/0x1950 drivers/tty/n_tty.c:2154
2 locks held by agetty/7864:
 #0: 000000007ad3dc51 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272
 #1: 00000000a807a639 (&tty->atomic_write_lock){+.+.}, at: tty_write_lock drivers/tty/tty_io.c:886 [inline]
 #1: 00000000a807a639 (&tty->atomic_write_lock){+.+.}, at: do_tty_write drivers/tty/tty_io.c:909 [inline]
 #1: 00000000a807a639 (&tty->atomic_write_lock){+.+.}, at: tty_write+0x24e/0x810 drivers/tty/tty_io.c:1044
4 locks held by kworker/u4:5/8886:
 #0: 0000000069b32fba ((wq_completion)"%s""netns"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124
 #1: 00000000df1e8b1a (net_cleanup_work){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128
 #2: 000000002ccbd5bd (pernet_ops_rwsem){++++}, at: cleanup_net+0xa8/0x8b0 net/core/net_namespace.c:521
 #3: 00000000955d0b68 (rtnl_mutex){+.+.}, at: cangw_pernet_exit+0xe/0x20 net/can/gw.c:1032
3 locks held by kworker/1:4/24223:
 #0: 0000000027158555 ((wq_completion)"%s"("ipv6_addrconf")){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124
 #1: 000000008ea5c917 ((addr_chk_work).work){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128
 #2: 00000000955d0b68 (rtnl_mutex){+.+.}, at: addrconf_verify_work+0xa/0x20 net/ipv6/addrconf.c:4476
3 locks held by kworker/1:6/24225:
 #0: 000000000829d521 ((wq_completion)"events"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124
 #1: 000000007ea2a4ef ((linkwatch_work).work){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128
 #2: 00000000955d0b68 (rtnl_mutex){+.+.}, at: linkwatch_event+0xb/0x60 net/core/link_watch.c:236
2 locks held by syz-executor.0/25766:
 #0: 00000000d9c3f876 (rfkill_global_mutex){+.+.}, at: rfkill_fop_write+0xfe/0x4a0 net/rfkill/core.c:1241
 #1: 00000000955d0b68 (rtnl_mutex){+.+.}, at: cfg80211_rfkill_set_block net/wireless/core.c:282 [inline]
 #1: 00000000955d0b68 (rtnl_mutex){+.+.}, at: cfg80211_rfkill_set_block+0x23/0x40 net/wireless/core.c:275
2 locks held by syz-executor.1/25905:
 #0: 000000002ccbd5bd (pernet_ops_rwsem){++++}, at: copy_net_ns+0x1d8/0x340 net/core/net_namespace.c:435
 #1: 00000000955d0b68 (rtnl_mutex){+.+.}, at: ip_tunnel_init_net+0x321/0x990 net/ipv4/ip_tunnel.c:1034
1 lock held by syz-executor.1/25907:
2 locks held by syz-executor.1/25920:
 #0: 000000002ccbd5bd (pernet_ops_rwsem){++++}, at: copy_net_ns+0x1d8/0x340 net/core/net_namespace.c:435
 #1: 00000000955d0b68 (rtnl_mutex){+.+.}, at: gtp_net_exit+0x1ba/0x380 drivers/net/gtp.c:1360

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

NMI backtrace for cpu 0
CPU: 0 PID: 1569 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
 watchdog+0x991/0xe60 kernel/hung_task.c:287
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 25907 Comm: syz-executor.1 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:native_apic_mem_write+0x8/0x10 arch/x86/include/asm/apic.h:109
Code: 3d cc 17 3d 0b 01 7f 02 5d c3 89 ef 5d e9 f5 fe c9 06 48 c7 c7 00 97 65 8c e8 84 e2 6f 00 eb df 66 90 89 ff 89 b7 00 c0 5f ff <c3> 0f 1f 80 00 00 00 00 48 b8 00 00 00 00 00 fc ff df 53 89 fb 48
RSP: 0018:ffff8880ba107fc0 EFLAGS: 00000046
RAX: dffffc0000000000 RBX: ffffffff89cfb1a0 RCX: ffffffff83771e23
RDX: 1ffffffff139f634 RSI: 0000000000000000 RDI: 00000000000000b0
RBP: 0000000000000000 R08: ffffffff8c665058 R09: 0000000000000000
R10: 0000000000000005 R11: ffffffff8c66505b R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f2158e73700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcb5e611000 CR3: 0000000050b82000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 apic_eoi arch/x86/include/asm/apic.h:394 [inline]
 ack_APIC_irq arch/x86/include/asm/apic.h:440 [inline]
 entering_ack_irq arch/x86/include/asm/apic.h:524 [inline]
 smp_apic_timer_interrupt+0x7d/0x550 arch/x86/kernel/apic/apic.c:1094
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
 </IRQ>
RIP: 0010:lock_release+0x440/0x8b0 kernel/locking/lockdep.c:3931
Code: 83 3d 7b 34 a6 08 00 0f 84 cc 01 00 00 48 8b 3c 24 57 9d 0f 1f 44 00 00 48 b8 00 00 00 00 00 fc ff df 49 c7 04 04 00 00 00 00 <48> 8b 44 24 70 65 48 2b 04 25 28 00 00 00 0f 85 67 03 00 00 48 83
RSP: 0018:ffff888097e0eac8 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: dffffc0000000000 RBX: ffff888096e76080 RCX: 1ffff11012dced26
RDX: dffffc0000000000 RSI: 0000000000000002 RDI: 0000000000000286
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: 1ffff11012fc1d5c
R13: eebb08106f39bc0e R14: ffff888096e76080 R15: 0000000000000002
 __raw_spin_unlock include/linux/spinlock_api_smp.h:150 [inline]
 _raw_spin_unlock+0x17/0x40 kernel/locking/spinlock.c:176
 spin_unlock include/linux/spinlock.h:369 [inline]
 get_next_corpse net/netfilter/nf_conntrack_core.c:1906 [inline]
 nf_ct_iterate_cleanup+0x223/0x520 net/netfilter/nf_conntrack_core.c:1930
 nf_ct_iterate_cleanup_net net/netfilter/nf_conntrack_core.c:2015 [inline]
 nf_ct_iterate_cleanup_net+0x113/0x170 net/netfilter/nf_conntrack_core.c:2000
 masq_device_event+0xd6/0x110 net/ipv4/netfilter/nf_nat_masquerade_ipv4.c:100
 notifier_call_chain+0xc0/0x230 kernel/notifier.c:93
 call_netdevice_notifiers net/core/dev.c:1762 [inline]
 __dev_notify_flags+0x1da/0x2b0 net/core/dev.c:7719
 dev_change_flags+0xf0/0x140 net/core/dev.c:7753
 do_setlink+0x14f1/0x3540 net/core/rtnetlink.c:2449
 rtnl_group_changelink net/core/rtnetlink.c:2925 [inline]
 rtnl_newlink+0xbc9/0x15c0 net/core/rtnetlink.c:3083
 rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4782
 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2463
 netlink_unicast_kernel net/netlink/af_netlink.c:1325 [inline]
 netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1351
 netlink_sendmsg+0x6c3/0xc50 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:661
 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227
 __sys_sendmsg net/socket.c:2265 [inline]
 __do_sys_sendmsg net/socket.c:2274 [inline]
 __se_sys_sendmsg net/socket.c:2272 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2272
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f215a51f049
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2158e73168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f215a632030 RCX: 00007f215a51f049
RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000004
RBP: 00007f215a57908d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffcc12f60df R14: 00007f2158e73300 R15: 0000000000022000
----------------
Code disassembly (best guess):
   0:	3d cc 17 3d 0b       	cmp    $0xb3d17cc,%eax
   5:	01 7f 02             	add    %edi,0x2(%rdi)
   8:	5d                   	pop    %rbp
   9:	c3                   	retq
   a:	89 ef                	mov    %ebp,%edi
   c:	5d                   	pop    %rbp
   d:	e9 f5 fe c9 06       	jmpq   0x6c9ff07
  12:	48 c7 c7 00 97 65 8c 	mov    $0xffffffff8c659700,%rdi
  19:	e8 84 e2 6f 00       	callq  0x6fe2a2
  1e:	eb df                	jmp    0xffffffff
  20:	66 90                	xchg   %ax,%ax
  22:	89 ff                	mov    %edi,%edi
  24:	89 b7 00 c0 5f ff    	mov    %esi,-0xa04000(%rdi)
* 2a:	c3                   	retq <-- trapping instruction
  2b:	0f 1f 80 00 00 00 00 	nopl   0x0(%rax)
  32:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  39:	fc ff df
  3c:	53                   	push   %rbx
  3d:	89 fb                	mov    %edi,%ebx
  3f:	48                   	rex.W

Crashes (7):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-linux-4-19 2022/04/02 23:37 linux-4.19.y 3f8a27f9e27b 79a2a8fc .config console log report info INFO: task hung in rfkill_global_led_trigger_worker
ci2-linux-4-19 2022/01/13 07:00 linux-4.19.y 3f8a27f9e27b 44d1319a .config console log report info INFO: task hung in rfkill_global_led_trigger_worker
ci2-linux-4-19 2022/01/11 12:51 linux-4.19.y 3f8a27f9e27b 1884f55a .config console log report info INFO: task hung in rfkill_global_led_trigger_worker
ci2-linux-4-19 2022/01/03 12:59 linux-4.19.y 3f8a27f9e27b e1768e9c .config console log report info INFO: task hung in rfkill_global_led_trigger_worker
ci2-linux-4-19 2021/12/30 04:02 linux-4.19.y 3f8a27f9e27b 6cc879d4 .config console log report info INFO: task hung in rfkill_global_led_trigger_worker
ci2-linux-4-19 2021/12/14 11:24 linux-4.19.y 3f8a27f9e27b 5d14b1ea .config console log report info INFO: task hung in rfkill_global_led_trigger_worker
ci2-linux-4-19 2021/12/12 06:05 linux-4.19.y 3f8a27f9e27b 49ca1f59 .config console log report info INFO: task hung in rfkill_global_led_trigger_worker
* Struck through repros no longer work on HEAD.