rcu: INFO: rcu_preempt self-detected stall on CPU rcu: 0-...!: (10501 ticks this GP) idle=f56/1/0x4000000000000000 softirq=160493/160493 fqs=2 (t=10502 jiffies g=272909 q=132) rcu: rcu_preempt kthread starved for 10495 jiffies! g272909 f0x0 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:26384 pid: 14 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:4683 [inline] __schedule+0xc07/0x11f0 kernel/sched/core.c:5940 schedule+0x14b/0x210 kernel/sched/core.c:6019 schedule_timeout+0x1aa/0x2f0 kernel/time/timer.c:1879 rcu_gp_fqs_loop kernel/rcu/tree.c:1996 [inline] rcu_gp_kthread+0x10fd/0x1720 kernel/rcu/tree.c:2169 kthread+0x453/0x480 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 rcu: Stack dump where RCU GP kthread last ran: Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 18375 Comm: syz-executor.5 Not tainted 5.14.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:rcu_dynticks_curr_cpu_in_eqs kernel/rcu/tree.c:339 [inline] RIP: 0010:rcu_is_watching+0x37/0xb0 kernel/rcu/tree.c:1160 Code: e8 ce ea 6d 08 89 c3 83 f8 08 73 74 49 bf 00 00 00 00 00 fc ff df 4c 8d 34 dd d0 f7 15 8c 4c 89 f0 48 c1 e8 03 42 80 3c 38 00 <74> 08 4c 89 f7 e8 1f 5b 5e 00 48 c7 c3 88 24 05 00 49 03 1e 48 89 RSP: 0018:ffffc90000dc0200 EFLAGS: 00000046 RAX: 1ffffffff182befb RBX: 0000000000000001 RCX: ffff8880153e9c40 RDX: 0000000000000000 RSI: 0000000000010103 RDI: 0000000000000000 RBP: ffffc90000dc02b0 R08: dffffc0000000000 R09: fffffbfff1b74b4e R10: fffffbfff1b74b4e R11: 0000000000000000 R12: ffffffff81a34d39 R13: 1ffff920001b8084 R14: ffffffff8c15f7d8 R15: dffffc0000000000 FS: 00007fa0aefb7700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa0aefb6d58 CR3: 00000000a33cb000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: rcu_read_lock_held_common kernel/rcu/update.c:108 [inline] rcu_read_lock_sched_held+0x69/0x110 kernel/rcu/update.c:123 trace_lock_release+0x4f/0x150 include/trace/events/lock.h:58 lock_release+0x81/0x7b0 kernel/locking/lockdep.c:5636 rcu_read_unlock include/linux/rcupdate.h:720 [inline] __perf_event_output kernel/events/core.c:7459 [inline] perf_event_output_forward+0x1f0/0x250 kernel/events/core.c:7468 __perf_event_overflow+0x1f8/0x380 kernel/events/core.c:9140 perf_swevent_hrtimer+0x3c2/0x520 kernel/events/core.c:10540 __run_hrtimer kernel/time/hrtimer.c:1537 [inline] __hrtimer_run_queues+0x4cb/0xa60 kernel/time/hrtimer.c:1601 hrtimer_interrupt+0x3b3/0x1040 kernel/time/hrtimer.c:1663 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1089 [inline] __sysvec_apic_timer_interrupt+0xf9/0x270 arch/x86/kernel/apic/apic.c:1106 sysvec_apic_timer_interrupt+0x3e/0xb0 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:kasan_check_range+0x221/0x2f0 mm/kasan/generic.c:189 Code: eb 03 4d 89 cf 49 8d 5e 07 4d 85 f6 49 0f 49 de 48 83 e3 f8 49 29 de 74 11 45 0f b6 1f 45 84 db 75 64 49 ff c7 49 ff ce 75 ef <5b> 41 5c 41 5d 41 5e 41 5f c3 45 84 db 75 50 45 8a 59 01 45 84 db RSP: 0018:ffffc90000dc0b50 EFLAGS: 00000256 RAX: ffffc90000dc0b01 RBX: 0000000000000000 RCX: ffffffff816effdd RDX: 0000000000000001 RSI: 0000000000000010 RDI: ffffc90000dc0be8 RBP: ffffc90000dc0be8 R08: dffffc0000000000 R09: fffff520001b817f R10: fffff520001b817f R11: 0000000000000000 R12: 1ffff920001b817d R13: dffffc0000000001 R14: 0000000000000002 R15: 1ffff920001b8178 memset+0x1f/0x40 mm/kasan/shadow.c:44 lockdep_copy_map include/linux/lockdep.h:45 [inline] call_timer_fn+0xbd/0x210 kernel/time/timer.c:1409 expire_timers kernel/time/timer.c:1464 [inline] __run_timers+0x6ff/0x910 kernel/time/timer.c:1732 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1745 __do_softirq+0x372/0x783 kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x21b/0x260 kernel/softirq.c:636 irq_exit_rcu+0x5/0x20 kernel/softirq.c:648 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:finish_lock_switch+0xf0/0x1c0 kernel/sched/core.c:4438 Code: 61 0c 00 74 11 48 89 df be ff ff ff ff e8 b8 96 7f 08 85 c0 74 27 4d 85 ff 75 44 4c 89 f7 e8 77 40 82 08 e8 e2 3c 2d 00 fb 5b <41> 5c 41 5d 41 5e 41 5f 5d c3 0f 0b 4d 85 ff 75 92 eb a8 0f 0b 4d RSP: 0018:ffffc90002d66d10 EFLAGS: 00000286 RAX: cf1181465f134200 RBX: ffff888016188034 RCX: ffffffff9070a703 RDX: dffffc0000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 1ffff110173aa3f0 R08: ffffffff81868d70 R09: ffffed10173aa299 R10: ffffed10173aa299 R11: 0000000000000000 R12: ffff8880b9d51f80 R13: dffffc0000000000 R14: ffff8880b9d514c0 R15: 0000000000000000 finish_task_switch+0x140/0x630 kernel/sched/core.c:4555 context_switch kernel/sched/core.c:4686 [inline] __schedule+0xc0f/0x11f0 kernel/sched/core.c:5940 preempt_schedule_common kernel/sched/core.c:6100 [inline] preempt_schedule+0x12c/0x170 kernel/sched/core.c:6125 preempt_schedule_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:35 unwind_next_frame+0x13fc/0x1fa0 arch/x86/kernel/unwind_orc.c:611 __unwind_start+0x60b/0x750 arch/x86/kernel/unwind_orc.c:699 unwind_start arch/x86/include/asm/unwind.h:60 [inline] arch_stack_walk+0x76/0xe0 arch/x86/kernel/stacktrace.c:24 stack_trace_save+0x104/0x1e0 kernel/stacktrace.c:121 kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] ____kasan_kmalloc+0xc4/0xf0 mm/kasan/common.c:513 kasan_kmalloc include/linux/kasan.h:264 [inline] __kmalloc+0xb4/0x390 mm/slub.c:4104 kmalloc include/linux/slab.h:596 [inline] tomoyo_realpath_from_path+0xd8/0x610 security/tomoyo/realpath.c:254 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_check_open_permission+0x1f0/0x460 security/tomoyo/file.c:771 security_file_open+0x50/0xc0 security/security.c:1633 do_dentry_open+0x36b/0x1020 fs/open.c:813 do_open fs/namei.c:3374 [inline] path_openat+0x27e7/0x36b0 fs/namei.c:3507 do_filp_open+0x253/0x4d0 fs/namei.c:3534 do_sys_openat2+0x124/0x460 fs/open.c:1204 do_sys_open fs/open.c:1220 [inline] __do_sys_openat fs/open.c:1236 [inline] __se_sys_openat fs/open.c:1231 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1231 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4196d4 Code: 84 00 00 00 00 00 44 89 54 24 0c e8 96 f9 ff ff 44 8b 54 24 0c 44 89 e2 48 89 ee 41 89 c0 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 89 44 24 0c e8 c8 f9 ff ff 8b 44 RSP: 002b:00007fa0aefb6cc0 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 6666666666666667 RCX: 00000000004196d4 RDX: 0000000000000000 RSI: 00007fa0aefb6d60 RDI: 00000000ffffff9c RBP: 00007fa0aefb6d60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 00007ffc4bd4ae4f R14: 00007fa0aefb7300 R15: 0000000000022000 NMI backtrace for cpu 0 CPU: 0 PID: 18369 Comm: syz-executor.2 Not tainted 5.14.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:88 [inline] dump_stack_lvl+0x1ae/0x29f lib/dump_stack.c:105 nmi_cpu_backtrace+0x16c/0x190 lib/nmi_backtrace.c:105 nmi_trigger_cpumask_backtrace+0x191/0x2f0 lib/nmi_backtrace.c:62 trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline] rcu_dump_cpu_stacks+0x22d/0x390 kernel/rcu/tree_stall.h:342 print_cpu_stall kernel/rcu/tree_stall.h:625 [inline] check_cpu_stall kernel/rcu/tree_stall.h:700 [inline] rcu_pending kernel/rcu/tree.c:3922 [inline] rcu_sched_clock_irq+0x1d0d/0x2a30 kernel/rcu/tree.c:2641 update_process_times+0x197/0x200 kernel/time/timer.c:1783 tick_sched_handle kernel/time/tick-sched.c:226 [inline] tick_sched_timer+0x27d/0x420 kernel/time/tick-sched.c:1421 __run_hrtimer kernel/time/hrtimer.c:1537 [inline] __hrtimer_run_queues+0x4cb/0xa60 kernel/time/hrtimer.c:1601 hrtimer_interrupt+0x3b3/0x1040 kernel/time/hrtimer.c:1663 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1089 [inline] __sysvec_apic_timer_interrupt+0xf9/0x270 arch/x86/kernel/apic/apic.c:1106 sysvec_apic_timer_interrupt+0x3e/0xb0 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:memset_erms+0xb/0x10 arch/x86/lib/memset_64.S:65 Code: 03 40 0f b6 f6 48 b8 01 01 01 01 01 01 01 01 48 0f af c6 f3 48 ab 89 d1 f3 aa 4c 89 c8 c3 90 49 89 f9 40 88 f0 48 89 d1 f3 aa <4c> 89 c8 c3 90 49 89 fa 40 0f b6 ce 48 b8 01 01 01 01 01 01 01 01 RSP: 0018:ffffc90000007b98 EFLAGS: 00000202 RAX: ffffc90000007b00 RBX: ffffffff88106ab0 RCX: 0000000000000000 RDX: 0000000000000010 RSI: 0000000000000000 RDI: ffffc90000007bf8 RBP: ffffc90000007c90 R08: dffffc0000000000 R09: ffffc90000007be8 R10: fffff52000000f7f R11: 0000000000000000 R12: ffff8880ab378410 R13: ffffc90000007be0 R14: 0000000000000101 R15: 1ffff92000000f78 lockdep_copy_map include/linux/lockdep.h:45 [inline] call_timer_fn+0xbd/0x210 kernel/time/timer.c:1409 expire_timers kernel/time/timer.c:1464 [inline] __run_timers+0x6ff/0x910 kernel/time/timer.c:1732 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1745 __do_softirq+0x372/0x783 kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x21b/0x260 kernel/softirq.c:636 irq_exit_rcu+0x5/0x20 kernel/softirq.c:648 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:unwind_next_frame+0xfa0/0x1fa0 arch/x86/kernel/unwind_orc.c:580 Code: 03 42 8a 04 30 84 c0 0f 85 49 0d 00 00 c6 03 01 48 8b 44 24 70 42 8a 04 30 84 c0 0f 85 4f 0d 00 00 c6 45 00 01 48 8b 6c 24 20 <43> 8a 04 34 84 c0 0f 85 f1 0a 00 00 48 8b 44 24 68 42 8a 04 30 84 RSP: 0018:ffffc90002d16fc0 EFLAGS: 00000202 RAX: ffffc90002d170d0 RBX: ffffc90002d170b5 RCX: 0000000000000000 RDX: 0000000000000010 RSI: 0000000000000000 RDI: ffffc90002d170e0 RBP: ffffffff8e3bc50e R08: dffffc0000000000 R09: ffffc90002d170d0 R10: fffff520005a2e1c R11: 0000000000000000 R12: 1ffffffff1c778a2 R13: ffffc90002d17080 R14: dffffc0000000000 R15: ffffffff8e3bc512 arch_stack_walk+0xb2/0xe0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x104/0x1e0 kernel/stacktrace.c:121 kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x3d/0x70 mm/kasan/common.c:46 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360 ____kasan_slab_free+0x109/0x150 mm/kasan/common.c:366 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1625 [inline] slab_free_freelist_hook+0x1d8/0x290 mm/slub.c:1650 slab_free mm/slub.c:3210 [inline] kfree+0xcf/0x2d0 mm/slub.c:4262 tomoyo_realpath_from_path+0x5ce/0x610 security/tomoyo/realpath.c:291 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_check_open_permission+0x1f0/0x460 security/tomoyo/file.c:771 security_file_open+0x50/0xc0 security/security.c:1633 do_dentry_open+0x36b/0x1020 fs/open.c:813 do_open fs/namei.c:3374 [inline] path_openat+0x27e7/0x36b0 fs/namei.c:3507 do_filp_open+0x253/0x4d0 fs/namei.c:3534 do_sys_openat2+0x124/0x460 fs/open.c:1204 do_sys_open fs/open.c:1220 [inline] __do_sys_openat fs/open.c:1236 [inline] __se_sys_openat fs/open.c:1231 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1231 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4196d4 Code: 84 00 00 00 00 00 44 89 54 24 0c e8 96 f9 ff ff 44 8b 54 24 0c 44 89 e2 48 89 ee 41 89 c0 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 89 44 24 0c e8 c8 f9 ff ff 8b 44 RSP: 002b:00007f8fb007bcc0 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 6666666666666667 RCX: 00000000004196d4 RDX: 0000000000000000 RSI: 00007f8fb007bd60 RDI: 00000000ffffff9c RBP: 00007f8fb007bd60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 00007ffcf9e11fef R14: 00007f8fb007c300 R15: 0000000000022000