syzbot


INFO: task hung in sock_do_ioctl

Status: auto-closed as invalid on 2020/08/22 19:50
Reported-by: syzbot+f16746537fa8f92de55b@syzkaller.appspotmail.com
First crash: 1716d, last: 1671d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in sock_do_ioctl (4) wireless 2 1202d 1261d 0/28 auto-closed as invalid on 2021/11/04 14:07
upstream INFO: task hung in sock_do_ioctl net 6 1877d 2264d 0/28 closed as invalid on 2019/10/23 07:22
upstream INFO: task hung in sock_do_ioctl (3) net 11 1385d 1604d 0/28 auto-closed as invalid on 2021/05/17 11:26
upstream INFO: task hung in sock_do_ioctl (2) net 1 1711d 1711d 0/28 auto-closed as invalid on 2020/06/14 04:13

Sample crash report:
netlink: 'syz-executor.3': attribute type 5 has an invalid length.
IPv6: ADDRCONF(NETDEV_CHANGE): vcan0: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): vxcan0: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): vxcan1: link becomes ready
INFO: task syz-executor.1:18559 blocked for more than 140 seconds.
      Not tainted 4.19.118-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.1  D29368 18559   6577 0x00000004
Call Trace:
 schedule+0x8d/0x1b0 kernel/sched/core.c:3559
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:3617
 __mutex_lock_common kernel/locking/mutex.c:1002 [inline]
 __mutex_lock+0x726/0x1300 kernel/locking/mutex.c:1072
 sock_do_ioctl+0x24e/0x2f0 net/socket.c:963
 sock_ioctl+0x325/0x610 net/socket.c:1074
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcda/0x12e0 fs/ioctl.c:688
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45c829
Code: Bad RIP value.
RSP: 002b:00007f3e68337c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004e8e80 RCX: 000000000045c829
RDX: 0000000000400200 RSI: 0000000000008912 RDI: 0000000000000006
RBP: 000000000078c180 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 000000000000040f R14: 00000000004c6afa R15: 00007f3e683386d4
INFO: task syz-executor.4:18561 blocked for more than 140 seconds.
      Not tainted 4.19.118-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.4  D28896 18561   6754 0x00000004
Call Trace:
 schedule+0x8d/0x1b0 kernel/sched/core.c:3559
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:3617
 __mutex_lock_common kernel/locking/mutex.c:1002 [inline]
 __mutex_lock+0x726/0x1300 kernel/locking/mutex.c:1072
 rtnl_lock net/core/rtnetlink.c:77 [inline]
 rtnetlink_rcv_msg+0x3fe/0xaf0 net/core/rtnetlink.c:4774
 netlink_rcv_skb+0x160/0x410 net/netlink/af_netlink.c:2455
 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
 netlink_unicast+0x4d7/0x6a0 net/netlink/af_netlink.c:1344
 netlink_sendmsg+0x80b/0xcd0 net/netlink/af_netlink.c:1909
 sock_sendmsg_nosec net/socket.c:622 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:632
 ___sys_sendmsg+0x803/0x920 net/socket.c:2115
 __sys_sendmsg+0xec/0x1b0 net/socket.c:2153
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45c829
Code: Bad RIP value.
RSP: 002b:00007fc04c004c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000500a40 RCX: 000000000045c829
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000004
RBP: 000000000078c040 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000009fe R14: 00000000004ccb57 R15: 00007fc04c0056d4

Showing all locks held in the system:
1 lock held by khungtaskd/1078:
 #0: 00000000bf55f299 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4440
1 lock held by in:imklog/6114:
 #0: 00000000abf3439a (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xe3/0x100 fs/file.c:767
3 locks held by kworker/0:3/13524:
 #0: 0000000046bccf39 ((wq_completion)"%s"("ipv6_addrconf")){+.+.}, at: __write_once_size include/linux/compiler.h:220 [inline]
 #0: 0000000046bccf39 ((wq_completion)"%s"("ipv6_addrconf")){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: 0000000046bccf39 ((wq_completion)"%s"("ipv6_addrconf")){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:40 [inline]
 #0: 0000000046bccf39 ((wq_completion)"%s"("ipv6_addrconf")){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:59 [inline]
 #0: 0000000046bccf39 ((wq_completion)"%s"("ipv6_addrconf")){+.+.}, at: set_work_data kernel/workqueue.c:617 [inline]
 #0: 0000000046bccf39 ((wq_completion)"%s"("ipv6_addrconf")){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline]
 #0: 0000000046bccf39 ((wq_completion)"%s"("ipv6_addrconf")){+.+.}, at: process_one_work+0x81a/0x1640 kernel/workqueue.c:2126
 #1: 00000000e2d120a2 ((addr_chk_work).work){+.+.}, at: process_one_work+0x84e/0x1640 kernel/workqueue.c:2130
 #2: 000000007d5c1cae (rtnl_mutex){+.+.}, at: addrconf_verify_work+0xa/0x20 net/ipv6/addrconf.c:4475
1 lock held by syz-executor.3/18536:
 #0: 000000007d5c1cae (rtnl_mutex){+.+.}, at: tun_detach drivers/net/tun.c:751 [inline]
 #0: 000000007d5c1cae (rtnl_mutex){+.+.}, at: tun_chr_close+0x3a/0x180 drivers/net/tun.c:3261
7 locks held by syz-executor.1/18548:
1 lock held by syz-executor.1/18559:
 #0: 000000007d5c1cae (rtnl_mutex){+.+.}, at: sock_do_ioctl+0x24e/0x2f0 net/socket.c:963
1 lock held by syz-executor.2/18544:
 #0: 000000007d5c1cae (rtnl_mutex){+.+.}, at: tun_detach drivers/net/tun.c:751 [inline]
 #0: 000000007d5c1cae (rtnl_mutex){+.+.}, at: tun_chr_close+0x3a/0x180 drivers/net/tun.c:3261
1 lock held by syz-executor.4/18561:
 #0: 000000007d5c1cae (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline]
 #0: 000000007d5c1cae (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x3fe/0xaf0 net/core/rtnetlink.c:4774

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

NMI backtrace for cpu 1
CPU: 1 PID: 1078 Comm: khungtaskd Not tainted 4.19.118-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+0x188/0x20d lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1a6/0x1eb 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+0x962/0xe40 kernel/hung_task.c:287
 kthread+0x34a/0x420 kernel/kthread.c:246
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 18548 Comm: syz-executor.1 Not tainted 4.19.118-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:write_comp_data+0x68/0x70 kernel/kcov.c:146
Code: 00 00 4e 8d 14 dd 28 00 00 00 4d 39 d0 72 1b 49 83 c1 01 4a 89 7c 10 e0 4a 89 74 10 e8 4a 89 54 10 f0 4a 89 4c d8 20 4c 89 08 <c3> 0f 1f 80 00 00 00 00 48 8b 0c 24 40 0f b6 d6 40 0f b6 f7 31 ff
RSP: 0018:ffff8880ae607858 EFLAGS: 00000206
RAX: 0000000000000503 RBX: 0000000000000004 RCX: ffffffff862fa8e1
RDX: 0000000000000003 RSI: 0000000000000003 RDI: 0000000000000005
RBP: ffffffff883545a0 R08: ffff888019c60700 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000005
R13: ffff8880ae607950 R14: 0000000000000003 R15: ffff888023afa980
FS:  00007f3e6837a700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f97a9548400 CR3: 00000000494c8000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __sanitizer_cov_trace_switch+0x45/0x70 kernel/kcov.c:224
 fib6_walk_continue+0x111/0x8b0 net/ipv6/ip6_fib.c:1880
 fib6_walk+0x91/0xf0 net/ipv6/ip6_fib.c:1966
 fib6_clean_tree+0xc2/0x100 net/ipv6/ip6_fib.c:2043
 __fib6_clean_all+0x10d/0x290 net/ipv6/ip6_fib.c:2059
 fib6_clean_all net/ipv6/ip6_fib.c:2070 [inline]
 fib6_run_gc+0x110/0x2d0 net/ipv6/ip6_fib.c:2126
 ip6_dst_gc+0x1fd/0x380 net/ipv6/route.c:2773
 dst_alloc+0x147/0x190 net/core/dst.c:101
 ip6_dst_alloc+0x2e/0x90 net/ipv6/route.c:357
 icmp6_dst_alloc+0x69/0x410 net/ipv6/route.c:2729
 mld_sendpack+0x5e9/0xde0 net/ipv6/mcast.c:1673
 mld_send_cr net/ipv6/mcast.c:1980 [inline]
 mld_ifc_timer_expire+0x42e/0x870 net/ipv6/mcast.c:2479
 call_timer_fn+0x177/0x700 kernel/time/timer.c:1326
 expire_timers kernel/time/timer.c:1363 [inline]
 __run_timers kernel/time/timer.c:1684 [inline]
 __run_timers kernel/time/timer.c:1652 [inline]
 run_timer_softirq+0x5d0/0x1540 kernel/time/timer.c:1697
 __do_softirq+0x26c/0x93c kernel/softirq.c:292
 do_softirq_own_stack+0x2a/0x40 arch/x86/entry/entry_64.S:1091
 </IRQ>
 do_softirq.part.0+0x10f/0x160 kernel/softirq.c:336
 do_softirq kernel/softirq.c:328 [inline]
 __local_bh_enable_ip+0x20e/0x270 kernel/softirq.c:189
 spin_unlock_bh include/linux/spinlock.h:374 [inline]
 __fib6_clean_all+0x115/0x290 net/ipv6/ip6_fib.c:2061
 rt6_sync_up+0xfa/0x150 net/ipv6/route.c:4022
 addrconf_notify+0x19da/0x2160 net/ipv6/addrconf.c:3522
 notifier_call_chain+0xc0/0x230 kernel/notifier.c:93
 netdev_state_change net/core/dev.c:1353 [inline]
 netdev_state_change+0x10d/0x140 net/core/dev.c:1346
 do_setlink+0x2b65/0x3510 net/core/rtnetlink.c:2661
 rtnl_group_changelink net/core/rtnetlink.c:2925 [inline]
 rtnl_newlink+0xc7e/0x1440 net/core/rtnetlink.c:3083
 rtnetlink_rcv_msg+0x453/0xaf0 net/core/rtnetlink.c:4777
 netlink_rcv_skb+0x160/0x410 net/netlink/af_netlink.c:2455
 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
 netlink_unicast+0x4d7/0x6a0 net/netlink/af_netlink.c:1344
 netlink_sendmsg+0x80b/0xcd0 net/netlink/af_netlink.c:1909
 sock_sendmsg_nosec net/socket.c:622 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:632
 ___sys_sendmsg+0x803/0x920 net/socket.c:2115
 __sys_sendmsg+0xec/0x1b0 net/socket.c:2153
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45c829
Code: 0d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f3e68379c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000500a40 RCX: 000000000045c829
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 000000000078c040 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000009fe R14: 00000000004ccb57 R15: 00007f3e6837a6d4

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/24 19:49 linux-4.19.y 7edd66cf6167 03d97a1b .config console log report ci2-linux-4-19
2020/03/11 09:14 linux-4.19.y 7472c4028e23 35f53e45 .config console log report ci2-linux-4-19
2020/03/11 03:59 linux-4.19.y 7472c4028e23 35f53e45 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.