syzbot


INFO: task hung in rtnetlink_rcv_msg (3)

Status: upstream: reported on 2022/06/20 23:55
Reported-by: syzbot+72e28f36fb3cbb533157@syzkaller.appspotmail.com
First crash: 230d, last: 8d22h
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in rtnetlink_rcv_msg (2) 14 384d 563d 0/1 auto-closed as invalid on 2022/05/18 11:30
linux-4.19 INFO: task hung in rtnetlink_rcv_msg 11 816d 1137d 0/1 auto-closed as invalid on 2021/03/12 19:03
upstream INFO: task hung in rtnetlink_rcv_msg C inconclusive inconclusive 404 3d23h 1445d 0/24 upstream: reported C repro on 2019/02/22 17:00
upstream INFO: task hung in cangw_pernet_exit (3) syz unreliable 290 405d 512d 0/24 closed as invalid on 2022/02/08 10:22

Sample crash report:
Bluetooth: hci9: command 0x0419 tx timeout
Bluetooth: hci10: command 0x040f tx timeout
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
Bluetooth: hci6: command 0x0406 tx timeout
INFO: task syz-executor.4:12798 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.
syz-executor.4  D28648 12798      1 0x00000004
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
 rtnl_lock net/core/rtnetlink.c:77 [inline]
 rtnetlink_rcv_msg+0x3fe/0xb80 net/core/rtnetlink.c:4779
 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_sendto+0x21a/0x320 net/socket.c:1899
 __do_sys_sendto net/socket.c:1911 [inline]
 __se_sys_sendto net/socket.c:1907 [inline]
 __x64_sys_sendto+0xdd/0x1b0 net/socket.c:1907
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f5f7754c0fc
Code: Bad RIP value.
RSP: 002b:00007ffc5aeaf670 EFLAGS: 00000293 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f5f781e2620 RCX: 00007f5f7754c0fc
RDX: 0000000000000028 RSI: 00007f5f781e2670 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007ffc5aeaf6c4 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 00007f5f781e2670 R14: 0000000000000003 R15: 0000000000000000

Showing all locks held in the system:
5 locks held by kworker/u4:0/7:
2 locks held by kworker/u4:2/53:
1 lock held by khungtaskd/1571:
 #0: 00000000798f3de1 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
1 lock held by khugepaged/1578:
1 lock held by systemd-journal/4686:
3 locks held by kworker/1:2/4695:
1 lock held by in:imklog/7820:
 #0: 0000000083e0a4fe (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
1 lock held by syz-executor.0/8136:
 #0: 0000000090df0a65 (rtnl_mutex){+.+.}, at: tun_detach drivers/net/tun.c:759 [inline]
 #0: 0000000090df0a65 (rtnl_mutex){+.+.}, at: tun_chr_close+0x3a/0x180 drivers/net/tun.c:3323
3 locks held by kworker/0:2/9347:
 #0: 00000000a7201a94 ((wq_completion)"%s"("ipv6_addrconf")){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124
 #1: 0000000057853bff ((addr_chk_work).work){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128
 #2: 0000000090df0a65 (rtnl_mutex){+.+.}, at: addrconf_verify_work+0xa/0x20 net/ipv6/addrconf.c:4476
6 locks held by syz-executor.5/12699:
3 locks held by syz-executor.1/12708:
1 lock held by syz-executor.2/12776:
 #0: 0000000090df0a65 (rtnl_mutex){+.+.}, at: netdev_run_todo+0x719/0xab0 net/core/dev.c:9005
2 locks held by syz-executor.2/12781:
 #0: 00000000bf1ce2c2 (vlan_ioctl_mutex){+.+.}, at: sock_ioctl+0x385/0x5d0 net/socket.c:1111
 #1: 0000000090df0a65 (rtnl_mutex){+.+.}, at: vlan_ioctl_handler+0xb7/0xf00 net/8021q/vlan.c:547
1 lock held by syz-executor.4/12798:
 #0: 0000000090df0a65 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline]
 #0: 0000000090df0a65 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x3fe/0xb80 net/core/rtnetlink.c:4779
1 lock held by syz-executor.1/12824:
 #0: 0000000090df0a65 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline]
 #0: 0000000090df0a65 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x3fe/0xb80 net/core/rtnetlink.c:4779
1 lock held by syz-executor.5/12848:
 #0: 0000000090df0a65 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline]
 #0: 0000000090df0a65 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x3fe/0xb80 net/core/rtnetlink.c:4779
1 lock held by syz-executor.1/12866:
 #0: 0000000090df0a65 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline]
 #0: 0000000090df0a65 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x3fe/0xb80 net/core/rtnetlink.c:4779
2 locks held by syz-executor.4/12867:
1 lock held by syz-executor.0/12868:
 #0: 0000000090df0a65 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline]
 #0: 0000000090df0a65 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x3fe/0xb80 net/core/rtnetlink.c:4779
1 lock held by syz-executor.3/12873:
 #0: 0000000090df0a65 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline]
 #0: 0000000090df0a65 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x3fe/0xb80 net/core/rtnetlink.c:4779
1 lock held by syz-executor.2/12888:

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

NMI backtrace for cpu 0
CPU: 0 PID: 1571 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
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: 12699 Comm: syz-executor.5 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
RIP: 0010:unwind_next_frame+0xf2a/0x1400 arch/x86/kernel/unwind_orc.c:555
Code: ff ff e8 23 ad d6 ff e9 86 f1 ff ff 49 8d 7f 02 48 be 00 00 00 00 00 fc ff df 49 8d 56 40 48 89 f8 48 c1 e8 03 44 0f b6 04 30 <49> 8d 47 03 49 89 c1 49 c1 e9 03 41 0f b6 34 31 49 89 f9 41 83 e1
RSP: 0018:ffff8880ba106e48 EFLAGS: 00000a02
RAX: 1ffffffff17ec0c2 RBX: 1ffff11017420dd2 RCX: ffffffff8bf60615
RDX: ffff8880ba106fb8 RSI: dffffc0000000000 RDI: ffffffff8bf60612
RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff8bf60610
R10: ffff8880ba106fd7 R11: 0000000000074071 R12: ffff8880b35df968
R13: ffff8880ba106fad R14: ffff8880ba106f78 R15: ffffffff8bf60610
FS:  00007ff8070de700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8ecbf11010 CR3: 00000000a3394000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __save_stack_trace+0x9f/0x190 arch/x86/kernel/stacktrace.c:44
 save_stack mm/kasan/kasan.c:448 [inline]
 set_track mm/kasan/kasan.c:460 [inline]
 kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:553
 kmem_cache_alloc+0x122/0x370 mm/slab.c:3559
 skb_clone+0x151/0x3d0 net/core/skbuff.c:1293
 dev_queue_xmit_nit+0x326/0xa20 net/core/dev.c:2018
 xmit_one net/core/dev.c:3252 [inline]
 dev_hard_start_xmit+0xaa/0x920 net/core/dev.c:3272
 __dev_queue_xmit+0x269d/0x2e00 net/core/dev.c:3838
 macvlan_queue_xmit drivers/net/macvlan.c:545 [inline]
 macvlan_start_xmit+0x19a/0x7e0 drivers/net/macvlan.c:570
 __netdev_start_xmit include/linux/netdevice.h:4349 [inline]
 netdev_start_xmit include/linux/netdevice.h:4363 [inline]
 xmit_one net/core/dev.c:3256 [inline]
 dev_hard_start_xmit+0x1a8/0x920 net/core/dev.c:3272
 __dev_queue_xmit+0x269d/0x2e00 net/core/dev.c:3838
 neigh_resolve_output+0x55a/0x910 net/core/neighbour.c:1374
 neigh_output include/net/neighbour.h:501 [inline]
 ip6_finish_output2+0x113d/0x2290 net/ipv6/ip6_output.c:120
 ip6_finish_output+0x89b/0x10f0 net/ipv6/ip6_output.c:192
 NF_HOOK_COND include/linux/netfilter.h:278 [inline]
 ip6_output+0x205/0x770 net/ipv6/ip6_output.c:209
 dst_output include/net/dst.h:455 [inline]
 NF_HOOK include/linux/netfilter.h:289 [inline]
 ndisc_send_skb+0xa24/0x1720 net/ipv6/ndisc.c:491
 ndisc_send_rs+0x131/0x690 net/ipv6/ndisc.c:685
 addrconf_rs_timer+0x384/0x6a0 net/ipv6/addrconf.c:3835
 call_timer_fn+0x177/0x700 kernel/time/timer.c:1338
 expire_timers+0x243/0x4e0 kernel/time/timer.c:1375
 __run_timers kernel/time/timer.c:1696 [inline]
 run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1709
 __do_softirq+0x265/0x980 kernel/softirq.c:292
 invoke_softirq kernel/softirq.c:372 [inline]
 irq_exit+0x215/0x260 kernel/softirq.c:412
 exiting_irq arch/x86/include/asm/apic.h:536 [inline]
 smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
 </IRQ>
RIP: 0010:__sanitizer_cov_trace_pc+0x37/0x50 kernel/kcov.c:106
Code: 65 8b 15 cc 59 9f 7e 81 e2 00 01 1f 00 75 2b 8b 90 60 13 00 00 83 fa 02 75 20 48 8b 88 68 13 00 00 8b 80 64 13 00 00 48 8b 11 <48> 83 c2 01 48 39 d0 76 07 48 89 34 d1 48 89 11 c3 0f 1f 84 00 00
RSP: 0018:ffff8880b35df3f8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000040000 RBX: ffff888091b4b0c0 RCX: ffffc90009d4e000
RDX: 000000000003ffff RSI: ffffffff812b5e6a RDI: 0000000000000006
RBP: ffff888111b4b0c0 R08: 0000000000000000 R09: ffff888091b4b0c0
R10: 0000000000000006 R11: 0000000000000000 R12: 0000778000000000
R13: ffff8880b35df458 R14: 0000000000000000 R15: 0000000000000286
 __phys_addr+0x3a/0x110 arch/x86/mm/physaddr.c:24
 virt_to_head_page include/linux/mm.h:665 [inline]
 qlink_to_cache mm/kasan/quarantine.c:127 [inline]
 qlist_free_all+0xbb/0x140 mm/kasan/quarantine.c:163
 quarantine_reduce+0x1a9/0x230 mm/kasan/quarantine.c:259
 kasan_kmalloc+0xa2/0x160 mm/kasan/kasan.c:538
 kmem_cache_alloc_node+0x146/0x3b0 mm/slab.c:3649
 __alloc_skb+0x71/0x560 net/core/skbuff.c:193
 alloc_skb include/linux/skbuff.h:995 [inline]
 nlmsg_new include/net/netlink.h:511 [inline]
 rtmsg_ifinfo_build_skb+0x72/0x1a0 net/core/rtnetlink.c:3353
 rollback_registered_many+0x8ce/0xe70 net/core/dev.c:8200
 unregister_netdevice_many.part.0+0x1a/0x300 net/core/dev.c:9324
 unregister_netdevice_many+0x36/0x50 net/core/dev.c:9323
 ip_tunnel_delete_nets+0x3d3/0x580 net/ipv4/ip_tunnel.c:1088
 ops_exit_list+0xf9/0x150 net/core/net_namespace.c:156
 setup_net+0x3d1/0x720 net/core/net_namespace.c:333
 copy_net_ns+0x1f7/0x340 net/core/net_namespace.c:439
 create_new_namespaces+0x3f6/0x7b0 kernel/nsproxy.c:107
 copy_namespaces+0x325/0x3c0 kernel/nsproxy.c:165
 copy_process.part.0+0x3a59/0x8260 kernel/fork.c:1916
 copy_process kernel/fork.c:1710 [inline]
 _do_fork+0x22f/0xf30 kernel/fork.c:2219
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7ff808b6c0c9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 f
Lost 7 message(s)!

Crashes (7):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-linux-4-19 2023/01/28 21:16 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] INFO: task hung in rtnetlink_rcv_msg
ci2-linux-4-19 2023/01/13 15:27 linux-4.19.y 3f8a27f9e27b 529798b0 .config console log report info [disk image] [vmlinux] INFO: task hung in rtnetlink_rcv_msg
ci2-linux-4-19 2022/11/15 23:58 linux-4.19.y 3f8a27f9e27b 3a127a31 .config console log report info [disk image] [vmlinux] INFO: task hung in rtnetlink_rcv_msg
ci2-linux-4-19 2022/10/22 07:48 linux-4.19.y 3f8a27f9e27b c0b80a55 .config console log report info [disk image] [vmlinux] INFO: task hung in rtnetlink_rcv_msg
ci2-linux-4-19 2022/10/08 21:33 linux-4.19.y 3f8a27f9e27b aea5da89 .config console log report info [disk image] [vmlinux] INFO: task hung in rtnetlink_rcv_msg
ci2-linux-4-19 2022/09/07 19:42 linux-4.19.y 3f8a27f9e27b c5b7bc57 .config console log report info [disk image] [vmlinux] INFO: task hung in rtnetlink_rcv_msg
ci2-linux-4-19 2022/06/20 23:54 linux-4.19.y 3f8a27f9e27b b9406563 .config console log report info INFO: task hung in rtnetlink_rcv_msg
* Struck through repros no longer work on HEAD.