==================================================================
BUG: KASAN: vmalloc-out-of-bounds in idempotent kernel/module/main.c:3078 [inline]
BUG: KASAN: vmalloc-out-of-bounds in init_module_from_file+0x62c/0x6a0 kernel/module/main.c:3124
Read of size 8 at addr ffffc9000525fe20 by task syz-executor.5/6771
CPU: 0 PID: 6771 Comm: syz-executor.5 Not tainted 6.4.0-syzkaller-11312-gb5641a5d8b8b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106
print_address_description.constprop.0+0x2c/0x3c0 mm/kasan/report.c:364
print_report mm/kasan/report.c:475 [inline]
kasan_report+0x11d/0x130 mm/kasan/report.c:588
idempotent kernel/module/main.c:3078 [inline]
init_module_from_file+0x62c/0x6a0 kernel/module/main.c:3124
__do_sys_finit_module kernel/module/main.c:3171 [inline]
__se_sys_finit_module kernel/module/main.c:3154 [inline]
__x64_sys_finit_module+0xfd/0x190 kernel/module/main.c:3154
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd0b528c389
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fd0b603a168 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
RAX: ffffffffffffffda RBX: 00007fd0b53ac120 RCX: 00007fd0b528c389
RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000005
RBP: 00007fd0b52d7493 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc575084df R14: 00007fd0b603a300 R15: 0000000000022000
Memory state around the buggy address:
ffffc9000525fd00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
ffffc9000525fd80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
>ffffc9000525fe00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
^
ffffc9000525fe80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
ffffc9000525ff00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
==================================================================
BUG: unable to handle page fault for address: ffffc9000525fe20
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 12800067 P4D 12800067 PUD 1465f067 PMD 209f9067 PTE 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 6771 Comm: syz-executor.5 Tainted: G B 6.4.0-syzkaller-11312-gb5641a5d8b8b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
RIP: 0010:idempotent kernel/module/main.c:3078 [inline]
RIP: 0010:init_module_from_file+0x1cb/0x6a0 kernel/module/main.c:3124
Code: 00 4d 89 e7 49 83 ef 08 74 61 e8 a0 f1 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 59 04 00 00 <4d> 3b 2f 0f 84 ae 00 00 00 e8 77 f1 12 00 49 8d 7f 08 48 b8 00 00
RSP: 0018:ffffc900059a7d28 EFLAGS: 00010286
RAX: 0000000000000001 RBX: 0000000000000062 RCX: ffffc900130c1000
RDX: 0000000000040000 RSI: ffffffff81d7f6e7 RDI: 0000000000000007
RBP: ffff88804671a000 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000062ed8 R12: ffffc9000525fe28
R13: ffff8880442b5ac0 R14: ffffffff92149430 R15: ffffc9000525fe20
FS: 00007fd0b603a700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc9000525fe20 CR3: 0000000089283000 CR4: 0000000000350ef0
Call Trace:
__do_sys_finit_module kernel/module/main.c:3171 [inline]
__se_sys_finit_module kernel/module/main.c:3154 [inline]
__x64_sys_finit_module+0xfd/0x190 kernel/module/main.c:3154
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd0b528c389
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fd0b603a168 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
RAX: ffffffffffffffda RBX: 00007fd0b53ac120 RCX: 00007fd0b528c389
RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000005
RBP: 00007fd0b52d7493 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc575084df R14: 00007fd0b603a300 R15: 0000000000022000
Modules linked in:
CR2: ffffc9000525fe20
---[ end trace 0000000000000000 ]---
RIP: 0010:idempotent kernel/module/main.c:3078 [inline]
RIP: 0010:init_module_from_file+0x1cb/0x6a0 kernel/module/main.c:3124
Code: 00 4d 89 e7 49 83 ef 08 74 61 e8 a0 f1 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 59 04 00 00 <4d> 3b 2f 0f 84 ae 00 00 00 e8 77 f1 12 00 49 8d 7f 08 48 b8 00 00
RSP: 0018:ffffc900059a7d28 EFLAGS: 00010286
RAX: 0000000000000001 RBX: 0000000000000062 RCX: ffffc900130c1000
RDX: 0000000000040000 RSI: ffffffff81d7f6e7 RDI: 0000000000000007
RBP: ffff88804671a000 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000062ed8 R12: ffffc9000525fe28
R13: ffff8880442b5ac0 R14: ffffffff92149430 R15: ffffc9000525fe20
FS: 00007fd0b603a700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc9000525fe20 CR3: 0000000089283000 CR4: 0000000000350ef0
----------------
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 a0 f1 12 00 callq 0x12f1af
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 59 04 00 00 jne 0x483
* 2a: 4d 3b 2f cmp (%r15),%r13 <-- trapping instruction
2d: 0f 84 ae 00 00 00 je 0xe1
33: e8 77 f1 12 00 callq 0x12f1af
38: 49 8d 7f 08 lea 0x8(%r15),%rdi
3c: 48 rex.W
3d: b8 .byte 0xb8