syzbot


INFO: task hung in nl80211_pre_doit (2)

Status: upstream: reported on 2022/12/31 06:52
Reported-by: syzbot+1db6000ef154a5709d70@syzkaller.appspotmail.com
First crash: 710d, last: 710d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in rtnetlink_rcv_msg net C inconclusive inconclusive 1970 154d 2117d 26/28 fixed on 2024/07/09 19:14
upstream INFO: task hung in nl80211_pre_doit (3) wireless syz 23 5d12h 26d 0/28 upstream: reported syz repro on 2024/11/14 08:18
upstream INFO: task hung in nl80211_pre_doit wireless 5 1403d 1481d 0/28 auto-closed as invalid on 2021/05/17 09:21
linux-4.19 INFO: task hung in nl80211_pre_doit 1 1062d 1062d 0/1 auto-closed as invalid on 2022/05/13 08:55
upstream INFO: task hung in nl80211_pre_doit (2) wireless 18 1148d 1188d 0/28 auto-closed as invalid on 2022/01/17 00:54
linux-5.15 INFO: task hung in nl80211_pre_doit 9 159d 199d 0/3 auto-obsoleted due to no activity on 2024/10/11 11:32
linux-5.15 INFO: task hung in nl80211_pre_doit (2) 2 28d 46d 0/3 upstream: reported on 2024/10/25 03:46
linux-6.1 INFO: task hung in nl80211_pre_doit 7 172d 200d 0/3 auto-obsoleted due to no activity on 2024/09/28 20:22

Sample crash report:
Bluetooth: hci9: command 0x040f tx timeout
Bluetooth: hci8: command 0x0419 tx timeout
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
Bluetooth: hci9: command 0x0419 tx timeout
INFO: task syz-executor.4:15910 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  D27968 15910   9480 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
 nl80211_pre_doit+0x34f/0x620 net/wireless/nl80211.c:13089
 genl_family_rcv_msg+0x604/0xc40 net/netlink/genetlink.c:597
 genl_rcv_msg+0xbf/0x160 net/netlink/genetlink.c:627
 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2463
 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
 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:0x7fab89df00a9
Code: Bad RIP value.
RSP: 002b:00007fab88362168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fab89f0ff80 RCX: 00007fab89df00a9
RDX: 0000000000000000 RSI: 0000000020001340 RDI: 0000000000000003
RBP: 00007fab89e4bae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc18905e1f R14: 00007fab88362300 R15: 0000000000022000

Showing all locks held in the system:
1 lock held by khungtaskd/1571:
 #0: 00000000b726e9b0 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
1 lock held by in:imklog/7811:
 #0: 00000000cfa0b8cf (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
3 locks held by kworker/u4:1/12940:
3 locks held by kworker/0:1/28833:
 #0: 000000006e1afc19 ((wq_completion)"events"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124
 #1: 00000000470a33c8 ((linkwatch_work).work){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128
 #2: 00000000ff42b0d2 (rtnl_mutex){+.+.}, at: linkwatch_event+0xb/0x60 net/core/link_watch.c:236
3 locks held by kworker/0:2/9011:
 #0: 000000006e1afc19 ((wq_completion)"events"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124
 #1: 0000000058e94169 (deferred_process_work){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128
 #2: 00000000ff42b0d2 (rtnl_mutex){+.+.}, at: switchdev_deferred_process_work+0xa/0x20 net/switchdev/switchdev.c:150
3 locks held by kworker/0:3/32433:
 #0: 000000006dcb36b8 ((wq_completion)"%s"("ipv6_addrconf")){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124
 #1: 00000000b44c44c2 ((addr_chk_work).work){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128
 #2: 00000000ff42b0d2 (rtnl_mutex){+.+.}, at: addrconf_verify_work+0xa/0x20 net/ipv6/addrconf.c:4476
1 lock held by syz-executor.0/15896:
3 locks held by syz-executor.4/15910:
 #0: 00000000f0679ee6 (cb_lock){++++}, at: genl_rcv+0x15/0x40 net/netlink/genetlink.c:637
 #1: 00000000608e4bd1 (genl_mutex){+.+.}, at: genl_lock net/netlink/genetlink.c:33 [inline]
 #1: 00000000608e4bd1 (genl_mutex){+.+.}, at: genl_rcv_msg+0x12f/0x160 net/netlink/genetlink.c:625
 #2: 00000000ff42b0d2 (rtnl_mutex){+.+.}, at: nl80211_pre_doit+0x34f/0x620 net/wireless/nl80211.c:13089
2 locks held by syz-executor.5/15938:
 #0: 000000006e2906dc (&sb->s_type->i_mutex_key#13){+.+.}, at: inode_lock include/linux/fs.h:748 [inline]
 #0: 000000006e2906dc (&sb->s_type->i_mutex_key#13){+.+.}, at: __sock_release+0x86/0x2a0 net/socket.c:598
 #1: 00000000ff42b0d2 (rtnl_mutex){+.+.}, at: ip6mr_sk_done+0xe0/0x370 net/ipv6/ip6mr.c:1564
1 lock held by syz-executor.5/15941:
 #0: 00000000ff42b0d2 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline]
 #0: 00000000ff42b0d2 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x3fe/0xb80 net/core/rtnetlink.c:4779
1 lock held by syz-executor.0/15966:
 #0: 00000000ff42b0d2 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline]
 #0: 00000000ff42b0d2 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x3fe/0xb80 net/core/rtnetlink.c:4779
1 lock held by syz-executor.4/15979:
 #0: 00000000ff42b0d2 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline]
 #0: 00000000ff42b0d2 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x3fe/0xb80 net/core/rtnetlink.c:4779
1 lock held by syz-executor.0/15991:
 #0: 00000000ff42b0d2 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline]
 #0: 00000000ff42b0d2 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x3fe/0xb80 net/core/rtnetlink.c:4779
1 lock held by syz-executor.4/16002:
 #0: 00000000ff42b0d2 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline]
 #0: 00000000ff42b0d2 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x3fe/0xb80 net/core/rtnetlink.c:4779

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

NMI backtrace for cpu 1
CPU: 1 PID: 1571 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/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: 4695 Comm: systemd-journal Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:hlock_class kernel/locking/lockdep.c:152 [inline]
RIP: 0010:mark_lock+0x7f/0x1160 kernel/locking/lockdep.c:3106
Code: 00 00 00 fc ff df 4c 89 f1 48 c1 e9 03 0f b6 14 11 84 d2 74 09 80 fa 03 0f 8e d2 07 00 00 25 ff 1f 00 00 48 69 d8 50 01 00 00 <48> 81 eb 50 01 00 00 48 81 c3 80 f5 d5 8c 48 8d 7b 30 48 b8 00 00
RSP: 0018:ffff8880a089f8a0 EFLAGS: 00000006
RAX: 0000000000000067 RBX: 0000000000008730 RCX: 1ffff110141129e2
RDX: 0000000000000000 RSI: ffff8880a0894ef0 RDI: ffff8880a0894640
RBP: ffff8880a0894ef0 R08: 0000000000000067 R09: 0000000000000001
R10: ffff8880a0894ef0 R11: 0000000000000000 R12: 0000000000000100
R13: ffff8880a0894640 R14: ffff8880a0894f10 R15: 0000000000000008
FS:  00007fa3cc2128c0(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa3c6e07028 CR3: 00000000a08fd000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __lock_acquire+0x6de/0x3ff0 kernel/locking/lockdep.c:3377
 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908
 seqcount_lockdep_reader_access include/linux/seqlock.h:81 [inline]
 read_seqcount_begin include/linux/seqlock.h:164 [inline]
 read_seqbegin include/linux/seqlock.h:440 [inline]
 path_init+0x626/0x19d0 fs/namei.c:2206
 path_parentat+0x22/0x140 fs/namei.c:2366
 filename_parentat+0x198/0x590 fs/namei.c:2389
 filename_create+0x9e/0x490 fs/namei.c:3621
 user_path_create fs/namei.c:3696 [inline]
 do_mkdirat+0xa0/0x2d0 fs/namei.c:3834
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fa3cb4cd687
Code: 00 b8 ff ff ff ff c3 0f 1f 40 00 48 8b 05 09 d8 2b 00 64 c7 00 5f 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 b8 53 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d e1 d7 2b 00 f7 d8 64 89 01 48
RSP: 002b:00007ffcf91128b8 EFLAGS: 00000293 ORIG_RAX: 0000000000000053
RAX: ffffffffffffffda RBX: 00007ffcf91157d0 RCX: 00007fa3cb4cd687
RDX: 00007fa3cbf3ea00 RSI: 00000000000001ed RDI: 0000559e215148a0
RBP: 00007ffcf91128f0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000069 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007ffcf91157d0 R15: 00007ffcf9112de0

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