R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffd11112bff R14: 00007facd446f300 R15: 0000000000022000 ================================================================== BUG: KASAN: stack-out-of-bounds in init_module_from_file+0x630/0x6b0 Read of size 8 at addr ffff88804936fe20 by task syz-executor.6/28985 CPU: 1 PID: 28985 Comm: syz-executor.6 Not tainted 6.4.0-next-20230703 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0x91/0xf0 print_report+0xcc/0x620 kasan_report+0xbe/0xf0 init_module_from_file+0x630/0x6b0 __x64_sys_finit_module+0xee/0x160 do_syscall_64+0x3f/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 RIP: 0033:0x7f7c813a7b19 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7c7e91d188 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 RAX: ffffffffffffffda RBX: 00007f7c814baf60 RCX: 00007f7c813a7b19 RDX: 0000000000000001 RSI: 00000000200000c0 RDI: 0000000000000005 RBP: 00007f7c81401f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd4918a4cf R14: 00007f7c7e91d300 R15: 0000000000022000 The buggy address belongs to the physical page: page:00000000a998d7d2 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4936f flags: 0x100000000000000(node=0|zone=1) page_type: 0xffffffff() raw: 0100000000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88804936fd00: 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 ffff88804936fd80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88804936fe00: 00 00 f1 f1 f1 f1 00 00 00 f2 f2 f2 00 00 00 00 ^ ffff88804936fe80: 00 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 ffff88804936ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== general protection fault, probably for non-canonical address 0xdffffc6800000067: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: probably user-memory-access in range [0x0000034000000338-0x000003400000033f] CPU: 1 PID: 28985 Comm: syz-executor.6 Tainted: G B 6.4.0-next-20230703 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 RIP: 0010:init_module_from_file+0x1c1/0x6b0 Code: 0f 84 c4 01 00 00 e8 5e 36 12 00 4d 89 e7 49 83 ef 08 74 61 e8 50 36 12 00 4c 89 fa 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 5d 04 00 00 4d 3b 2f 0f 84 ae 00 00 00 e8 27 36 RSP: 0018:ffff8880470e7d28 EFLAGS: 00010212 RAX: dffffc0000000000 RBX: 0000000000000056 RCX: ffffc900045ec000 RDX: 0000006800000067 RSI: ffffffff813a30d0 RDI: ffff8880421016c0 RBP: ffff88801f3ea000 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffff88804936fe28 R13: ffff88804384d1f0 R14: ffffffff87b7bf50 R15: 0000034000000338 FS: 00007f7c7e91d700(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7c7e8db718 CR3: 0000000040c2e000 CR4: 0000000000350ee0 Call Trace: __x64_sys_finit_module+0xee/0x160 do_syscall_64+0x3f/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 RIP: 0033:0x7f7c813a7b19 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7c7e91d188 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 RAX: ffffffffffffffda RBX: 00007f7c814baf60 RCX: 00007f7c813a7b19 RDX: 0000000000000001 RSI: 00000000200000c0 RDI: 0000000000000005 RBP: 00007f7c81401f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd4918a4cf R14: 00007f7c7e91d300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:init_module_from_file+0x1c1/0x6b0 Code: 0f 84 c4 01 00 00 e8 5e 36 12 00 4d 89 e7 49 83 ef 08 74 61 e8 50 36 12 00 4c 89 fa 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 5d 04 00 00 4d 3b 2f 0f 84 ae 00 00 00 e8 27 36 RSP: 0018:ffff8880470e7d28 EFLAGS: 00010212 RAX: dffffc0000000000 RBX: 0000000000000056 RCX: ffffc900045ec000 RDX: 0000006800000067 RSI: ffffffff813a30d0 RDI: ffff8880421016c0 RBP: ffff88801f3ea000 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffff88804936fe28 R13: ffff88804384d1f0 R14: ffffffff87b7bf50 R15: 0000034000000338 FS: 00007f7c7e91d700(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7c7e8db718 CR3: 0000000040c2e000 CR4: 0000000000350ee0 note: syz-executor.6[28985] exited with preempt_count 1 IPv6: NLM_F_REPLACE set, but no existing node found! ---------------- Code disassembly (best guess): 0: 0f 84 c4 01 00 00 je 0x1ca 6: e8 5e 36 12 00 callq 0x123669 b: 4d 89 e7 mov %r12,%r15 e: 49 83 ef 08 sub $0x8,%r15 12: 74 61 je 0x75 14: e8 50 36 12 00 callq 0x123669 19: 4c 89 fa mov %r15,%rdx 1c: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 23: fc ff df 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 5d 04 00 00 jne 0x491 34: 4d 3b 2f cmp (%r15),%r13 37: 0f 84 ae 00 00 00 je 0xeb 3d: e8 .byte 0xe8 3e: 27 (bad) 3f: 36 ss