syzbot


INFO: task hung in nsim_fib_destroy

Status: auto-closed as invalid on 2022/01/09 18:53
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 484d, last: 484d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in nsim_fib_destroy (3) 1 174d 174d 0/24 auto-obsoleted due to no activity on 2022/11/15 10:21
upstream INFO: task hung in nsim_fib_destroy (2) 1 394d 394d 0/24 closed as invalid on 2022/02/08 09:50

Sample crash report:
INFO: task syz-executor.5:29326 blocked for more than 143 seconds.
      Not tainted 5.15.0-rc4-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:25008 pid:29326 ppid:  6837 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_timeout+0x1db/0x2a0 kernel/time/timer.c:1857
 do_wait_for_common kernel/sched/completion.c:85 [inline]
 __wait_for_common kernel/sched/completion.c:106 [inline]
 wait_for_common kernel/sched/completion.c:117 [inline]
 wait_for_completion+0x176/0x280 kernel/sched/completion.c:138
 __flush_work+0x56e/0xb10 kernel/workqueue.c:3083
 nsim_fib_destroy+0x8c/0x1a0 drivers/net/netdevsim/fib.c:1618
 nsim_dev_reload_destroy+0x20e/0x300 drivers/net/netdevsim/dev.c:1558
 nsim_dev_reload_down+0xee/0x190 drivers/net/netdevsim/dev.c:883
 devlink_reload+0x58b/0x720 net/core/devlink.c:3970
 devlink_nl_cmd_reload+0x7de/0x1230 net/core/devlink.c:4091
 genl_family_rcv_msg_doit+0x228/0x320 net/netlink/genetlink.c:731
 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:2491
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:803
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0x86d/0xda0 net/netlink/af_netlink.c:1916
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:724
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2409
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2463
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2492
 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:0x7f70fc4f58d9
RSP: 002b:00007f70f99e8188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f70fc5fa260 RCX: 00007f70fc4f58d9
RDX: 0000000000000000 RSI: 0000000020000600 RDI: 0000000000000007
RBP: 00007f70fc54fcb4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffcdb6f127f R14: 00007f70f99e8300 R15: 0000000000022000

Showing all locks held in the system:
1 lock held by khungtaskd/26:
 #0: ffffffff8b980220 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6446
1 lock held by in:imklog/6469:
 #0: ffff88807e11dc70 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:990
3 locks held by kworker/0:5/2854:
 #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
 #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1198 [inline]
 #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:634 [inline]
 #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:661 [inline]
 #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x8a3/0x16b0 kernel/workqueue.c:2268
 #1: ffffc90004ef7db0 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x8d7/0x16b0 kernel/workqueue.c:2272
 #2: ffff8881bfa93240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x1b9/0x2490 drivers/net/netdevsim/fib.c:1474
2 locks held by kworker/u4:11/29156:
4 locks held by syz-executor.5/29326:
 #0: ffffffff8d17a690 (cb_lock){++++}-{3:3}, at: genl_rcv+0x15/0x40 net/netlink/genetlink.c:802
 #1: ffffffff8d17a748 (genl_mutex){+.+.}-{3:3}, at: genl_lock net/netlink/genetlink.c:33 [inline]
 #1: ffffffff8d17a748 (genl_mutex){+.+.}-{3:3}, at: genl_rcv_msg+0x3e0/0x580 net/netlink/genetlink.c:790
 #2: ffffffff8d112cc8 (devlink_mutex){+.+.}-{3:3}, at: devlink_nl_pre_doit+0x2b/0xa00 net/core/devlink.c:502
 #3: ffff8880777e8658 (&nsim_bus_dev->nsim_bus_reload_lock){+.+.}-{3:3}, at: nsim_dev_reload_down+0x5c/0x190 drivers/net/netdevsim/dev.c:870

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

NMI backtrace for cpu 0
CPU: 0 PID: 26 Comm: khungtaskd Not tainted 5.15.0-rc4-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 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 29145 Comm: kworker/u4:6 Not tainted 5.15.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: phy12 ieee80211_iface_work
RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x13/0x60 kernel/kcov.c:196
Code: 00 4d 8b 03 48 0f bd ca 49 8b 45 00 48 63 c9 e9 64 ff ff ff 0f 1f 00 65 8b 05 f9 e3 8b 7e 89 c1 48 8b 34 24 81 e1 00 01 00 00 <65> 48 8b 14 25 40 f0 01 00 a9 00 01 ff 00 74 0e 85 c9 74 35 8b 82
RSP: 0018:ffffc900197e7258 EFLAGS: 00000246
RAX: 0000000080000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff889323d5 RDI: 0000000000000003
RBP: 0000000000000006 R08: ffffffff8aac4f80 R09: ffffffff889323c3
R10: 0000000000000020 R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff8881c1603475 R15: ffff8881c1603474
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f71be88b000 CR3: 000000006fad1000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 _ieee802_11_parse_elems_crc+0x1f5/0x20f0 net/mac80211/util.c:1063
 ieee802_11_parse_elems_crc+0x89e/0xfe0 net/mac80211/util.c:1490
 ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2207 [inline]
 ieee80211_rx_mgmt_probe_beacon+0x187/0x17c0 net/mac80211/ibss.c:1605
 ieee80211_ibss_rx_queued_mgmt+0xd37/0x1610 net/mac80211/ibss.c:1635
 ieee80211_iface_process_skb net/mac80211/iface.c:1439 [inline]
 ieee80211_iface_work+0xa65/0xd00 net/mac80211/iface.c:1493
 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:	00 4d 8b             	add    %cl,-0x75(%rbp)
   3:	03 48 0f             	add    0xf(%rax),%ecx
   6:	bd ca 49 8b 45       	mov    $0x458b49ca,%ebp
   b:	00 48 63             	add    %cl,0x63(%rax)
   e:	c9                   	leaveq
   f:	e9 64 ff ff ff       	jmpq   0xffffff78
  14:	0f 1f 00             	nopl   (%rax)
  17:	65 8b 05 f9 e3 8b 7e 	mov    %gs:0x7e8be3f9(%rip),%eax        # 0x7e8be417
  1e:	89 c1                	mov    %eax,%ecx
  20:	48 8b 34 24          	mov    (%rsp),%rsi
  24:	81 e1 00 01 00 00    	and    $0x100,%ecx
* 2a:	65 48 8b 14 25 40 f0 	mov    %gs:0x1f040,%rdx <-- trapping instruction
  31:	01 00
  33:	a9 00 01 ff 00       	test   $0xff0100,%eax
  38:	74 0e                	je     0x48
  3a:	85 c9                	test   %ecx,%ecx
  3c:	74 35                	je     0x73
  3e:	8b                   	.byte 0x8b
  3f:	82                   	.byte 0x82

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-net-kasan-gce 2021/10/11 18:46 net-next ce8bd03c47fc 838e7e2c .config console log report info INFO: task hung in nsim_fib_destroy
* Struck through repros no longer work on HEAD.