BUG: sleeping function called from invalid context at include/linux/mmu_notifier.h:454 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 93534, name: syz-executor.7 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 1 lock held by syz-executor.7/93534: #0: ffff888040021658 (&mm->mmap_lock#2){++++}-{3:3}, at: do_user_addr_fault+0x346/0x1320 Preemption disabled at: [] get_page_from_freelist+0x426/0x2ad0 CPU: 1 PID: 93534 Comm: syz-executor.7 Not tainted 5.19.0-rc2-next-20220614 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: dump_stack_lvl+0x8b/0xb3 __might_resched.cold+0x222/0x26b wp_page_copy+0x67c/0x26f0 do_wp_page+0x198/0x29a0 __handle_mm_fault+0x1202/0x3650 handle_mm_fault+0x2e6/0xa20 do_user_addr_fault+0x54a/0x1320 exc_page_fault+0xa2/0x1a0 asm_exc_page_fault+0x27/0x30 RIP: 0033:0x7fc2527fe352 Code: e8 b3 64 ff ff 41 39 5c 24 2c 7f d4 31 c0 48 8d 3d 9d 2b 0b 00 e8 9e 64 ff ff 48 8b 04 24 c7 44 24 10 ff ff ff ff 44 8b 60 78 80 b8 00 00 00 00 45 85 e4 7e 7c 80 3d 9b 0c 57 00 00 0f 85 85 RSP: 002b:00007fc24fdcd1a0 EFLAGS: 00010202 RAX: 00007fc25296af60 RBX: 0000000000000003 RCX: 00007fc2528ba39b RDX: 000000000009cafc RSI: 0000000020000100 RDI: 00007fc2528b0eda RBP: 00007fc2528b1f6d R08: 00000000000002d2 R09: 00007fffd33f6080 R10: 00007fffd33f6090 R11: 000000000014b486 R12: 0000000000000000 R13: 00007fffd33d4d6f R14: 00007fc24fdcd300 R15: 0000000000022000 BUG: scheduling while atomic: syz-executor.7/93534/0x00000002 no locks held by syz-executor.7/93534. Modules linked in: Preemption disabled at: [] get_page_from_freelist+0x426/0x2ad0 CPU: 1 PID: 93534 Comm: syz-executor.7 Tainted: G W 5.19.0-rc2-next-20220614 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: dump_stack_lvl+0x8b/0xb3 __schedule_bug.cold+0x133/0x143 __schedule+0x18e6/0x2470 schedule+0xd2/0x1f0 exit_to_user_mode_prepare+0x114/0x1a0 irqentry_exit_to_user_mode+0x5/0x30 exc_page_fault+0xca/0x1a0 asm_exc_page_fault+0x27/0x30 RIP: 0033:0x7fc2527fe352 Code: e8 b3 64 ff ff 41 39 5c 24 2c 7f d4 31 c0 48 8d 3d 9d 2b 0b 00 e8 9e 64 ff ff 48 8b 04 24 c7 44 24 10 ff ff ff ff 44 8b 60 78 80 b8 00 00 00 00 45 85 e4 7e 7c 80 3d 9b 0c 57 00 00 0f 85 85 RSP: 002b:00007fc24fdcd1a0 EFLAGS: 00010202 RAX: 00007fc25296af60 RBX: 0000000000000003 RCX: 00007fc2528ba39b RDX: 000000000009cafc RSI: 0000000020000100 RDI: 00007fc2528b0eda RBP: 00007fc2528b1f6d R08: 00000000000002d2 R09: 00007fffd33f6080 R10: 00007fffd33f6090 R11: 000000000014b486 R12: 0000000000000000 R13: 00007fffd33d4d6f R14: 00007fc24fdcd300 R15: 0000000000022000 BUG: scheduling while atomic: syz-executor.7/93534/0x00000002 no locks held by syz-executor.7/93534. Modules linked in: Preemption disabled at: [] get_page_from_freelist+0x426/0x2ad0 CPU: 1 PID: 93534 Comm: syz-executor.7 Tainted: G W 5.19.0-rc2-next-20220614 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: dump_stack_lvl+0x8b/0xb3 __schedule_bug.cold+0x133/0x143 __schedule+0x18e6/0x2470 schedule+0xd2/0x1f0 exit_to_user_mode_prepare+0x114/0x1a0 syscall_exit_to_user_mode+0x19/0x40 do_syscall_64+0x48/0x90 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7fc25280a72b Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44 RSP: 002b:00007fc24fdcc0e0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 00007fc25296af60 RCX: 00007fc25280a72b RDX: 0000000000001000 RSI: 00007fc24fdcc160 RDI: 0000000000000005 RBP: 000000000000001c R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000005 R13: 00007fffd33d4d6f R14: 00007fc24fdcd300 R15: 0000000000022000 syz-executor.7: page allocation failure: order:7, mode:0x40cc0(GFP_KERNEL|__GFP_COMP), nodemask=(null),cpuset=syz7,mems_allowed=0 CPU: 0 PID: 93534 Comm: syz-executor.7 Tainted: G W 5.19.0-rc2-next-20220614 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: dump_stack_lvl+0x8b/0xb3 warn_alloc.cold+0x95/0x18a __alloc_pages_slowpath.constprop.0+0x1abd/0x1f90 __alloc_pages+0x421/0x4f0 alloc_pages+0x1a0/0x2f0 kmalloc_order+0x30/0xd0 kmalloc_order_trace+0x14/0xf0 relay_open_buf.part.0+0xf9/0xc00 relay_open+0x4ec/0x970 do_blk_trace_setup+0x4bc/0xb60 __blk_trace_setup+0xca/0x180 blk_trace_setup+0x43/0x60 sg_ioctl+0x6a8/0x2820 __x64_sys_ioctl+0x196/0x210 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7fc252857b19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc24fdcd188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fc25296af60 RCX: 00007fc252857b19 RDX: 0000000020000000 RSI: 00000000c0481273 RDI: 0000000000000007 RBP: 00007fc2528b1f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffd33d4d6f R14: 00007fc24fdcd300 R15: 0000000000022000 Mem-Info: active_anon:81 inactive_anon:49123 isolated_anon:0 active_file:17828 inactive_file:48641 isolated_file:41 unevictable:0 dirty:20 writeback:21 slab_reclaimable:11002 slab_unreclaimable:69806 mapped:81839 shmem:136 pagetables:5869 bounce:0 kernel_misc_reclaimable:0 free:7426 free_pcp:240 free_cma:0 Node 0 active_anon:324kB inactive_anon:196492kB active_file:71312kB inactive_file:194564kB unevictable:0kB isolated(anon):0kB isolated(file):164kB mapped:327356kB dirty:80kB writeback:84kB shmem:544kB writeback_tmp:0kB kernel_stack:9536kB pagetables:23476kB all_unreclaimable? no Node 0 DMA free:6500kB boost:0kB min:44kB low:56kB high:68kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:92kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15360kB mlocked:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: 0 1615 1615 1615 Node 0 DMA32 free:23204kB boost:12636kB min:17756kB low:19408kB high:21060kB reserved_highatomic:2048KB active_anon:240kB inactive_anon:196240kB active_file:70976kB inactive_file:194948kB unevictable:0kB writepending:164kB present:2080640kB managed:1658240kB mlocked:0kB bounce:0kB free_pcp:960kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: 0 0 0 0 Node 0 DMA: 3*4kB (M) 1*8kB (M) 1*16kB (M) 0*32kB 1*64kB (U) 2*128kB (UM) 2*256kB (UM) 1*512kB (M) 1*1024kB (M) 0*2048kB 1*4096kB (E) = 6500kB Node 0 DMA32: 1112*4kB (UMEH) 318*8kB (UMEH) 294*16kB (MEH) 177*32kB (UMH) 72*64kB (UMH) 6*128kB (M) 3*256kB (M) 0*512kB 0*1024kB 0*2048kB 0*4096kB = 23504kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB 49240 total pagecache pages 0 pages in swap cache Free swap = 0kB Total swap = 0kB 524158 pages RAM 0 pages HighMem/MovableOnly 105758 pages reserved BUG: scheduling while atomic: kcompactd0/31/0x00000002 no locks held by kcompactd0/31. Modules linked in: Preemption disabled at: [] free_unref_page+0x1e5/0x440 CPU: 1 PID: 31 Comm: kcompactd0 Tainted: G W 5.19.0-rc2-next-20220614 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: dump_stack_lvl+0x8b/0xb3 __schedule_bug.cold+0x133/0x143 __schedule+0x18e6/0x2470 schedule+0xd2/0x1f0 schedule_timeout+0x143/0x280 kcompactd+0x97f/0xe00 kthread+0x2f2/0x3b0 ret_from_fork+0x22/0x30 BUG: scheduling while atomic: kcompactd0/31/0x00000003 no locks held by kcompactd0/31. Modules linked in: Preemption disabled at: [] free_unref_page+0x1e5/0x440 CPU: 1 PID: 31 Comm: kcompactd0 Tainted: G W 5.19.0-rc2-next-20220614 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: dump_stack_lvl+0x8b/0xb3 __schedule_bug.cold+0x133/0x143 __schedule+0x18e6/0x2470 schedule+0xd2/0x1f0 schedule_timeout+0x143/0x280 kcompactd+0x97f/0xe00 kthread+0x2f2/0x3b0 ret_from_fork+0x22/0x30 BUG: scheduling while atomic: syz-executor.2/93408/0x00000002 no locks held by syz-executor.2/93408. Modules linked in: Preemption disabled at: [] free_unref_page+0x1e5/0x440 CPU: 0 PID: 93408 Comm: syz-executor.2 Tainted: G W 5.19.0-rc2-next-20220614 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: dump_stack_lvl+0x8b/0xb3 __schedule_bug.cold+0x133/0x143 __schedule+0x18e6/0x2470 schedule+0xd2/0x1f0 exit_to_user_mode_prepare+0x114/0x1a0 syscall_exit_to_user_mode+0x19/0x40 do_syscall_64+0x48/0x90 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7f38751cab19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3872740188 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: fffffffffffffff4 RBX: 00007f38752ddf60 RCX: 00007f38751cab19 RDX: 0000000000000005 RSI: 0000000000000107 RDI: 0000000000000005 RBP: 00007f3875224f6d R08: 0000000000000010 R09: 0000000000000000 R10: 0000000020000100 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd3f4bd1ff R14: 00007f3872740300 R15: 0000000000022000