rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: (detected by 1, t=10502 jiffies, g=10905, q=695) rcu: All QSes seen, last rcu_preempt kthread activity 10502 (4294969011-4294958509), jiffies_till_next_fqs=1, root ->qsmask 0x0 rcu: rcu_preempt kthread starved for 10502 jiffies! g10905 f0x2 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=1 rcu: Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior. rcu: RCU grace-period kthread stack dump: task:rcu_preempt state:R running task stack:29080 pid: 13 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:4313 [inline] __schedule+0x90c/0x21a0 kernel/sched/core.c:5064 schedule+0xcf/0x270 kernel/sched/core.c:5143 schedule_timeout+0x148/0x250 kernel/time/timer.c:1878 rcu_gp_fqs_loop kernel/rcu/tree.c:1940 [inline] rcu_gp_kthread+0xbbe/0x1d70 kernel/rcu/tree.c:2113 kthread+0x3b1/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 ================================ WARNING: inconsistent lock state 5.11.0-rc3-syzkaller #0 Not tainted -------------------------------- inconsistent {IN-HARDIRQ-W} -> {HARDIRQ-ON-W} usage. syz-executor.5/10150 [HC0[0]:SC1[1]:HE0:SE0] takes: ffffffff8b37bbd8 (rcu_node_0){?.-.}-{2:2}, at: print_other_cpu_stall kernel/rcu/tree_stall.h:493 [inline] ffffffff8b37bbd8 (rcu_node_0){?.-.}-{2:2}, at: check_cpu_stall kernel/rcu/tree_stall.h:652 [inline] ffffffff8b37bbd8 (rcu_node_0){?.-.}-{2:2}, at: rcu_pending kernel/rcu/tree.c:3751 [inline] ffffffff8b37bbd8 (rcu_node_0){?.-.}-{2:2}, at: rcu_sched_clock_irq.cold+0xbc/0xedf kernel/rcu/tree.c:2580 {IN-HARDIRQ-W} state was registered at: lock_acquire kernel/locking/lockdep.c:5437 [inline] lock_acquire+0x29d/0x740 kernel/locking/lockdep.c:5402 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:159 rcu_report_exp_cpu_mult+0x72/0x320 kernel/rcu/tree_exp.h:237 flush_smp_call_function_queue+0x34b/0x640 kernel/smp.c:425 __sysvec_call_function_single+0x95/0x3d0 arch/x86/kernel/smp.c:248 asm_call_irq_on_stack+0xf/0x20 __run_sysvec_on_irqstack arch/x86/include/asm/irq_stack.h:37 [inline] run_sysvec_on_irqstack_cond arch/x86/include/asm/irq_stack.h:89 [inline] sysvec_call_function_single+0xbd/0x100 arch/x86/kernel/smp.c:243 asm_sysvec_call_function_single+0x12/0x20 arch/x86/include/asm/idtentry.h:636 follow_page_mask+0x2/0x1a00 mm/gup.c:719 __get_user_pages+0x6f8/0x1490 mm/gup.c:1068 __get_user_pages_locked mm/gup.c:1256 [inline] __get_user_pages_remote+0x18f/0x810 mm/gup.c:1723 get_user_pages_remote+0x63/0x90 mm/gup.c:1796 get_arg_page+0xba/0x200 fs/exec.c:223 copy_string_kernel+0x1b4/0x520 fs/exec.c:634 kernel_execve+0x25c/0x460 fs/exec.c:1956 call_usermodehelper_exec_async+0x2de/0x580 kernel/umh.c:110 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 irq event stamp: 18236607 hardirqs last enabled at (18236606): [] asm_sysvec_irq_work+0x12/0x20 arch/x86/include/asm/idtentry.h:654 hardirqs last disabled at (18236607): [] sysvec_apic_timer_interrupt+0xc/0x100 arch/x86/kernel/apic/apic.c:1096 softirqs last enabled at (2000): [] memcpy include/linux/string.h:447 [inline] softirqs last enabled at (2000): [] fpu__copy+0x16c/0x660 arch/x86/kernel/fpu/core.c:240 softirqs last disabled at (2401): [] asm_call_irq_on_stack+0xf/0x20 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(rcu_node_0); lock(rcu_node_0); *** DEADLOCK *** 4 locks held by syz-executor.5/10150: #0: ffffffff8b484298 (free_vmap_area_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] #0: ffffffff8b484298 (free_vmap_area_lock){+.+.}-{2:2}, at: alloc_vmap_area+0xb9e/0x1e00 mm/vmalloc.c:1215 #1: ffffffff8b373920 (rcu_read_lock){....}-{1:2}, at: is_bpf_text_address+0x0/0x160 kernel/bpf/core.c:687 #2: ffffc90000db0d78 ((&ndev->rs_timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:35 [inline] #2: ffffc90000db0d78 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x6b0 kernel/time/timer.c:1407 #3: ffffffff8b37bbd8 (rcu_node_0){?.-.}-{2:2}, at: print_other_cpu_stall kernel/rcu/tree_stall.h:493 [inline] #3: ffffffff8b37bbd8 (rcu_node_0){?.-.}-{2:2}, at: check_cpu_stall kernel/rcu/tree_stall.h:652 [inline] #3: ffffffff8b37bbd8 (rcu_node_0){?.-.}-{2:2}, at: rcu_pending kernel/rcu/tree.c:3751 [inline] #3: ffffffff8b37bbd8 (rcu_node_0){?.-.}-{2:2}, at: rcu_sched_clock_irq.cold+0xbc/0xedf kernel/rcu/tree.c:2580 stack backtrace: CPU: 1 PID: 10150 Comm: syz-executor.5 Not tainted 5.11.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:120 print_usage_bug kernel/locking/lockdep.c:4413 [inline] valid_state kernel/locking/lockdep.c:3751 [inline] mark_lock_irq kernel/locking/lockdep.c:3954 [inline] mark_lock.cold+0x56/0x73 kernel/locking/lockdep.c:4411 mark_held_locks+0x9f/0xe0 kernel/locking/lockdep.c:4012 __trace_hardirqs_on_caller kernel/locking/lockdep.c:4030 [inline] lockdep_hardirqs_on_prepare kernel/locking/lockdep.c:4098 [inline] lockdep_hardirqs_on_prepare+0x135/0x400 kernel/locking/lockdep.c:4050 trace_hardirqs_on+0x5b/0x1c0 kernel/trace/trace_preemptirq.c:49 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:628 RIP: 0010:ndisc_alloc_skb+0x10e/0x320 net/ipv6/ndisc.c:417 Code: 00 0f 85 00 02 00 00 4c 8b ab 98 05 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d bd 08 0d 00 00 48 89 fa 48 c1 ea 03 80 3c 02 00 <0f> 85 e1 01 00 00 43 8d 7c 26 28 31 d2 b9 ff ff ff ff 4d 8b ad 08 RSP: 0018:ffffc90000db0c00 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: ffff888017b72000 RCX: 0000000000000100 RDX: 1ffff1100db691a1 RSI: ffffffff87b0bcb5 RDI: ffff88806db48d08 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001 R10: ffffffff87b1786e R11: 0000000000000020 R12: 0000000000000000 R13: ffff88806db48000 R14: 0000000000000010 R15: 0000000000000010 ndisc_send_rs+0x388/0x700 net/ipv6/ndisc.c:686 addrconf_rs_timer+0x3f2/0x820 net/ipv6/addrconf.c:3874 call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1417 expire_timers kernel/time/timer.c:1462 [inline] __run_timers.part.0+0x67c/0xa50 kernel/time/timer.c:1731 __run_timers kernel/time/timer.c:1712 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1744 __do_softirq+0x2bc/0xa29 kernel/softirq.c:343 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0xaa/0xd0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:226 [inline] __irq_exit_rcu kernel/softirq.c:420 [inline] irq_exit_rcu+0x134/0x200 kernel/softirq.c:432 sysvec_apic_timer_interrupt+0x4d/0x100 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:628 RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:26 [inline] RIP: 0010:rcu_lockdep_current_cpu_online+0x0/0x150 kernel/rcu/tree.c:1158 Code: 8b 44 24 20 4c 8b 4c 24 18 4c 8b 54 24 10 48 8b 4c 24 08 48 8b 14 24 e9 94 fe ff ff 0f 1f 40 00 66 2e 0f 1f 84 00 00 00 00 00 <65> 8b 15 b9 9c a2 7e 81 e2 00 00 f0 00 b8 01 00 00 00 75 0a 8b 15 RSP: 0018:ffffc9000189f438 EFLAGS: 00000202 RAX: 0000000000000001 RBX: 0000000000000001 RCX: ffffffff8158c5c1 RDX: 0000000000000000 RSI: 0000000000000003 RDI: ffff8880b9f35ba8 RBP: 1ffff92000313e8c R08: 0000000000000000 R09: ffffffff8d03798f R10: fffffbfff1a06f31 R11: 0000000000000000 R12: 0000000000000001 R13: 0000000000000000 R14: ffff888022810000 R15: 0000000000000246 rcu_read_lock_held_common kernel/rcu/update.c:110 [inline] rcu_read_lock_held_common kernel/rcu/update.c:100 [inline] rcu_read_lock_sched_held+0x25/0x70 kernel/rcu/update.c:121 trace_lock_release include/trace/events/lock.h:58 [inline] lock_release+0x5b7/0x710 kernel/locking/lockdep.c:5448 rcu_lock_release include/linux/rcupdate.h:264 [inline] rcu_read_unlock include/linux/rcupdate.h:702 [inline] is_bpf_text_address+0xcb/0x160 kernel/bpf/core.c:702 kernel_text_address kernel/extable.c:151 [inline] kernel_text_address+0xbd/0xf0 kernel/extable.c:120 __kernel_text_address+0x9/0x30 kernel/extable.c:105 unwind_get_return_address arch/x86/kernel/unwind_orc.c:318 [inline] unwind_get_return_address+0x51/0x90 arch/x86/kernel/unwind_orc.c:313 arch_stack_walk+0x93/0xe0 arch/x86/kernel/stacktrace.c:26 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:121 kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track+0x1c/0x30 mm/kasan/common.c:46 kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:356 ____kasan_slab_free+0xe1/0x110 mm/kasan/common.c:362 kasan_slab_free include/linux/kasan.h:188 [inline] slab_free_hook mm/slub.c:1547 [inline] slab_free_freelist_hook+0x5d/0x150 mm/slub.c:1580 slab_free mm/slub.c:3142 [inline] kmem_cache_free+0x82/0x350 mm/slub.c:3158 adjust_va_to_fit_type mm/vmalloc.c:1008 [inline] __alloc_vmap_area mm/vmalloc.c:1124 [inline] alloc_vmap_area+0x144d/0x1e00 mm/vmalloc.c:1224 __get_vm_area_node+0x128/0x380 mm/vmalloc.c:2096 __vmalloc_node_range mm/vmalloc.c:2569 [inline] __vmalloc_node mm/vmalloc.c:2617 [inline] __vmalloc+0xf3/0x1a0 mm/vmalloc.c:2631 bpf_prog_alloc_no_stats+0x33/0x2e0 kernel/bpf/core.c:85 bpf_prog_alloc+0x2c/0x250 kernel/bpf/core.c:113 bpf_prog_load+0x656/0x1f40 kernel/bpf/syscall.c:2152 __do_sys_bpf+0x1251/0x4f10 kernel/bpf/syscall.c:4380 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45e219 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f4e7b578c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045e219 RDX: 0000000000000048 RSI: 0000000020000080 RDI: 0000000000000005 RBP: 000000000119c068 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119c034 R13: 00007fff45d80d6f R14: 00007f4e7b5799c0 R15: 000000000119c034 ------------[ cut here ]------------ timer: addrconf_rs_timer+0x0/0x820 net/ipv6/addrconf.c:1857 preempt leak: 00000102 -> 00000103 WARNING: CPU: 1 PID: 10150 at kernel/time/timer.c:1423 call_timer_fn+0x5d8/0x6b0 kernel/time/timer.c:1423 Modules linked in: CPU: 1 PID: 10150 Comm: syz-executor.5 Not tainted 5.11.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:call_timer_fn+0x5d8/0x6b0 kernel/time/timer.c:1423 Code: e8 6d 75 10 00 89 da 4c 89 f6 48 c7 c7 60 7f 4d 89 65 8b 0d 5a 9b 9f 7e 81 e1 ff ff ff 7f c6 05 0c 06 8d 0b 01 e8 1c 3a 56 07 <0f> 0b e9 80 fc ff ff e8 3c 75 10 00 0f 0b e9 fb fd ff ff e8 30 75 RSP: 0018:ffffc90000db0d40 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000102 RCX: 0000000000000000 RDX: ffff888022810000 RSI: ffffffff815b6b15 RDI: fffff520001b619a RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff815afcee R11: 0000000000000000 R12: 0000000000000000 R13: 1ffff920001b61a9 R14: ffffffff87aaca10 R15: 0000000000000000 FS: 00007f4e7b579700(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000016b9e60 CR3: 00000000179d5000 CR4: 0000000000350ee0 Call Trace: expire_timers kernel/time/timer.c:1462 [inline] __run_timers.part.0+0x67c/0xa50 kernel/time/timer.c:1731 __run_timers kernel/time/timer.c:1712 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1744 __do_softirq+0x2bc/0xa29 kernel/softirq.c:343 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0xaa/0xd0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:226 [inline] __irq_exit_rcu kernel/softirq.c:420 [inline] irq_exit_rcu+0x134/0x200 kernel/softirq.c:432 sysvec_apic_timer_interrupt+0x4d/0x100 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:628 RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:26 [inline] RIP: 0010:rcu_lockdep_current_cpu_online+0x0/0x150 kernel/rcu/tree.c:1158 Code: 8b 44 24 20 4c 8b 4c 24 18 4c 8b 54 24 10 48 8b 4c 24 08 48 8b 14 24 e9 94 fe ff ff 0f 1f 40 00 66 2e 0f 1f 84 00 00 00 00 00 <65> 8b 15 b9 9c a2 7e 81 e2 00 00 f0 00 b8 01 00 00 00 75 0a 8b 15 RSP: 0018:ffffc9000189f438 EFLAGS: 00000202 RAX: 0000000000000001 RBX: 0000000000000001 RCX: ffffffff8158c5c1 RDX: 0000000000000000 RSI: 0000000000000003 RDI: ffff8880b9f35ba8 RBP: 1ffff92000313e8c R08: 0000000000000000 R09: ffffffff8d03798f R10: fffffbfff1a06f31 R11: 0000000000000000 R12: 0000000000000001 R13: 0000000000000000 R14: ffff888022810000 R15: 0000000000000246 rcu_read_lock_held_common kernel/rcu/update.c:110 [inline] rcu_read_lock_held_common kernel/rcu/update.c:100 [inline] rcu_read_lock_sched_held+0x25/0x70 kernel/rcu/update.c:121 trace_lock_release include/trace/events/lock.h:58 [inline] lock_release+0x5b7/0x710 kernel/locking/lockdep.c:5448 rcu_lock_release include/linux/rcupdate.h:264 [inline] rcu_read_unlock include/linux/rcupdate.h:702 [inline] is_bpf_text_address+0xcb/0x160 kernel/bpf/core.c:702 kernel_text_address kernel/extable.c:151 [inline] kernel_text_address+0xbd/0xf0 kernel/extable.c:120 __kernel_text_address+0x9/0x30 kernel/extable.c:105 unwind_get_return_address arch/x86/kernel/unwind_orc.c:318 [inline] unwind_get_return_address+0x51/0x90 arch/x86/kernel/unwind_orc.c:313 arch_stack_walk+0x93/0xe0 arch/x86/kernel/stacktrace.c:26 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:121 kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track+0x1c/0x30 mm/kasan/common.c:46 kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:356 ____kasan_slab_free+0xe1/0x110 mm/kasan/common.c:362 kasan_slab_free include/linux/kasan.h:188 [inline] slab_free_hook mm/slub.c:1547 [inline] slab_free_freelist_hook+0x5d/0x150 mm/slub.c:1580 slab_free mm/slub.c:3142 [inline] kmem_cache_free+0x82/0x350 mm/slub.c:3158 adjust_va_to_fit_type mm/vmalloc.c:1008 [inline] __alloc_vmap_area mm/vmalloc.c:1124 [inline] alloc_vmap_area+0x144d/0x1e00 mm/vmalloc.c:1224 __get_vm_area_node+0x128/0x380 mm/vmalloc.c:2096 __vmalloc_node_range mm/vmalloc.c:2569 [inline] __vmalloc_node mm/vmalloc.c:2617 [inline] __vmalloc+0xf3/0x1a0 mm/vmalloc.c:2631 bpf_prog_alloc_no_stats+0x33/0x2e0 kernel/bpf/core.c:85 bpf_prog_alloc+0x2c/0x250 kernel/bpf/core.c:113 bpf_prog_load+0x656/0x1f40 kernel/bpf/syscall.c:2152 __do_sys_bpf+0x1251/0x4f10 kernel/bpf/syscall.c:4380 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45e219 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f4e7b578c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045e219 RDX: 0000000000000048 RSI: 0000000020000080 RDI: 0000000000000005 RBP: 000000000119c068 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119c034 R13: 00007fff45d80d6f R14: 00007f4e7b5799c0 R15: 000000000119c034