sr 1:0:0:0: [sr0] tag#0 unaligned transfer sr 1:0:0:0: [sr0] tag#0 unaligned transfer sr 1:0:0:0: [sr0] tag#0 unaligned transfer ================================================================== BUG: KASAN: stack-out-of-bounds in init_module_from_file+0x66d/0x6b0 Read of size 8 at addr ffff8880473c7e28 by task syz-executor.0/9019 CPU: 0 PID: 9019 Comm: syz-executor.0 Not tainted 6.4.0-next-20230630 #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+0x66d/0x6b0 __x64_sys_finit_module+0xee/0x160 do_syscall_64+0x3f/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 RIP: 0033:0x7fab59eb4b19 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:00007fab573c7188 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 RAX: ffffffffffffffda RBX: 00007fab59fc81a0 RCX: 00007fab59eb4b19 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000005 RBP: 00007fab59f0ef6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe36fe92af R14: 00007fab573c7300 R15: 0000000000022000 The buggy address belongs to the physical page: page:00000000f59edda8 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x473c7 flags: 0x100000000000000(node=0|zone=1) page_type: 0xffffffff() raw: 0100000000000000 0000000000000000 ffffea00011cf1c8 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880473c7d00: 00 f1 f1 f1 f1 00 00 00 f2 f2 f2 00 00 00 00 00 ffff8880473c7d80: f2 f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 00 00 >ffff8880473c7e00: 00 00 00 00 00 f3 f3 f3 f3 00 00 00 00 00 00 00 ^ ffff8880473c7e80: 00 00 00 00 00 f1 f1 f1 f1 00 f3 f3 f3 00 00 00 ffff8880473c7f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== BUG: unable to handle page fault for address: fffffffffffffffd #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 5485067 P4D 5485067 PUD 5487067 PMD 0 Oops: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 PID: 9019 Comm: syz-executor.0 Tainted: G B 6.4.0-next-20230630 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 RIP: 0010:init_module_from_file+0x1cb/0x6b0 Code: 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 12 00 49 8d 7f 08 48 b8 00 00 RSP: 0018:ffff888043f27d28 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: 000000000000002d RCX: ffffc90002773000 RDX: 1fffffffffffffff RSI: ffffffff813a30f0 RDI: 0000000000000007 RBP: ffff888040bcd680 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: fffffffffffd8938 R12: ffff8880473c7e28 R13: ffff888008c2de08 R14: ffffffff87b7be08 R15: fffffffffffffffd FS: 00007fab573c7700(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffffffffffffffd CR3: 000000000e570000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 Call Trace: __x64_sys_finit_module+0xee/0x160 do_syscall_64+0x3f/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 RIP: 0033:0x7fab59eb4b19 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:00007fab573c7188 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 RAX: ffffffffffffffda RBX: 00007fab59fc81a0 RCX: 00007fab59eb4b19 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000005 RBP: 00007fab59f0ef6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe36fe92af R14: 00007fab573c7300 R15: 0000000000022000 Modules linked in: CR2: fffffffffffffffd ---[ end trace 0000000000000000 ]--- RIP: 0010:init_module_from_file+0x1cb/0x6b0 Code: 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 12 00 49 8d 7f 08 48 b8 00 00 RSP: 0018:ffff888043f27d28 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: 000000000000002d RCX: ffffc90002773000 RDX: 1fffffffffffffff RSI: ffffffff813a30f0 RDI: 0000000000000007 RBP: ffff888040bcd680 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: fffffffffffd8938 R12: ffff8880473c7e28 R13: ffff888008c2de08 R14: ffffffff87b7be08 R15: fffffffffffffffd FS: 00007fab573c7700(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffffffffffffffd CR3: 000000000e570000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 note: syz-executor.0[9019] exited with irqs disabled note: syz-executor.0[9019] exited with preempt_count 1 sr 1:0:0:0: [sr0] tag#0 unaligned transfer sr 1:0:0:0: [sr0] tag#0 unaligned transfer sr 1:0:0:0: [sr0] tag#0 unaligned transfer sr 1:0:0:0: [sr0] tag#0 unaligned transfer sr 1:0:0:0: [sr0] tag#0 unaligned transfer ---------------- Code disassembly (best guess): 0: 00 4d 89 add %cl,-0x77(%rbp) 3: e7 49 out %eax,$0x49 5: 83 ef 08 sub $0x8,%edi 8: 74 61 je 0x6b a: e8 50 36 12 00 callq 0x12365f f: 4c 89 fa mov %r15,%rdx 12: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 19: fc ff df 1c: 48 c1 ea 03 shr $0x3,%rdx 20: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 24: 0f 85 5d 04 00 00 jne 0x487 * 2a: 4d 3b 2f cmp (%r15),%r13 <-- trapping instruction 2d: 0f 84 ae 00 00 00 je 0xe1 33: e8 27 36 12 00 callq 0x12365f 38: 49 8d 7f 08 lea 0x8(%r15),%rdi 3c: 48 rex.W 3d: b8 .byte 0xb8