smpboot_thread_fn+0x3d3/0xaa0 kernel/smpboot.c:160 kthread+0x370/0x450 kernel/kthread.c:467 ret_from_fork+0x754/0xd80 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 ------------[ cut here ]------------ kernel BUG at mm/filemap.c:858! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 1 UID: 0 PID: 6436 Comm: syz.7.14857 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:__filemap_add_folio+0xfcf/0x1280 mm/filemap.c:858 Code: 57 c5 ff 48 c7 c6 00 30 bd 8b 4c 89 ef e8 a9 3f 12 00 90 0f 0b e8 21 57 c5 ff 48 c7 c6 60 30 bd 8b 4c 89 ef e8 92 3f 12 00 90 <0f> 0b e8 0a 57 c5 ff 90 0f 0b 90 e9 4b fe ff ff e8 fc 56 c5 ff 90 RSP: 0018:ffffc900232772c0 EFLAGS: 00010246 RAX: 0000000000080000 RBX: 0000000000112cc0 RCX: ffffc9002dcc4000 RDX: 0000000000080000 RSI: ffffffff82558508 RDI: ffff8880467ba904 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000002 R13: ffffea0000b2c940 R14: 0000000000000000 R15: 1ffff9200464ee82 FS: 00007f69dc2e46c0(0000) GS:ffff8880d6448000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4ef9119e9c CR3: 000000004f737000 CR4: 0000000000352ef0 DR0: ffffffffffffffff DR1: 00000000000001f8 DR2: 0000000000000083 DR3: ffffffffefffff15 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: filemap_add_folio+0x1d8/0x690 mm/filemap.c:966 ra_alloc_folio mm/readahead.c:456 [inline] page_cache_ra_order+0x614/0xf30 mm/readahead.c:515 do_sync_mmap_readahead mm/filemap.c:3400 [inline] filemap_fault+0x191a/0x2eb0 mm/filemap.c:3549 __do_fault+0x10d/0x550 mm/memory.c:5363 do_shared_fault mm/memory.c:5862 [inline] do_fault+0x2db/0x1950 mm/memory.c:5936 do_pte_missing mm/memory.c:4477 [inline] handle_pte_fault mm/memory.c:6316 [inline] __handle_mm_fault+0x180f/0x2b60 mm/memory.c:6454 handle_mm_fault+0x36d/0xa20 mm/memory.c:6623 do_user_addr_fault+0x74c/0x12f0 arch/x86/mm/fault.c:1385 handle_page_fault arch/x86/mm/fault.c:1474 [inline] exc_page_fault+0x6f/0xd0 arch/x86/mm/fault.c:1527 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:618 RIP: 0010:copy_user_generic arch/x86/include/asm/uaccess_64.h:126 [inline] RIP: 0010:raw_copy_to_user arch/x86/include/asm/uaccess_64.h:147 [inline] RIP: 0010:_inline_copy_to_user include/linux/uaccess.h:206 [inline] RIP: 0010:_copy_to_user+0x9f/0xd0 lib/usercopy.c:26 Code: 89 ee 48 89 ef e8 71 24 13 fd 4d 85 ff 75 26 e8 47 2a 13 fd 89 de 4c 89 e7 e8 4d 8f 7f fd 0f 01 cb 48 89 d9 48 89 ef 4c 89 e6 a4 0f 1f 00 0f 01 ca 48 89 cb e8 21 2a 13 fd 48 89 d8 5b 5d 41 RSP: 0018:ffffc90023277a98 EFLAGS: 00050246 RAX: 0000000000000001 RBX: 0000000000000040 RCX: 0000000000000040 RDX: 0000000000000001 RSI: ffffc90023277be0 RDI: 0000200000371000 RBP: 0000200000371000 R08: 0000000000000000 R09: fffff5200464ef83 R10: ffffc90023277c1f R11: 0000000000000000 R12: ffffc90023277be0 R13: 0000200000371040 R14: 00007ffffffff000 R15: 0000000000000000 copy_to_user include/linux/uaccess.h:236 [inline] do_pages_stat+0x5a9/0x850 mm/migrate.c:2516 kernel_move_pages+0xfb6/0x1490 mm/migrate.c:2595 __do_sys_move_pages mm/migrate.c:2606 [inline] __se_sys_move_pages mm/migrate.c:2601 [inline] __x64_sys_move_pages+0xe0/0x1c0 mm/migrate.c:2601 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f69db39c629 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f69dc2e4028 EFLAGS: 00000246 ORIG_RAX: 0000000000000117 RAX: ffffffffffffffda RBX: 00007f69db615fa0 RCX: 00007f69db39c629 RDX: 0000200000000080 RSI: 20000000000000fe RDI: 0000000000000000 RBP: 00007f69db432b39 R08: 00002000000000c0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f69db616038 R14: 00007f69db615fa0 R15: 00007ffd65a4d218 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__filemap_add_folio+0xfcf/0x1280 mm/filemap.c:858 Code: 57 c5 ff 48 c7 c6 00 30 bd 8b 4c 89 ef e8 a9 3f 12 00 90 0f 0b e8 21 57 c5 ff 48 c7 c6 60 30 bd 8b 4c 89 ef e8 92 3f 12 00 90 <0f> 0b e8 0a 57 c5 ff 90 0f 0b 90 e9 4b fe ff ff e8 fc 56 c5 ff 90 RSP: 0018:ffffc900232772c0 EFLAGS: 00010246 RAX: 0000000000080000 RBX: 0000000000112cc0 RCX: ffffc9002dcc4000 RDX: 0000000000080000 RSI: ffffffff82558508 RDI: ffff8880467ba904 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000002 R13: ffffea0000b2c940 R14: 0000000000000000 R15: 1ffff9200464ee82 FS: 00007f69dc2e46c0(0000) GS:ffff8880d6348000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007feb76cffe9c CR3: 000000004f737000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 89 ee mov %ebp,%esi 2: 48 89 ef mov %rbp,%rdi 5: e8 71 24 13 fd call 0xfd13247b a: 4d 85 ff test %r15,%r15 d: 75 26 jne 0x35 f: e8 47 2a 13 fd call 0xfd132a5b 14: 89 de mov %ebx,%esi 16: 4c 89 e7 mov %r12,%rdi 19: e8 4d 8f 7f fd call 0xfd7f8f6b 1e: 0f 01 cb stac 21: 48 89 d9 mov %rbx,%rcx 24: 48 89 ef mov %rbp,%rdi 27: 4c 89 e6 mov %r12,%rsi * 2a: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) <-- trapping instruction 2c: 0f 1f 00 nopl (%rax) 2f: 0f 01 ca clac 32: 48 89 cb mov %rcx,%rbx 35: e8 21 2a 13 fd call 0xfd132a5b 3a: 48 89 d8 mov %rbx,%rax 3d: 5b pop %rbx 3e: 5d pop %rbp 3f: 41 rex.B