syzbot


INFO: task hung in netlink_unicast

Status: auto-obsoleted due to no activity on 2023/01/30 17:00
Reported-by: syzbot+f7ad2f06a9a60ccf34ff@syzkaller.appspotmail.com
First crash: 793d, last: 793d

Sample crash report:
 wiphy_register+0x1664/0x2130 net/wireless/core.c:832
 ieee80211_register_hw+0x13be/0x3550 net/mac80211/main.c:1106
 mac80211_hwsim_new_radio+0x1d3f/0x3c60 drivers/net/wireless/mac80211_hwsim.c:2896
INFO: task kworker/u4:7:9596 blocked for more than 140 seconds.
      Not tainted 4.19.211-syzkaller #0
 hwsim_new_radio_nl+0x5c3/0x850 drivers/net/wireless/mac80211_hwsim.c:3374
 genl_family_rcv_msg+0x642/0xc40 net/netlink/genetlink.c:602
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
 genl_rcv_msg+0xbf/0x160 net/netlink/genetlink.c:627
kworker/u4:7    D25496  9596      2 0x80000000
 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2463
Workqueue: netns cleanup_net
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:638
Call Trace:
 netlink_unicast_kernel net/netlink/af_netlink.c:1325 [inline]
 netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1351
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 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
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 schedule_timeout+0x92d/0xfe0 kernel/time/timer.c:1794
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fd61346c5a9
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:00007fd611d7d168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fd61358e1f0 RCX: 00007fd61346c5a9
RDX: 0000000000000000 RSI: 0000000020000400 RDI: 0000000000000006
RBP: 00007fd6134c7580 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffef05c37f R14: 00007fd611d7d300 R15: 0000000000022000
 do_wait_for_common kernel/sched/completion.c:83 [inline]
 __wait_for_common kernel/sched/completion.c:104 [inline]
 wait_for_common+0x29c/0x470 kernel/sched/completion.c:115
 flush_workqueue+0x40b/0x13e0 kernel/workqueue.c:2713
FAT-fs (loop2): bogus number of reserved sectors
FAT-fs (loop2): Can't find a valid FAT filesystem
 flush_scheduled_work include/linux/workqueue.h:599 [inline]
 tipc_exit_net+0x38/0x60 net/tipc/core.c:100
 ops_exit_list+0xa5/0x150 net/core/net_namespace.c:153
 cleanup_net+0x3b4/0x8b0 net/core/net_namespace.c:554
 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
INFO: task syz-executor.5:9295 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.5  D28416  9295  21119 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_timeout+0x92d/0xfe0 kernel/time/timer.c:1794
 do_wait_for_common kernel/sched/completion.c:83 [inline]
 __wait_for_common kernel/sched/completion.c:104 [inline]
 wait_for_common+0x29c/0x470 kernel/sched/completion.c:115
 __flush_work+0x4bb/0x8b0 kernel/workqueue.c:2926
 __cancel_work_timer+0x412/0x590 kernel/workqueue.c:3013
 p9_conn_destroy net/9p/trans_fd.c:904 [inline]
 p9_fd_close+0x305/0x520 net/9p/trans_fd.c:934
 p9_client_create+0x901/0x12e0 net/9p/client.c:1084
 v9fs_session_init+0x1dd/0x1770 fs/9p/v9fs.c:421
 v9fs_mount+0x73/0x910 fs/9p/vfs_super.c:135
 mount_fs+0xa3/0x310 fs/super.c:1261
 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
 vfs_kern_mount fs/namespace.c:951 [inline]
 do_new_mount fs/namespace.c:2492 [inline]
 do_mount+0x115c/0x2f50 fs/namespace.c:2822
 ksys_mount+0xcf/0x130 fs/namespace.c:3038
 __do_sys_mount fs/namespace.c:3052 [inline]
 __se_sys_mount fs/namespace.c:3049 [inline]
 __x64_sys_mount+0xba/0x150 fs/namespace.c:3049
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f68bc30c5a9
Code: Bad RIP value.
RSP: 002b:00007f68bac80168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f68bc42df80 RCX: 00007f68bc30c5a9
RDX: 0000000020000100 RSI: 0000000020000080 RDI: 0000000000000000
RBP: 00007f68bc367580 R08: 0000000020000180 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffcc189677f R14: 00007f68bac80300 R15: 0000000000022000

Showing all locks held in the system:
sysfs: cannot create duplicate filename '/class/ieee80211/©,í…×;qO!'
CPU: 0 PID: 17493 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0
1 lock held by khungtaskd/1565:
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
 #0: 00000000df9e761b (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 sysfs_warn_dup.cold+0x1c/0x29 fs/sysfs/dir.c:30
 sysfs_do_create_link_sd+0x116/0x130 fs/sysfs/symlink.c:50
1 lock held by in:imklog/7825:
 sysfs_do_create_link fs/sysfs/symlink.c:79 [inline]
 sysfs_create_link+0x5f/0xc0 fs/sysfs/symlink.c:91
3 locks held by kworker/u4:7/9596:
 device_add_class_symlinks drivers/base/core.c:1934 [inline]
 device_add+0x7d1/0x16d0 drivers/base/core.c:2136
 wiphy_register+0x1664/0x2130 net/wireless/core.c:832
 #0: 00000000d1adb82c ((wq_completion)"%s""netns"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124
 #1: 000000004d2fbfe9 (net_cleanup_work){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128
 #2: 000000002d5b4416 (pernet_ops_rwsem){++++}, at: cleanup_net+0xa8/0x8b0 net/core/net_namespace.c:521
2 locks held by kworker/1:8/29148:
 #0: 00000000306c3d83 ((wq_completion)"events"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124
 ieee80211_register_hw+0x13be/0x3550 net/mac80211/main.c:1106
 #1: 0000000065b11384 ((work_completion)(&m->wq)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128
 mac80211_hwsim_new_radio+0x1d3f/0x3c60 drivers/net/wireless/mac80211_hwsim.c:2896
2 locks held by syz-executor.3/17375:
 hwsim_new_radio_nl+0x5c3/0x850 drivers/net/wireless/mac80211_hwsim.c:3374
 #0: 000000002d5b4416 (pernet_ops_rwsem){++++}, at: copy_net_ns+0x1d8/0x340 net/core/net_namespace.c:435
 #1: 000000004b7d6c1c (rtnl_mutex){+.+.}, at: netdev_run_todo+0x719/0xab0 net/core/dev.c:9005
2 locks held by syz-executor.0/17381:
 genl_family_rcv_msg+0x642/0xc40 net/netlink/genetlink.c:602
 #0: 000000002d5b4416 (pernet_ops_rwsem){++++}, at: copy_net_ns+0x1d8/0x340 net/core/net_namespace.c:435
 #1: 00000000e893ff54 (rcu_preempt_state.barrier_mutex){+.+.}, at: _rcu_barrier+0x59/0x3e0 kernel/rcu/tree.c:3430
 genl_rcv_msg+0xbf/0x160 net/netlink/genetlink.c:627
1 lock held by syz-executor.2/17489:
 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2463
 #0: 000000004b7d6c1c (rtnl_mutex){+.+.}, at: dev_ioctl+0x26b/0xc50 net/core/dev_ioctl.c:512
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:638
 netlink_unicast_kernel net/netlink/af_netlink.c:1325 [inline]
 netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1351
5 locks held by syz-executor.2/17493:
1 lock held by syz-executor.4/17505:

 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
NMI backtrace for cpu 1
 ___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:0x7fd61346c5a9
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:00007fd611dbf168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fd61358e050 RCX: 00007fd61346c5a9
RDX: 0000000000000000 RSI: 0000000020000400 RDI: 0000000000000006
RBP: 00007fd6134c7580 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffef05c37f R14: 00007fd611dbf300 R15: 0000000000022000
CPU: 1 PID: 1565 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
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 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 17505 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:lock_is_held_type+0x142/0x210 kernel/locking/lockdep.c:3947
Code: bd 84 08 00 00 41 89 c4 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 04 <84> d2 75 6f 48 c7 c0 88 82 f1 89 48 ba 00 00 00 00 00 fc ff df c7
RSP: 0018:ffff88803c5476f0 EFLAGS: 00000002
RAX: 0000000000000007 RBX: 0000000000000286 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffff888099b8ac84
RBP: ffff888099b8a400 R08: ffffffff8700475a R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88809914ec68 R14: ffff88803c547918 R15: ffffffff8700475a
FS:  00007f88d35d6700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f39359d1010 CR3: 00000000a45a6000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lock_is_held include/linux/lockdep.h:344 [inline]
 ___might_sleep+0x1ea/0x2b0 kernel/sched/core.c:6157
 __mutex_lock_common kernel/locking/mutex.c:920 [inline]
 __mutex_lock+0xab/0x1190 kernel/locking/mutex.c:1078
 unix_dgram_recvmsg+0x23a/0xdb0 net/unix/af_unix.c:2142
 ___sys_recvmsg+0x255/0x570 net/socket.c:2389
 __sys_recvmmsg+0x254/0x6d0 net/socket.c:2501
 do_sys_recvmmsg+0x172/0x190 net/socket.c:2577
 __do_sys_recvmmsg net/socket.c:2595 [inline]
 __se_sys_recvmmsg net/socket.c:2591 [inline]
 __x64_sys_recvmmsg+0xba/0x150 net/socket.c:2591
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f88d4ca45a9
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:00007f88d35d6168 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007f88d4dc6120 RCX: 00007f88d4ca45a9
RDX: 0000000000010106 RSI: 00000000200000c0 RDI: 0000000000000004
RBP: 00007f88d4cff580 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc839cabbf R14: 00007f88d35d6300 R15: 0000000000022000

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/02 17:00 linux-4.19.y 3f8a27f9e27b feb56351 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in netlink_unicast
* Struck through repros no longer work on HEAD.