__do_sys_munmap mm/mmap.c:1617 [inline] __se_sys_munmap mm/mmap.c:1614 [inline] __ia32_sys_munmap+0x5f/0x90 mm/mmap.c:1614 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 ------------[ cut here ]------------ kernel BUG at include/linux/mm.h:1444! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 2 UID: 0 PID: 6597 Comm: syz.2.453 Not tainted 6.12.0-rc1-syzkaller #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 90 25 4b fd 90 0f 0b 49 89 c5 e9 99 f6 ff ff e8 e0 76 05 fd 48 c7 c6 60 c6 b0 8b 4c 89 e7 e8 71 25 4b fd 90 <0f> 0b e8 c9 76 05 fd 4c 8b 64 24 48 49 83 ec 01 e9 94 fd ff ff 4c RSP: 0018:ffffc9000c5eebd8 EFLAGS: 00010287 RAX: 000000000002cd78 RBX: 0000000000000000 RCX: ffffc90003711000 RDX: 0000000000040000 RSI: ffffffff8487389f RDI: ffff888022ebccc4 RBP: ffffea0000ad3034 R08: 0000000000000001 R09: fffffbfff2d315b7 R10: ffffffff9698adbf R11: 1ffffffff1bb8559 R12: ffffea0000ad3000 R13: ffff8880252d9c00 R14: 0000000000001000 R15: 0000000000001000 FS: 0000000000000000(0000) GS:ffff88802b600000(0063) knlGS:00000000f56e6b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000020000100 CR3: 0000000061c2a000 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_read_fault mm/memory.c:5282 [inline] do_fault mm/memory.c:5416 [inline] do_pte_missing+0xea8/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_from_user arch/x86/include/asm/uaccess_64.h:136 [inline] RIP: 0010:_inline_copy_from_user include/linux/uaccess.h:170 [inline] RIP: 0010:_copy_from_user+0xc1/0xf0 lib/usercopy.c:18 Code: 89 df e8 c2 21 04 fd 4d 85 f6 75 9e e8 08 20 04 fd 0f ae e8 89 ee 4c 89 ef e8 5b 70 65 fd 0f 01 cb 48 89 e9 4c 89 ef 48 89 de a4 0f 1f 00 48 89 cb 0f 01 ca e9 73 ff ff ff e8 da 1f 04 fd 48 RSP: 0018:ffffc9000c5efc38 EFLAGS: 00050246 RAX: 0000000000000001 RBX: 0000000020000100 RCX: 0000000000000018 RDX: fffff520018bdfa1 RSI: 0000000020000100 RDI: ffffc9000c5efcf0 RBP: 0000000000000018 R08: 0000000000000001 R09: fffff520018bdfa0 R10: ffffc9000c5efd07 R11: 00000000000a201e R12: 0000000020000118 R13: ffffc9000c5efcf0 R14: 0000000000000000 R15: ffffffff8c945500 copy_from_user include/linux/uaccess.h:203 [inline] __rfcomm_create_dev net/bluetooth/rfcomm/tty.c:397 [inline] rfcomm_create_dev net/bluetooth/rfcomm/tty.c:485 [inline] rfcomm_dev_ioctl+0xa0e/0x1e70 net/bluetooth/rfcomm/tty.c:584 rfcomm_sock_ioctl net/bluetooth/rfcomm/sock.c:869 [inline] rfcomm_sock_compat_ioctl+0xba/0xe0 net/bluetooth/rfcomm/sock.c:882 compat_sock_ioctl+0x17b/0x7e0 net/socket.c:3539 __do_compat_sys_ioctl+0x259/0x2b0 fs/ioctl.c:1007 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:0xf7f61579 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:00000000f56e656c EFLAGS: 00000296 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00000000400452c8 RDX: 0000000020000100 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 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 90 25 4b fd 90 0f 0b 49 89 c5 e9 99 f6 ff ff e8 e0 76 05 fd 48 c7 c6 60 c6 b0 8b 4c 89 e7 e8 71 25 4b fd 90 <0f> 0b e8 c9 76 05 fd 4c 8b 64 24 48 49 83 ec 01 e9 94 fd ff ff 4c RSP: 0018:ffffc9000c5eebd8 EFLAGS: 00010287 RAX: 000000000002cd78 RBX: 0000000000000000 RCX: ffffc90003711000 RDX: 0000000000040000 RSI: ffffffff8487389f RDI: ffff888022ebccc4 RBP: ffffea0000ad3034 R08: 0000000000000001 R09: fffffbfff2d315b7 R10: ffffffff9698adbf R11: 1ffffffff1bb8559 R12: ffffea0000ad3000 R13: ffff8880252d9c00 R14: 0000000000001000 R15: 0000000000001000 FS: 0000000000000000(0000) GS:ffff88802b600000(0063) knlGS:00000000f56e6b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000020000100 CR3: 0000000061c2a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 89 df mov %ebx,%edi 2: e8 c2 21 04 fd call 0xfd0421c9 7: 4d 85 f6 test %r14,%r14 a: 75 9e jne 0xffffffaa c: e8 08 20 04 fd call 0xfd042019 11: 0f ae e8 lfence 14: 89 ee mov %ebp,%esi 16: 4c 89 ef mov %r13,%rdi 19: e8 5b 70 65 fd call 0xfd657079 1e: 0f 01 cb stac 21: 48 89 e9 mov %rbp,%rcx 24: 4c 89 ef mov %r13,%rdi 27: 48 89 de mov %rbx,%rsi * 2a: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) <-- trapping instruction 2c: 0f 1f 00 nopl (%rax) 2f: 48 89 cb mov %rcx,%rbx 32: 0f 01 ca clac 35: e9 73 ff ff ff jmp 0xffffffad 3a: e8 da 1f 04 fd call 0xfd042019 3f: 48 rex.W