rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P5843/1:b..l P7010/1:b..l P5831/1:b..l P5817/1:b..l rcu: (detected by 1, t=10502 jiffies, g=17077, q=721937 ncpus=2) task:syz-executor state:R running task stack:20808 pid:5817 tgid:5817 ppid:5816 task_flags:0x400100 flags:0x00004002 Call Trace: <TASK> context_switch kernel/sched/core.c:5382 [inline] __schedule+0x16e2/0x4cd0 kernel/sched/core.c:6767 preempt_schedule_irq+0xb5/0x150 kernel/sched/core.c:7090 irqentry_exit+0x6f/0x90 kernel/entry/common.c:354 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:__nr_to_section include/linux/mmzone.h:1922 [inline] RIP: 0010:__pfn_to_section include/linux/mmzone.h:2060 [inline] RIP: 0010:lookup_page_ext mm/page_ext.c:251 [inline] RIP: 0010:page_ext_lookup+0x86/0x160 mm/page_ext.c:520 Code: 87 99 e8 4d 21 f5 ff 48 8b 05 26 fd 5a 17 48 85 c0 74 42 48 89 d9 48 c1 e9 16 4c 8d 34 c8 4c 89 f0 48 c1 e8 03 42 80 3c 38 00 <74> 08 4c 89 f7 e8 20 21 f5 ff 4d 8b 36 4d 85 f6 74 20 49 89 dc 49 RSP: 0018:ffffc900042af910 EFLAGS: 00000246 RAX: 1ffff11047ffde80 RBX: 0000000000052cc6 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000052cc6 RDI: 00000003ffffffff RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: ffffffff822b17ae R12: 0000000000052cc6 R13: ffffea00014b3188 R14: ffff88823ffef400 R15: dffffc0000000000 page_ext_iter_begin include/linux/page_ext.h:132 [inline] __update_page_owner_free_handle+0xe2/0x450 mm/page_owner.c:272 __reset_page_owner+0x85/0x1f0 mm/page_owner.c:309 reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1258 [inline] __free_frozen_pages+0xb14/0xce0 mm/page_alloc.c:2721 discard_slab mm/slub.c:2716 [inline] __put_partials+0x161/0x1c0 mm/slub.c:3185 put_cpu_partial+0x17c/0x250 mm/slub.c:3260 __slab_free+0x2f7/0x400 mm/slub.c:4512 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4147 [inline] slab_alloc_node mm/slub.c:4196 [inline] kmem_cache_alloc_noprof+0x1c1/0x3c0 mm/slub.c:4203 alloc_empty_file+0x55/0x1d0 fs/file_table.c:234 alloc_file fs/file_table.c:351 [inline] alloc_file_pseudo+0x13d/0x210 fs/file_table.c:380 create_pipe_files+0x32b/0x760 fs/pipe.c:943 __do_pipe_flags+0x4c/0x2d0 fs/pipe.c:984 do_pipe2+0x9c/0x170 fs/pipe.c:1035 __do_sys_pipe2 fs/pipe.c:1053 [inline] __se_sys_pipe2 fs/pipe.c:1051 [inline] __x64_sys_pipe2+0x5a/0x70 fs/pipe.c:1051 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8add98d689 RSP: 002b:00007ffe37054d98 EFLAGS: 00000246 ORIG_RAX: 0000000000000125 RAX: ffffffffffffffda RBX: 000055556591dba0 RCX: 00007f8add98d689 RDX: 0000000000000005 RSI: 0000000000000000 RDI: 00007ffe37054db0 RBP: 00007ffe37055160 R08: 0000000000000007 R09: 000055556591fdc0 R10: 5e5873779cc13a94 R11: 0000000000000246 R12: 00007ffe370551c0 R13: 000055556591db50 R14: 00007ffe37054ee0 R15: 000055556591fd60 </TASK> task:syz-executor state:R running task stack:21960 pid:5831 tgid:5831 ppid:5825 task_flags:0x400140 flags:0x00004002 Call Trace: <TASK> context_switch kernel/sched/core.c:5382 [inline] __schedule+0x16e2/0x4cd0 kernel/sched/core.c:6767 preempt_schedule_irq+0xb5/0x150 kernel/sched/core.c:7090 irqentry_exit+0x6f/0x90 kernel/entry/common.c:354 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:debug_lockdep_rcu_enabled+0x2a/0x40 kernel/rcu/update.c:321 Code: f3 0f 1e fa 31 c0 83 3d 27 48 27 04 00 74 1e 83 3d ea 75 27 04 00 74 15 65 48 8b 0c 25 08 a0 76 92 31 c0 83 b9 ec 0a 00 00 00 <0f> 94 c0 c3 cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc RSP: 0018:ffffc9000440f600 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff888063400000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: 0000000000000001 R08: ffff88801ccefaaf R09: 1ffff1100399df55 R10: dffffc0000000000 R11: ffffed100399df56 R12: ffff88801ccefab0 R13: 0000000000000001 R14: ffffffff822cd23a R15: 0000000000052fef rcu_read_unlock include/linux/rcupdate.h:869 [inline] __page_table_check_zero+0x361/0x510 mm/page_table_check.c:145 page_table_check_free include/linux/page_table_check.h:41 [inline] free_pages_prepare mm/page_alloc.c:1259 [inline] __free_frozen_pages+0xb28/0xce0 mm/page_alloc.c:2721 discard_slab mm/slub.c:2716 [inline] __put_partials+0x161/0x1c0 mm/slub.c:3185 put_cpu_partial+0x17c/0x250 mm/slub.c:3260 __slab_free+0x2f7/0x400 mm/slub.c:4512 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4147 [inline] slab_alloc_node mm/slub.c:4196 [inline] __do_kmalloc_node mm/slub.c:4326 [inline] __kmalloc_noprof+0x224/0x4f0 mm/slub.c:4339 kmalloc_noprof include/linux/slab.h:909 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] tomoyo_encode2 security/tomoyo/realpath.c:45 [inline] tomoyo_encode+0x28b/0x550 security/tomoyo/realpath.c:80 tomoyo_realpath_from_path+0x58d/0x5d0 security/tomoyo/realpath.c:283 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x213/0x4b0 security/tomoyo/file.c:822 security_inode_getattr+0x12f/0x330 security/security.c:2377 vfs_getattr fs/stat.c:256 [inline] vfs_statx_path fs/stat.c:296 [inline] vfs_statx+0x153/0x550 fs/stat.c:353 vfs_fstatat+0xe4/0x160 fs/stat.c:372 __do_sys_newfstatat fs/stat.c:536 [inline] __se_sys_newfstatat fs/stat.c:530 [inline] __x64_sys_newfstatat+0x11c/0x1a0 fs/stat.c:530 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2f7af8d17a RSP: 002b:00007ffe0a6b3fa8 EFLAGS: 00000286 ORIG_RAX: 0000000000000106 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f2f7af8d17a RDX: 00007ffe0a6b3fd0 RSI: 00007ffe0a6b4060 RDI: 00000000ffffff9c RBP: 00007ffe0a6b4060 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000286 R12: 00007ffe0a6b50f0 R13: 00007f2f7b01089d R14: 0000000000020d9a R15: 00007ffe0a6b5130 </TASK> task:syz.0.295 state:R running task stack:26584 pid:7010 tgid:7010 ppid:5834 task_flags:0x40044c flags:0x00004006 Call Trace: <TASK> context_switch kernel/sched/core.c:5382 [inline] __schedule+0x16e2/0x4cd0 kernel/sched/core.c:6767 preempt_schedule_notrace+0xd1/0x110 kernel/sched/core.c:7040 preempt_schedule_notrace_thunk+0x16/0x30 arch/x86/entry/thunk.S:13 rcu_is_watching+0x7f/0xb0 kernel/rcu/tree.c:737 rcu_read_unlock include/linux/rcupdate.h:869 [inline] class_rcu_destructor include/linux/rcupdate.h:1155 [inline] unwind_next_frame+0x1965/0x2390 arch/x86/kernel/unwind_orc.c:680 __unwind_start+0x5b9/0x760 arch/x86/kernel/unwind_orc.c:758 unwind_start arch/x86/include/asm/unwind.h:64 [inline] arch_stack_walk+0xe4/0x150 arch/x86/kernel/stacktrace.c:24 stack_trace_save+0x9c/0xe0 kernel/stacktrace.c:122 kasan_save_stack+0x3e/0x60 mm/kasan/common.c:47 kasan_record_aux_stack+0xbc/0xd0 mm/kasan/generic.c:548 task_work_add+0xb1/0x420 kernel/task_work.c:65 __fput_deferred+0xef/0x1f0 fs/file_table.c:526 fput_close+0x119/0x200 fs/file_table.c:582 filp_close+0x27/0x40 fs/open.c:1555 close_files fs/file.c:479 [inline] put_files_struct+0x1ba/0x350 fs/file.c:494 do_exit+0x888/0x2550 kernel/exit.c:948 do_group_exit+0x21c/0x2d0 kernel/exit.c:1102 get_signal+0x125e/0x1310 kernel/signal.c:3034 arch_do_signal_or_restart+0x95/0x780 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x8b/0x120 kernel/entry/common.c:218 do_syscall_64+0x103/0x210 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f819638e969 RSP: 002b:00007ffd847b3098 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 000000000002135b RCX: 00007f819638e969 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007f81965b7ba0 R08: 0000000000000001 R09: 0000000a847b338f R10: 00007f8196200000 R11: 0000000000000246 R12: 00007f81965b5fac R13: 00007f81965b5fa0 R14: ffffffffffffffff R15: 00007ffd847b31b0 </TASK> task:syz-executor state:R running task stack:22136 pid:5843 tgid:5843 ppid:5826 task_flags:0x400140 flags:0x00000000 Call Trace: <TASK> context_switch kernel/sched/core.c:5382 [inline] __schedule+0x16e2/0x4cd0 kernel/sched/core.c:6767 preempt_schedule_notrace+0xd1/0x110 kernel/sched/core.c:7040 preempt_schedule_notrace_thunk+0x16/0x30 arch/x86/entry/thunk.S:13 rcu_is_watching+0x7f/0xb0 kernel/rcu/tree.c:737 trace_lock_release include/trace/events/lock.h:69 [inline] lock_release+0x4b/0x3e0 kernel/locking/lockdep.c:5877 rcu_lock_release include/linux/rcupdate.h:341 [inline] rcu_read_unlock include/linux/rcupdate.h:871 [inline] class_rcu_destructor include/linux/rcupdate.h:1155 [inline] unwind_next_frame+0x19a9/0x2390 arch/x86/kernel/unwind_orc.c:680 arch_stack_walk+0x11c/0x150 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x9c/0xe0 kernel/stacktrace.c:122 save_stack+0xf7/0x1f0 mm/page_owner.c:156 __reset_page_owner+0x71/0x1f0 mm/page_owner.c:308 reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1258 [inline] __free_frozen_pages+0xb14/0xce0 mm/page_alloc.c:2721 discard_slab mm/slub.c:2716 [inline] __put_partials+0x161/0x1c0 mm/slub.c:3185 put_cpu_partial+0x17c/0x250 mm/slub.c:3260 __slab_free+0x2f7/0x400 mm/slub.c:4512 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_kmalloc+0x22/0xb0 mm/kasan/common.c:385 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4327 [inline] __kmalloc_noprof+0x27a/0x4f0 mm/slub.c:4339 kmalloc_noprof include/linux/slab.h:909 [inline] tomoyo_realpath_from_path+0xe3/0x5d0 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x213/0x4b0 security/tomoyo/file.c:822 security_inode_getattr+0x12f/0x330 security/security.c:2377 vfs_getattr fs/stat.c:256 [inline] vfs_fstat fs/stat.c:278 [inline] vfs_fstatat+0xad/0x160 fs/stat.c:370 __do_sys_newfstatat fs/stat.c:536 [inline] __se_sys_newfstatat fs/stat.c:530 [inline] __x64_sys_newfstatat+0x11c/0x1a0 fs/stat.c:530 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa7ed38d17a RSP: 002b:00007fffae24aec8 EFLAGS: 00000206 ORIG_RAX: 0000000000000106 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fa7ed38d17a RDX: 00007fffae24aed0 RSI: 00007fa7ed44d342 RDI: 0000000000000003 RBP: 00007fffae24aed0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001000 R11: 0000000000000206 R12: 00007fffae24c0d0 R13: 00007fa7ed41089d R14: 0000000000024873 R15: 00007fffae24c110 </TASK>