syzbot


INFO: task hung in __rtnl_newlink (3)

Status: auto-obsoleted due to no activity on 2024/08/30 18:51
Subsystems: net
[Documentation on labels]
First crash: 257d, last: 257d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in __rtnl_newlink net 1 1718d 1718d 0/28 auto-closed as invalid on 2020/08/30 14:57
upstream INFO: task hung in __rtnl_newlink (2) net 1 610d 610d 0/28 auto-obsoleted due to no activity on 2023/08/13 10:07

Sample crash report:
INFO: task syz-executor.0:4283 blocked for more than 430 seconds.
      Not tainted 6.10.0-rc1-syzkaller-g7932b172ac7e #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:0     pid:4283  tgid:4283  ppid:1      flags:0x00000004
Call Trace:
[<ffffffff85c9042e>] context_switch kernel/sched/core.c:5408 [inline]
[<ffffffff85c9042e>] __schedule+0xd5c/0x3486 kernel/sched/core.c:6745
[<ffffffff85c92c1c>] __schedule_loop kernel/sched/core.c:6822 [inline]
[<ffffffff85c92c1c>] schedule+0xc4/0x324 kernel/sched/core.c:6837
[<ffffffff85c93a6c>] schedule_preempt_disabled+0x16/0x28 kernel/sched/core.c:6894
[<ffffffff85c96dc2>] __mutex_lock_common kernel/locking/mutex.c:684 [inline]
[<ffffffff85c96dc2>] __mutex_lock+0x86a/0x1022 kernel/locking/mutex.c:752
[<ffffffff85c9758e>] mutex_lock_nested+0x14/0x1c kernel/locking/mutex.c:804
[<ffffffff84a6aa60>] rtnl_lock net/core/rtnetlink.c:79 [inline]
[<ffffffff84a6aa60>] __rtnl_newlink+0x7e0/0x1770 net/core/rtnetlink.c:3720
[<ffffffff84a6ba5c>] rtnl_newlink+0x6c/0xa2 net/core/rtnetlink.c:3743
[<ffffffff84a5a5e8>] rtnetlink_rcv_msg+0x428/0xd78 net/core/rtnetlink.c:6595
[<ffffffff84d8b154>] netlink_rcv_skb+0x216/0x3dc net/netlink/af_netlink.c:2564
[<ffffffff84a4c63a>] rtnetlink_rcv+0x26/0x30 net/core/rtnetlink.c:6613
[<ffffffff84d893ee>] netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline]
[<ffffffff84d893ee>] netlink_unicast+0x508/0x862 net/netlink/af_netlink.c:1361
[<ffffffff84d89fac>] netlink_sendmsg+0x864/0xdc2 net/netlink/af_netlink.c:1905
[<ffffffff8494f4d4>] sock_sendmsg_nosec net/socket.c:730 [inline]
[<ffffffff8494f4d4>] __sock_sendmsg+0xcc/0x162 net/socket.c:745
[<ffffffff84955c8c>] __sys_sendto+0x230/0x320 net/socket.c:2192
[<ffffffff84955e3c>] __do_sys_sendto net/socket.c:2204 [inline]
[<ffffffff84955e3c>] __se_sys_sendto net/socket.c:2200 [inline]
[<ffffffff84955e3c>] __riscv_sys_sendto+0xc0/0x158 net/socket.c:2200
[<ffffffff8000e200>] syscall_handler+0x94/0x118 arch/riscv/include/asm/syscall.h:90
[<ffffffff85c85e24>] do_trap_ecall_u+0x14c/0x214 arch/riscv/kernel/traps.c:330
[<ffffffff85ca872c>] ret_from_exception+0x0/0x64 arch/riscv/kernel/entry.S:112

Showing all locks held in the system:
3 locks held by kworker/u8:0/11:
 #0: ff60000016c7a948 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x824/0x1d5c kernel/workqueue.c:3206
 #1: ff20000000063c90 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work+0x850/0x1d5c kernel/workqueue.c:3206
 #2: ffffffff88e45328 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x22/0x2a net/core/rtnetlink.c:79
1 lock held by khungtaskd/36:
 #0: ffffffff87bc3f00 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x68/0x2d6 kernel/locking/lockdep.c:6610
1 lock held by klogd/2852:
2 locks held by dhcpcd/2897:
 #0: ff600000125f3678 (nlk_cb_mutex-ROUTE){+.+.}-{3:3}, at: __netlink_dump_start+0x140/0x870 net/netlink/af_netlink.c:2418
 #1: ffffffff88e45328 (rtnl_mutex){+.+.}-{3:3}, at: netlink_dump+0x562/0x1238 net/netlink/af_netlink.c:2336
2 locks held by getty/3005:
 #0: ff600000170c10a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3a/0x46 drivers/tty/tty_ldsem.c:340
 #1: ff20000000e032f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xd6a/0x1288 drivers/tty/n_tty.c:2201
2 locks held by sshd/3035:
1 lock held by syz-executor.0/4283:
 #0: ffffffff88e45328 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline]
 #0: ffffffff88e45328 (rtnl_mutex){+.+.}-{3:3}, at: __rtnl_newlink+0x7e0/0x1770 net/core/rtnetlink.c:3720
2 locks held by syz-executor.1/4351:
1 lock held by syz-executor.1/4359:
 #0: ffffffff88e45328 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline]
 #0: ffffffff88e45328 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3e2/0xd78 net/core/rtnetlink.c:6592
1 lock held by syz-executor.0/4363:
 #0: ffffffff88e45328 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline]
 #0: ffffffff88e45328 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3e2/0xd78 net/core/rtnetlink.c:6592
1 lock held by syz-executor.1/4369:
 #0: ffffffff88e45328 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline]
 #0: ffffffff88e45328 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3e2/0xd78 net/core/rtnetlink.c:6592
1 lock held by syz-executor.0/4373:
 #0: ffffffff88e45328 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline]
 #0: ffffffff88e45328 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3e2/0xd78 net/core/rtnetlink.c:6592

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


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/01 18:45 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 7932b172ac7e 3113787f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 INFO: task hung in __rtnl_newlink
* Struck through repros no longer work on HEAD.