syzbot


INFO: rcu detected stall in devlink_nl_cmd_port_get_dumpit

Status: fixed on 2023/06/08 14:41
Subsystems: net
[Documentation on labels]
Fix commit: b20b8aec6ffc devlink: Fix netdev notifier chain corruption
First crash: 603d, last: 586d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: rcu detected stall in devlink_nl_cmd_port_get_dumpit origin:lts-only syz inconclusive 687 3h37m 561d 0/3 upstream: reported syz repro on 2023/03/26 10:35

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P6219
	(detected by 0, t=10502 jiffies, g=10029, q=1146 ncpus=2)
task:syz-executor.1  state:R  running task     stack:0     pid:6219  ppid:1      flags:0x00000009
Call trace:
 dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158
 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165
 sched_show_task+0x420/0x558 kernel/sched/core.c:9027
 rcu_print_detail_task_stall_rnp kernel/rcu/tree_stall.h:255 [inline]
 print_other_cpu_stall kernel/rcu/tree_stall.h:599 [inline]
 check_cpu_stall kernel/rcu/tree_stall.h:761 [inline]
 rcu_pending kernel/rcu/tree.c:3858 [inline]
 rcu_sched_clock_irq+0x3ee8/0x4b10 kernel/rcu/tree.c:2343
 update_process_times+0x15c/0x1f4 kernel/time/timer.c:2071
 tick_sched_handle kernel/time/tick-sched.c:243 [inline]
 tick_sched_timer+0x340/0x4f8 kernel/time/tick-sched.c:1480
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x558/0x10a8 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x2c0/0xb64 kernel/time/hrtimer.c:1811
 timer_handler drivers/clocksource/arm_arch_timer.c:656 [inline]
 arch_timer_handler_virt+0x74/0x88 drivers/clocksource/arm_arch_timer.c:667
 handle_percpu_devid_irq+0x174/0x354 kernel/irq/chip.c:930
 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline]
 handle_irq_desc kernel/irq/irqdesc.c:651 [inline]
 generic_handle_domain_irq+0x7c/0xc4 kernel/irq/irqdesc.c:707
 __gic_handle_irq drivers/irqchip/irq-gic-v3.c:687 [inline]
 __gic_handle_irq_from_irqson drivers/irqchip/irq-gic-v3.c:738 [inline]
 gic_handle_irq+0x70/0x1e4 drivers/irqchip/irq-gic-v3.c:782
 call_on_irq_stack+0x24/0x4c arch/arm64/kernel/entry.S:899
 do_interrupt_handler+0xd4/0x138 arch/arm64/kernel/entry-common.c:274
 __el1_irq arch/arm64/kernel/entry-common.c:471 [inline]
 el1_interrupt+0x34/0x68 arch/arm64/kernel/entry-common.c:486
 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:491
 el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:587
 check_kcov_mode kernel/kcov.c:173 [inline]
 __sanitizer_cov_trace_pc+0x54/0x8c kernel/kcov.c:207
 xa_find+0x218/0x388 lib/xarray.c:2022
 devlinks_xa_find_get+0xdc/0x2a0 net/core/devlink.c:306
 devlinks_xa_find_get_first net/core/devlink.c:334 [inline]
 devlink_nl_cmd_port_get_dumpit+0x16c/0x5c8 net/core/devlink.c:1699
 netlink_dump+0x474/0xa84 net/netlink/af_netlink.c:2296
 __netlink_dump_start+0x47c/0x6b4 net/netlink/af_netlink.c:2401
 genl_family_rcv_msg_dumpit net/netlink/genetlink.c:929 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:1045 [inline]
 genl_rcv_msg+0x7b0/0xc1c net/netlink/genetlink.c:1065
 netlink_rcv_skb+0x214/0x3c4 net/netlink/af_netlink.c:2574
 genl_rcv+0x38/0x50 net/netlink/genetlink.c:1076
 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline]
 netlink_unicast+0x660/0x8d4 net/netlink/af_netlink.c:1365
 netlink_sendmsg+0x800/0xae0 net/netlink/af_netlink.c:1942
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 __sys_sendto+0x3b4/0x504 net/socket.c:2120
 __do_sys_sendto net/socket.c:2132 [inline]
 __se_sys_sendto net/socket.c:2128 [inline]
 __arm64_sys_sendto+0xd8/0xf8 net/socket.c:2128
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:193
 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/25 19:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d ee50e71c .config console log report syz [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: rcu detected stall in devlink_nl_cmd_port_get_dumpit
2023/02/17 18:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 3e7039f4 .config console log report syz [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: rcu detected stall in devlink_nl_cmd_port_get_dumpit
2023/02/16 07:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 6be0f1f5 .config console log report syz [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: rcu detected stall in devlink_nl_cmd_port_get_dumpit
2023/02/13 03:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 93e26d60 .config console log report syz [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: rcu detected stall in devlink_nl_cmd_port_get_dumpit
2023/03/01 22:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: rcu detected stall in devlink_nl_cmd_port_get_dumpit
2023/02/27 13:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d e792ae78 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: rcu detected stall in devlink_nl_cmd_port_get_dumpit
2023/02/21 18:45 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a9b06ec42c0f f949448d .config console log report info ci-upstream-gce-arm64 INFO: rcu detected stall in devlink_nl_cmd_port_get_dumpit
* Struck through repros no longer work on HEAD.