INFO: task hung in rtnetlink_rcv_msg (3)

6 views
Skip to first unread message

syzbot

unread,
Jun 20, 2022, 7:55:21 PM6/20/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10946c60080000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=72e28f36fb3cbb533157
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+72e28f...@syzkaller.appspotmail.com

IPv6: ADDRCONF(NETDEV_CHANGE): vxcan1: link becomes ready
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 syz-executor.4:9090 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 D28952 9090 8162 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_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:0x7fede9755109
Code: Bad RIP value.
RSP: 002b:00007fede80ca168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fede9867f60 RCX: 00007fede9755109
RDX: 0000000000000000 RSI: 0000000020000380 RDI: 0000000000000004
RBP: 00007fede97af05d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff83b48c5f R14: 00007fede80ca300 R15: 0000000000022000
INFO: task syz-executor.3:9164 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.3 D28352 9164 26701 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
do_ip_setsockopt.constprop.0+0x11c/0x3ba0 net/ipv4/ip_sockglue.c:642
ip_setsockopt+0x44/0xf0 net/ipv4/ip_sockglue.c:1246
tcp_setsockopt+0x86/0xd0 net/ipv4/tcp.c:3108
__sys_setsockopt+0x14d/0x240 net/socket.c:2013
__do_sys_setsockopt net/socket.c:2024 [inline]
__se_sys_setsockopt net/socket.c:2021 [inline]
__x64_sys_setsockopt+0xba/0x150 net/socket.c:2021
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f070be34109
Code: Bad RIP value.
RSP: 002b:00007f070a7a9168 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f070bf46f60 RCX: 00007f070be34109
RDX: 0000000000000027 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 00007f070be8e05d R08: 000000000000000c R09: 0000000000000000
R10: 0000000020000300 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffed5f0839f R14: 00007f070a7a9300 R15: 0000000000022000
INFO: task syz-executor.3:9167 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.3 D29768 9167 26701 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
do_ip_setsockopt.constprop.0+0x11c/0x3ba0 net/ipv4/ip_sockglue.c:642
ip_setsockopt+0x44/0xf0 net/ipv4/ip_sockglue.c:1246
tcp_setsockopt+0x86/0xd0 net/ipv4/tcp.c:3108
__sys_setsockopt+0x14d/0x240 net/socket.c:2013
__do_sys_setsockopt net/socket.c:2024 [inline]
__se_sys_setsockopt net/socket.c:2021 [inline]
__x64_sys_setsockopt+0xba/0x150 net/socket.c:2021
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f070be34109
Code: Bad RIP value.
RSP: 002b:00007f070a788168 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f070bf47030 RCX: 00007f070be34109
RDX: 0000000000000029 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 00007f070be8e05d R08: 0000000000000014 R09: 0000000000000000
R10: 0000000020002380 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffed5f0839f R14: 00007f070a788300 R15: 0000000000022000

Showing all locks held in the system:
1 lock held by khungtaskd/1570:
#0: 000000006517a7b4 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
1 lock held by in:imklog/7822:
#0: 0000000019170772 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
3 locks held by kworker/0:1/31400:
#0: 0000000070e0ffd9 ((wq_completion)"%s"("ipv6_addrconf")){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124
#1: 00000000cefb00d6 ((addr_chk_work).work){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128
#2: 000000002b535490 (rtnl_mutex){+.+.}, at: addrconf_verify_work+0xa/0x20 net/ipv6/addrconf.c:4476
3 locks held by kworker/0:2/9943:
#0: 00000000d3184000 ((wq_completion)"events"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124
#1: 0000000061bf8f79 (deferred_process_work){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128
#2: 000000002b535490 (rtnl_mutex){+.+.}, at: switchdev_deferred_process_work+0xa/0x20 net/switchdev/switchdev.c:150
3 locks held by syz-executor.5/9088:
1 lock held by syz-executor.4/9090:
#0: 000000002b535490 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline]
#0: 000000002b535490 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x3fe/0xb80 net/core/rtnetlink.c:4779
1 lock held by syz-executor.3/9164:
#0: 000000002b535490 (rtnl_mutex){+.+.}, at: do_ip_setsockopt.constprop.0+0x11c/0x3ba0 net/ipv4/ip_sockglue.c:642
1 lock held by syz-executor.3/9167:
#0: 000000002b535490 (rtnl_mutex){+.+.}, at: do_ip_setsockopt.constprop.0+0x11c/0x3ba0 net/ipv4/ip_sockglue.c:642

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

NMI backtrace for cpu 0
CPU: 0 PID: 1570 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: 9088 Comm: syz-executor.5 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x4/0x20 kernel/kcov.c:188
Code: 84 00 00 00 00 00 48 8b 0c 24 0f b7 d6 0f b7 f7 bf 03 00 00 00 e9 ec fe ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 90 48 8b 0c 24 <89> f2 89 fe bf 05 00 00 00 e9 ce fe ff ff 66 66 2e 0f 1f 84 00 00
RSP: 0018:ffff8880ba107df8 EFLAGS: 00000006
RAX: ffff8881e55a0580 RBX: 0000000000000001 RCX: ffffffff81542d7e
RDX: 0000000000010000 RSI: 0000000000000001 RDI: 0000000000000007
RBP: 000002e6ab280a40 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: ffffffff8c66505b R12: 0000000000000086
R13: ffff8881ca98ca98 R14: ffff8880ba124d40 R15: dffffc0000000000
FS: 00007fbad582c700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb7dd916000 CR3: 00000001e24d5000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
cpu_max_bits_warn include/linux/cpumask.h:121 [inline]
cpumask_check include/linux/cpumask.h:128 [inline]
cpumask_test_cpu include/linux/cpumask.h:344 [inline]
trace_hrtimer_cancel include/trace/events/timer.h:285 [inline]
debug_deactivate kernel/time/hrtimer.c:472 [inline]
__run_hrtimer kernel/time/hrtimer.c:1435 [inline]
__hrtimer_run_queues+0x1de/0xe60 kernel/time/hrtimer.c:1527
hrtimer_interrupt+0x326/0x9e0 kernel/time/hrtimer.c:1585
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1071 [inline]
smp_apic_timer_interrupt+0x10c/0x550 arch/x86/kernel/apic/apic.c:1096
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
</IRQ>
RIP: 0010:fib6_clean_node+0x228/0x560 net/ipv6/ip6_fib.c:1995
Code: ff 89 de e8 0a 3c 58 fa 85 db 0f 85 6c e1 08 01 e8 8d 3a 58 fa e8 08 53 46 fa 48 8d 7d 08 48 89 f8 48 c1 e8 03 42 80 3c 28 00 <0f> 85 8d 02 00 00 48 8b 6d 08 48 85 ed 0f 84 62 01 00 00 e8 60 3a
RSP: 0018:ffff8881c9a368e8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 1ffff11005fb7af1 RBX: 0000000000000000 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffff88802fdbd788
RBP: ffff88802fdbd780 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8881c9a36a80
R13: dffffc0000000000 R14: ffffed1039346d5c R15: ffffed1039346d5a
fib6_walk_continue+0x4ff/0x8d0 net/ipv6/ip6_fib.c:1922
fib6_walk+0x182/0x370 net/ipv6/ip6_fib.c:1970
fib6_clean_tree+0xc2/0x100 net/ipv6/ip6_fib.c:2047
__fib6_clean_all+0x11f/0x2a0 net/ipv6/ip6_fib.c:2063
rt6_sync_up+0xfa/0x150 net/ipv6/route.c:4024
addrconf_notify+0x1594/0x21f0 net/ipv6/addrconf.c:3523
notifier_call_chain+0xc0/0x230 kernel/notifier.c:93
netdev_state_change net/core/dev.c:1349 [inline]
netdev_state_change+0x100/0x130 net/core/dev.c:1342
do_setlink+0x2c8a/0x3540 net/core/rtnetlink.c:2661
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:0x7fbad6eb7109
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:00007fbad582c168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fbad6fc9f60 RCX: 00007fbad6eb7109
RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000003
RBP: 00007fbad6f1105d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd2c05ea4f R14: 00007fbad582c300 R15: 0000000000022000
----------------
Code disassembly (best guess):
0: 84 00 test %al,(%rax)
2: 00 00 add %al,(%rax)
4: 00 00 add %al,(%rax)
6: 48 8b 0c 24 mov (%rsp),%rcx
a: 0f b7 d6 movzwl %si,%edx
d: 0f b7 f7 movzwl %di,%esi
10: bf 03 00 00 00 mov $0x3,%edi
15: e9 ec fe ff ff jmpq 0xffffff06
1a: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1)
21: 00 00 00 00
25: 90 nop
26: 48 8b 0c 24 mov (%rsp),%rcx
* 2a: 89 f2 mov %esi,%edx <-- trapping instruction
2c: 89 fe mov %edi,%esi
2e: bf 05 00 00 00 mov $0x5,%edi
33: e9 ce fe ff ff jmpq 0xffffff06
38: 66 data16
39: 66 data16
3a: 2e cs
3b: 0f .byte 0xf
3c: 1f (bad)
3d: 84 00 test %al,(%rax)


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
Reply all
Reply to author
Forward
0 new messages