__fput+0x513/0xb60 fs/file_table.c:439 task_work_run+0x14e/0x250 kernel/task_work.c:228 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0xaa3/0x2bb0 kernel/exit.c:882 do_group_exit+0xd3/0x2a0 kernel/exit.c:1031 get_signal+0x2726/0x27a0 kernel/signal.c:2936 ------------[ cut here ]------------ kernel BUG at include/linux/mm.h:1462! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 2 UID: 0 PID: 7620 Comm: syz.0.686 Not tainted 6.11.0-syzkaller-07341-gbaeb9a7d8b60 #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:1462 [inline] RIP: 0010:get_page include/linux/mm.h:1468 [inline] RIP: 0010:iter_folioq_get_pages lib/iov_iter.c:1030 [inline] RIP: 0010:__iov_iter_get_pages_alloc+0x1d1e/0x2240 lib/iov_iter.c:1201 Code: b0 8b 48 89 df e8 f2 d8 4d fd 90 0f 0b 49 89 c5 e9 99 f6 ff ff e8 02 2e 09 fd 48 c7 c6 60 84 b0 8b 4c 89 e7 e8 d3 d8 4d fd 90 <0f> 0b e8 eb 2d 09 fd 4c 8b 64 24 48 49 83 ec 01 e9 94 fd ff ff 4c RSP: 0018:ffffc9000610efd8 EFLAGS: 00010287 RAX: 000000000003359f RBX: 0000000000000001 RCX: ffffc90003899000 RDX: 0000000000040000 RSI: ffffffff8483003d RDI: ffff88802487ccc4 RBP: ffffea0001b84334 R08: 0000000000000001 R09: fffffbfff2d2bcfc R10: ffffffff9695e7e7 R11: ffff88802b828a40 R12: ffffea0001b84300 R13: ffff88802198d400 R14: 0000000000001000 R15: 0000000000001000 FS: 0000000000000000(0000) GS:ffff88802b800000(0063) knlGS:00000000f5686b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000020001000 CR3: 000000005413c000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 000000000000000e DR6: 00000000ffff0ff0 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+0x1ac/0x1460 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:223 netfs_issue_write fs/netfs/write_issue.c:250 [inline] netfs_advance_write fs/netfs/write_issue.c:291 [inline] netfs_advance_write+0x384/0xbd0 fs/netfs/write_issue.c:259 netfs_write_folio+0xc44/0x18f0 fs/netfs/write_issue.c:469 netfs_writepages+0x2ba/0xb90 fs/netfs/write_issue.c:541 do_writepages+0x1a3/0x7f0 mm/page-writeback.c:2683 filemap_fdatawrite_wbc mm/filemap.c:397 [inline] filemap_fdatawrite_wbc+0x148/0x1c0 mm/filemap.c:387 __filemap_fdatawrite_range+0xba/0x100 mm/filemap.c:430 v9fs_dir_release+0x429/0x590 fs/9p/vfs_dir.c:219 __fput+0x3f6/0xb60 fs/file_table.c:431 task_work_run+0x14e/0x250 kernel/task_work.c:228 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [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+0x27b/0x2a0 kernel/entry/common.c:218 __do_fast_syscall_32+0x80/0x120 arch/x86/entry/common.c:389 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:411 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf739e579 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:00000000f568656c EFLAGS: 00000296 ORIG_RAX: 000000000000014a RAX: 0000000000000003 RBX: 0000000000000004 RCX: 0000000000000003 RDX: 0000000000000000 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:1462 [inline] RIP: 0010:get_page include/linux/mm.h:1468 [inline] RIP: 0010:iter_folioq_get_pages lib/iov_iter.c:1030 [inline] RIP: 0010:__iov_iter_get_pages_alloc+0x1d1e/0x2240 lib/iov_iter.c:1201 Code: b0 8b 48 89 df e8 f2 d8 4d fd 90 0f 0b 49 89 c5 e9 99 f6 ff ff e8 02 2e 09 fd 48 c7 c6 60 84 b0 8b 4c 89 e7 e8 d3 d8 4d fd 90 <0f> 0b e8 eb 2d 09 fd 4c 8b 64 24 48 49 83 ec 01 e9 94 fd ff ff 4c RSP: 0018:ffffc9000610efd8 EFLAGS: 00010287 RAX: 000000000003359f RBX: 0000000000000001 RCX: ffffc90003899000 RDX: 0000000000040000 RSI: ffffffff8483003d RDI: ffff88802487ccc4 RBP: ffffea0001b84334 R08: 0000000000000001 R09: fffffbfff2d2bcfc R10: ffffffff9695e7e7 R11: ffff88802b828a40 R12: ffffea0001b84300 R13: ffff88802198d400 R14: 0000000000001000 R15: 0000000000001000 FS: 0000000000000000(0000) GS:ffff88802b900000(0063) knlGS:00000000f5686b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00007ff75347f310 CR3: 000000005413c000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 00000000872c9164 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 10 06 adc %al,(%rsi) 2: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 6: 10 07 adc %al,(%rdi) 8: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi c: 10 08 adc %cl,(%rax) e: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1e: 00 51 52 add %dl,0x52(%rcx) 21: 55 push %rbp 22: 89 e5 mov %esp,%ebp 24: 0f 34 sysenter 26: cd 80 int $0x80 * 28: 5d pop %rbp <-- trapping instruction 29: 5a pop %rdx 2a: 59 pop %rcx 2b: c3 ret 2c: 90 nop 2d: 90 nop 2e: 90 nop 2f: 90 nop 30: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 37: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi