arch_do_signal_or_restart+0x90/0x7e0 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:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ kernel BUG at include/linux/mm.h:1444! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5861 Comm: syz.2.121 Not tainted 6.12.0-rc1-syzkaller-00042-gf23aa4c0761a #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: d1 8b 48 89 df e8 c0 6a 45 fd 90 0f 0b 49 89 c5 e9 99 f6 ff ff e8 10 aa ff fc 48 c7 c6 40 3b d1 8b 4c 89 e7 e8 a1 6a 45 fd 90 <0f> 0b e8 f9 a9 ff fc 4c 8b 64 24 48 49 83 ec 01 e9 94 fd ff ff 4c RSP: 0018:ffffc9000617eeb0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888049be8000 RSI: ffffffff848ddeef RDI: ffff888049be8444 RBP: ffffea0001a9e734 R08: 0000000000000001 R09: fffffbfff2dc49b1 R10: ffffffff96e24d8f R11: 000000000000000c R12: ffffea0001a9e700 R13: ffff8880307e1c00 R14: 0000000000001000 R15: 0000000000001000 FS: 0000000000000000(0000) GS:ffff88806a600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f47522aff98 CR3: 0000000027fd0000 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+0x1be/0x1390 net/9p/trans_virtio.c:439 p9_client_zc_rpc.constprop.0+0x29a/0x880 net/9p/client.c:808 p9_client_write+0x447/0x680 net/9p/client.c:1631 v9fs_issue_write+0xe2/0x180 fs/9p/vfs_addr.c:59 netfs_do_issue_write+0x92/0x110 fs/netfs/write_issue.c:233 netfs_issue_write fs/netfs/write_issue.c:260 [inline] netfs_advance_write+0x164/0xc80 fs/netfs/write_issue.c:284 netfs_write_folio+0xc19/0x1930 fs/netfs/write_issue.c:485 netfs_writepages+0x2ba/0xb90 fs/netfs/write_issue.c:557 do_writepages+0x1a3/0x7f0 mm/page-writeback.c:2683 filemap_fdatawrite_wbc mm/filemap.c:398 [inline] filemap_fdatawrite_wbc+0x148/0x1c0 mm/filemap.c:388 v9fs_mmap_vm_close+0x1ff/0x250 fs/9p/vfs_file.c:502 remove_vma+0xa8/0x1a0 mm/vma.c:330 exit_mmap+0x4e0/0xb30 mm/mmap.c:1888 __mmput+0x12a/0x480 kernel/fork.c:1347 mmput+0x62/0x70 kernel/fork.c:1369 exit_mm kernel/exit.c:571 [inline] do_exit+0x9bf/0x2d70 kernel/exit.c:926 __do_sys_exit kernel/exit.c:1055 [inline] __se_sys_exit kernel/exit.c:1053 [inline] __x64_sys_exit+0x42/0x50 kernel/exit.c:1053 x64_sys_call+0x14ae/0x16a0 arch/x86/include/generated/asm/syscalls_64.h:61 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f475157dff9 Code: Unable to access opcode bytes at 0x7f475157dfcf. RSP: 002b:00007f475228efe8 EFLAGS: 00000246 ORIG_RAX: 000000000000003c RAX: ffffffffffffffda RBX: 00007f4751736058 RCX: 00007f475157dff9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007f47515f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f4751736058 R15: 00007ffe49aa18e8 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: d1 8b 48 89 df e8 c0 6a 45 fd 90 0f 0b 49 89 c5 e9 99 f6 ff ff e8 10 aa ff fc 48 c7 c6 40 3b d1 8b 4c 89 e7 e8 a1 6a 45 fd 90 <0f> 0b e8 f9 a9 ff fc 4c 8b 64 24 48 49 83 ec 01 e9 94 fd ff ff 4c RSP: 0018:ffffc9000617eeb0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888049be8000 RSI: ffffffff848ddeef RDI: ffff888049be8444 RBP: ffffea0001a9e734 R08: 0000000000000001 R09: fffffbfff2dc49b1 R10: ffffffff96e24d8f R11: 000000000000000c R12: ffffea0001a9e700 R13: ffff8880307e1c00 R14: 0000000000001000 R15: 0000000000001000 FS: 0000000000000000(0000) GS:ffff88806a600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f47522aff98 CR3: 000000002716a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400