__sys_setsockopt+0x1a0/0x230 net/socket.c:2385 __do_sys_setsockopt net/socket.c:2391 [inline] __se_sys_setsockopt net/socket.c:2388 [inline] __x64_sys_setsockopt+0xbd/0x160 net/socket.c:2388 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ kernel BUG at mm/filemap.c:870! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 2 UID: 0 PID: 8468 Comm: syz.3.724 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:__filemap_add_folio+0xf5b/0x11e0 mm/filemap.c:870 Code: 52 c7 ff 48 c7 c6 60 70 99 8b 4c 89 ef e8 bd 6b 11 00 90 0f 0b e8 e5 52 c7 ff 48 c7 c6 c0 70 99 8b 4c 89 ef e8 a6 6b 11 00 90 <0f> 0b e8 ce 52 c7 ff 90 0f 0b 90 e9 f2 fb ff ff e8 c0 52 c7 ff 48 RSP: 0018:ffffc900046876d8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888028c5a480 RSI: ffffffff81f5baca RDI: ffff888028c5a904 RBP: 0000000000112cc0 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff908204d7 R11: 0000000000000003 R12: 0000000000000002 R13: ffffea0001847380 R14: 0000000000000000 R15: 1ffff920008d0f05 FS: 00007f921ec836c0(0000) GS:ffff8880d6c08000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000000100 CR3: 0000000061d21000 CR4: 0000000000352ef0 Call Trace: filemap_add_folio+0x19a/0x610 mm/filemap.c:978 ra_alloc_folio mm/readahead.c:453 [inline] page_cache_ra_order+0x635/0xf20 mm/readahead.c:512 do_sync_mmap_readahead mm/filemap.c:3340 [inline] filemap_fault+0x1583/0x29a0 mm/filemap.c:3489 __do_fault+0x10d/0x490 mm/memory.c:5280 do_shared_fault mm/memory.c:5762 [inline] do_fault mm/memory.c:5836 [inline] do_pte_missing+0x1a6/0x3ba0 mm/memory.c:4361 handle_pte_fault mm/memory.c:6177 [inline] __handle_mm_fault+0x1556/0x2aa0 mm/memory.c:6318 handle_mm_fault+0x589/0xd10 mm/memory.c:6487 do_user_addr_fault+0x7a6/0x1370 arch/x86/mm/fault.c:1387 handle_page_fault arch/x86/mm/fault.c:1476 [inline] exc_page_fault+0x64/0xc0 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:618 RIP: 0010:__put_user_8+0xd/0x20 arch/x86/lib/putuser.S:115 Code: 89 01 31 c9 0f 01 ca c3 cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 48 89 cb 48 c1 fb 3f 48 09 d9 0f 01 cb <48> 89 01 31 c9 0f 01 ca e9 46 80 03 00 66 0f 1f 44 00 00 90 90 90 RSP: 0018:ffffc90004687ee0 EFLAGS: 00050206 RAX: 00007f921ec21000 RBX: 0000000000000000 RCX: 0000200000000100 RDX: 1ffff1100616b19d RSI: ffffffff8252c33e RDI: ffff888030b58ce8 RBP: 0000200000000100 R08: 0db44eaba27e7dd2 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffff888030b58cc0 R13: 00000000000007ff R14: 0000000000000000 R15: 0000000000000000 __do_sys_io_setup fs/aio.c:1402 [inline] __se_sys_io_setup fs/aio.c:1382 [inline] __x64_sys_io_setup+0x12b/0x210 fs/aio.c:1382 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f921dd8f6c9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f921ec83038 EFLAGS: 00000246 ORIG_RAX: 00000000000000ce RAX: ffffffffffffffda RBX: 00007f921dfe6180 RCX: 00007f921dd8f6c9 RDX: 0000000000000000 RSI: 0000200000000100 RDI: 00000000000007ff RBP: 00007f921de11f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f921dfe6218 R14: 00007f921dfe6180 R15: 00007ffc066a11d8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__filemap_add_folio+0xf5b/0x11e0 mm/filemap.c:870 Code: 52 c7 ff 48 c7 c6 60 70 99 8b 4c 89 ef e8 bd 6b 11 00 90 0f 0b e8 e5 52 c7 ff 48 c7 c6 c0 70 99 8b 4c 89 ef e8 a6 6b 11 00 90 <0f> 0b e8 ce 52 c7 ff 90 0f 0b 90 e9 f2 fb ff ff e8 c0 52 c7 ff 48 RSP: 0018:ffffc900046876d8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888028c5a480 RSI: ffffffff81f5baca RDI: ffff888028c5a904 RBP: 0000000000112cc0 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff908204d7 R11: 0000000000000003 R12: 0000000000000002 R13: ffffea0001847380 R14: 0000000000000000 R15: 1ffff920008d0f05 FS: 00007f921ec836c0(0000) GS:ffff8880d6c08000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000000100 CR3: 0000000061d21000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 89 01 mov %eax,(%rcx) 2: 31 c9 xor %ecx,%ecx 4: 0f 01 ca clac 7: c3 ret 8: cc int3 9: cc int3 a: cc int3 b: cc int3 c: 90 nop d: 90 nop e: 90 nop f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 48 89 cb mov %rcx,%rbx 20: 48 c1 fb 3f sar $0x3f,%rbx 24: 48 09 d9 or %rbx,%rcx 27: 0f 01 cb stac * 2a: 48 89 01 mov %rax,(%rcx) <-- trapping instruction 2d: 31 c9 xor %ecx,%ecx 2f: 0f 01 ca clac 32: e9 46 80 03 00 jmp 0x3807d 37: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1) 3d: 90 nop 3e: 90 nop 3f: 90 nop