rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 1-...!: (10499 ticks this GP) idle=bc2/1/0x4000000000000002 softirq=11645/11645 fqs=144
(t=10500 jiffies g=6693 q=89)
rcu: rcu_preempt kthread starved for 10205 jiffies! g6693 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=0
rcu: RCU grace-period kthread stack dump:
rcu_preempt R running task 29032 10 2 0x80004000
Call Trace:
context_switch kernel/sched/core.c:3385 [inline]
__schedule+0x9a0/0xcc0 kernel/sched/core.c:4081
schedule+0x181/0x210 kernel/sched/core.c:4155
schedule_timeout+0x14f/0x240 kernel/time/timer.c:1895
rcu_gp_fqs_loop kernel/rcu/tree.c:1661 [inline]
rcu_gp_kthread+0xed8/0x1770 kernel/rcu/tree.c:1821
kthread+0x332/0x350 kernel/kthread.c:255
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352
NMI backtrace for cpu 1
CPU: 1 PID: 8342 Comm: syz-executor.5 Not tainted 5.4.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x1fb/0x318 lib/dump_stack.c:118
nmi_cpu_backtrace+0xaf/0x1a0 lib/nmi_backtrace.c:101
nmi_trigger_cpumask_backtrace+0x174/0x290 lib/nmi_backtrace.c:62
arch_trigger_cpumask_backtrace+0x10/0x20 arch/x86/kernel/apic/hw_nmi.c:38
trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline]
rcu_dump_cpu_stacks+0x15a/0x220 kernel/rcu/tree_stall.h:254
print_cpu_stall kernel/rcu/tree_stall.h:455 [inline]
check_cpu_stall kernel/rcu/tree_stall.h:529 [inline]
rcu_pending kernel/rcu/tree.c:2827 [inline]
rcu_sched_clock_irq+0xe25/0x1ad0 kernel/rcu/tree.c:2271
update_process_times+0x12d/0x180 kernel/time/timer.c:1726
tick_sched_handle kernel/time/tick-sched.c:167 [inline]
tick_sched_timer+0x263/0x420 kernel/time/tick-sched.c:1310
__run_hrtimer kernel/time/hrtimer.c:1514 [inline]
__hrtimer_run_queues+0x403/0x840 kernel/time/hrtimer.c:1576
hrtimer_interrupt+0x38c/0xda0 kernel/time/hrtimer.c:1638
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1110 [inline]
smp_apic_timer_interrupt+0x109/0x280 arch/x86/kernel/apic/apic.c:1135
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829
RIP: 0010:__sanitizer_cov_trace_pc+0x48/0x50 kernel/kcov.c:112
Code: 80 13 00 00 83 fa 02 75 21 48 8b 91 88 13 00 00 48 8b 32 48 8d 7e 01 8b 89 84 13 00 00 48 39 cf 73 08 48 89 44 f2 08 48 89 3a 0f 1f 80 00 00 00 00 4c 8b 04 24 65 48 8b 04 25 c0 1d 02 00 65
RSP: 0018:ffffc90002356f40 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13
RAX: ffffffff81487326 RBX: ffffea00028920c0 RCX: ffff8880a904e440
RDX: 0000000000000000 RSI: 00000000fffffffc RDI: ffffea00028920c0
RBP: ffffc90002356f68 R08: 000000000003a768 R09: ffffed1012926af7
R10: ffffed1012926af7 R11: 0000000000000000 R12: ffff8880a2a665a0
R13: dffffc0000000000 R14: 00000000fffffffc R15: ffff8880949357a8
free_thread_stack+0x168/0x590 kernel/fork.c:280
release_task_stack kernel/fork.c:440 [inline]
put_task_stack+0xa3/0x130 kernel/fork.c:451
finish_task_switch+0x3f1/0x550 kernel/sched/core.c:3256
context_switch kernel/sched/core.c:3388 [inline]
__schedule+0x9a8/0xcc0 kernel/sched/core.c:4081
preempt_schedule_irq+0xc1/0x140 kernel/sched/core.c:4338
retint_kernel+0x1b/0x2b
RIP: 0010:arch_stack_walk+0xd3/0xe0 arch/x86/kernel/stacktrace.c:30
Code: c0 74 11 48 89 df e8 5c ff 07 00 83 bd 70 ff ff ff 00 75 d3 65 48 8b 04 25 28 00 00 00 48 3b 45 d0 75 0f 48 83 c4 68 5b 41 5c <41> 5d 41 5e 41 5f 5d c3 e8 40 7c 1b 00 55 48 89 e5 41 57 41 56 41
RSP: 0018:ffffc900023571c8 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 2ac81a014e277200 RBX: 1ffff9200046ae40 RCX: ffffffff896df100
RDX: dffffc0000000000 RSI: ffff8880a904edc0 RDI: 0000000000000286
RBP: ffffc900023571e0 R08: dffffc0000000000 R09: fffffbfff12877ed
R10: fffffbfff12877ed R11: 0000000000000000 R12: dffffc0000000000
R13: ffffffff81659c20 R14: ffffc900023571f0 R15: 0000000000000000
stack_trace_save+0xb6/0x150 kernel/stacktrace.c:123
save_stack mm/kasan/common.c:71 [inline]
set_track mm/kasan/common.c:79 [inline]
__kasan_kmalloc+0x11c/0x1b0 mm/kasan/common.c:512
kasan_slab_alloc+0xf/0x20 mm/kasan/common.c:520
slab_post_alloc_hook mm/slab.h:584 [inline]
slab_alloc mm/slab.c:3320 [inline]
kmem_cache_alloc_trace+0x1fa/0x2f0 mm/slab.c:3549
kmalloc include/linux/slab.h:556 [inline]
kzalloc include/linux/slab.h:670 [inline]
inetdev_init+0x80/0x3f0 net/ipv4/devinet.c:259
inetdev_event+0x22f/0x1350 net/ipv4/devinet.c:1530
notifier_call_chain kernel/notifier.c:95 [inline]
__raw_notifier_call_chain kernel/notifier.c:396 [inline]
raw_notifier_call_chain+0xec/0x190 kernel/notifier.c:403
call_netdevice_notifiers_info net/core/dev.c:1893 [inline]
call_netdevice_notifiers_extack net/core/dev.c:1905 [inline]
call_netdevice_notifiers net/core/dev.c:1919 [inline]
register_netdevice+0x1339/0x1830 net/core/dev.c:9344
nsim_create+0x1d4/0x230 drivers/net/netdevsim/netdev.c:309
__nsim_dev_port_add+0x289/0x4d0 drivers/net/netdevsim/dev.c:648
nsim_dev_port_add_all drivers/net/netdevsim/dev.c:697 [inline]
nsim_dev_probe+0xb55/0xef0 drivers/net/netdevsim/dev.c:818
nsim_bus_probe+0x15/0x20 drivers/net/netdevsim/bus.c:242
really_probe+0x71c/0xf40 drivers/base/dd.c:548
driver_probe_device+0xfc/0x260 drivers/base/dd.c:721
__device_attach_driver+0x336/0x3f0 drivers/base/dd.c:828
bus_for_each_drv+0x12b/0x180 drivers/base/bus.c:430
__device_attach+0x1ea/0x390 drivers/base/dd.c:894
device_initial_probe+0x1a/0x20 drivers/base/dd.c:941
bus_probe_device+0xb9/0x1f0 drivers/base/bus.c:490
device_add+0x1710/0x1ad0 drivers/base/core.c:2487
device_register+0x1d/0x20 drivers/base/core.c:2560
nsim_bus_dev_new drivers/net/netdevsim/bus.c:288 [inline]
new_device_store+0x286/0x510 drivers/net/netdevsim/bus.c:182
bus_attr_store+0x78/0x90 drivers/base/bus.c:121
sysfs_kf_write+0x281/0x2f0 fs/sysfs/file.c:138
kernfs_fop_write+0x3e4/0x4e0 fs/kernfs/file.c:315
__vfs_write+0xb8/0x740 fs/read_write.c:494
vfs_write+0x275/0x590 fs/read_write.c:558
ksys_write+0x117/0x220 fs/read_write.c:611
__do_sys_write fs/read_write.c:623 [inline]
__se_sys_write fs/read_write.c:620 [inline]
__x64_sys_write+0x7b/0x90 fs/read_write.c:620
do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:294
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x414130
Code: b0 89 c8 f7 d8 eb ed b8 6e 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 83 3d 3d 43 66 00 00 75 14 b8 01 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 c4 1b 00 00 c3 48 83 ec 08 e8 ca fc ff ff
RSP: 002b:00007ffcdaf8f9a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000414130
RDX: 0000000000000003 RSI: 00007ffcdaf8f9d0 RDI: 0000000000000004
RBP: 00007ffcdaf8f9d0 R08: 0000000000000000 R09: 0000000000000003
R10: 0000000000000075 R11: 0000000000000246 R12: 00000000004bfc97
R13: 0000000000000004 R14: 0000000000000000 R15: 0000000000000000