kswapd_shrink_node mm/vmscan.c:6765 [inline] balance_pgdat+0xc19/0x18f0 mm/vmscan.c:6957 kswapd+0x5ea/0xbf0 mm/vmscan.c:7226 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 ------------[ cut here ]------------ kernel BUG at include/linux/mm.h:1444! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 1 UID: 0 PID: 12343 Comm: syz.1.2570 Not tainted 6.12.0-rc1-syzkaller-00031-ge32cde8d2bd7 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:folio_get include/linux/mm.h:1444 [inline] RIP: 0010:get_page include/linux/mm.h:1450 [inline] RIP: 0010:iter_folioq_get_pages lib/iov_iter.c:1030 [inline] RIP: 0010:__iov_iter_get_pages_alloc+0x1d10/0x2230 lib/iov_iter.c:1201 Code: b0 8b 48 89 df e8 f0 23 4b fd 90 0f 0b 49 89 c5 e9 99 f6 ff ff e8 40 75 05 fd 48 c7 c6 a0 c6 b0 8b 4c 89 e7 e8 d1 23 4b fd 90 <0f> 0b e8 29 75 05 fd 4c 8b 64 24 48 49 83 ec 01 e9 94 fd ff ff 4c RSP: 0018:ffffc900044a6be8 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc9003ba04000 RDX: 0000000000040000 RSI: ffffffff84873a3f RDI: ffff88807787a884 RBP: ffffea0001b77a34 R08: 0000000000000001 R09: fffffbfff2d315c7 R10: ffffffff9698ae3f R11: ffff88802b528a40 R12: ffffea0001b77a00 R13: ffff888000dfb800 R14: 0000000000001000 R15: 0000000000001000 FS: 0000000000000000(0000) GS:ffff88802b500000(0063) knlGS:00000000f5715b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000020042000 CR3: 00000000541ba000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: iov_iter_get_pages_alloc2+0x53/0xf0 lib/iov_iter.c:1225 p9_get_mapped_pages.part.0.constprop.0+0x4ca/0x7d0 net/9p/trans_virtio.c:333 p9_get_mapped_pages net/9p/trans_virtio.c:318 [inline] p9_virtio_zc_request+0x991/0x1460 net/9p/trans_virtio.c:458 p9_client_zc_rpc.constprop.0+0x29a/0x880 net/9p/client.c:808 p9_client_read_once+0x443/0x820 net/9p/client.c:1560 p9_client_read+0x13f/0x1b0 net/9p/client.c:1524 v9fs_issue_read+0x115/0x310 fs/9p/vfs_addr.c:74 netfs_read_to_pagecache+0x5c9/0x9a0 fs/netfs/buffered_read.c:287 netfs_readahead+0x7fa/0xaa0 fs/netfs/buffered_read.c:437 read_pages+0x1a8/0xd80 mm/readahead.c:160 page_cache_ra_unbounded+0x3c0/0x6c0 mm/readahead.c:290 do_page_cache_ra mm/readahead.c:320 [inline] page_cache_ra_order+0x7d9/0xc90 mm/readahead.c:520 do_sync_mmap_readahead mm/filemap.c:3202 [inline] filemap_fault+0x148d/0x2820 mm/filemap.c:3343 __do_fault+0x10a/0x490 mm/memory.c:4876 do_shared_fault mm/memory.c:5346 [inline] do_fault mm/memory.c:5420 [inline] do_pte_missing+0x1a8/0x3e50 mm/memory.c:3965 handle_pte_fault mm/memory.c:5751 [inline] __handle_mm_fault+0x100a/0x2a10 mm/memory.c:5894 handle_mm_fault+0x3fa/0xaa0 mm/memory.c:6062 do_user_addr_fault+0x7a3/0x13f0 arch/x86/mm/fault.c:1389 handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x5c/0xc0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0010:copy_user_generic arch/x86/include/asm/uaccess_64.h:121 [inline] RIP: 0010:raw_copy_to_user arch/x86/include/asm/uaccess_64.h:142 [inline] RIP: 0010:_inline_copy_to_user include/linux/uaccess.h:188 [inline] RIP: 0010:_copy_to_user+0xa7/0xc0 lib/usercopy.c:26 Code: 89 ee 48 89 ef e8 39 1f 04 fd 4d 85 f6 75 b5 e8 7f 1d 04 fd 89 de 4c 89 e7 e8 a5 6d 65 fd 0f 01 cb 48 89 d9 48 89 ef 4c 89 e6 a4 0f 1f 00 0f 01 ca 48 89 cb eb 8d 66 66 2e 0f 1f 84 00 00 00 RSP: 0018:ffffc900044a7c40 EFLAGS: 00050246 RAX: 0000000000000001 RBX: 0000000000000008 RCX: 0000000000000008 RDX: fffff52000894f96 RSI: ffffc900044a7ca8 RDI: 0000000020042000 RBP: 0000000020042000 R08: 0000000000000000 R09: fffff52000894f95 R10: ffffc900044a7caf R11: 0000000000000000 R12: ffffc900044a7ca8 R13: 0000000020042008 R14: 0000000000000000 R15: 0000000020032680 copy_to_user include/linux/uaccess.h:216 [inline] msr_read+0x14f/0x250 arch/x86/kernel/msr.c:69 vfs_read+0x1ce/0xbd0 fs/read_write.c:567 ksys_read+0x12f/0x260 fs/read_write.c:712 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:386 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:411 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf744e579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f571556c EFLAGS: 00000296 ORIG_RAX: 0000000000000003 RAX: ffffffffffffffda RBX: 0000000000000009 RCX: 0000000020032680 RDX: 0000000000019000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:folio_get include/linux/mm.h:1444 [inline] RIP: 0010:get_page include/linux/mm.h:1450 [inline] RIP: 0010:iter_folioq_get_pages lib/iov_iter.c:1030 [inline] RIP: 0010:__iov_iter_get_pages_alloc+0x1d10/0x2230 lib/iov_iter.c:1201 Code: b0 8b 48 89 df e8 f0 23 4b fd 90 0f 0b 49 89 c5 e9 99 f6 ff ff e8 40 75 05 fd 48 c7 c6 a0 c6 b0 8b 4c 89 e7 e8 d1 23 4b fd 90 <0f> 0b e8 29 75 05 fd 4c 8b 64 24 48 49 83 ec 01 e9 94 fd ff ff 4c RSP: 0018:ffffc900044a6be8 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc9003ba04000 RDX: 0000000000040000 RSI: ffffffff84873a3f RDI: ffff88807787a884 RBP: ffffea0001b77a34 R08: 0000000000000001 R09: fffffbfff2d315c7 R10: ffffffff9698ae3f R11: ffff88802b528a40 R12: ffffea0001b77a00 R13: ffff888000dfb800 R14: 0000000000001000 R15: 0000000000001000 FS: 0000000000000000(0000) GS:ffff88802b500000(0063) knlGS:00000000f5715b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f72118e0 CR3: 00000000541ba000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 89 ee mov %ebp,%esi 2: 48 89 ef mov %rbp,%rdi 5: e8 39 1f 04 fd call 0xfd041f43 a: 4d 85 f6 test %r14,%r14 d: 75 b5 jne 0xffffffc4 f: e8 7f 1d 04 fd call 0xfd041d93 14: 89 de mov %ebx,%esi 16: 4c 89 e7 mov %r12,%rdi 19: e8 a5 6d 65 fd call 0xfd656dc3 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: eb 8d jmp 0xffffffc4 37: 66 data16 38: 66 data16 39: 2e cs 3a: 0f .byte 0xf 3b: 1f (bad) 3c: 84 00 test %al,(%rax)