================================================================== 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+0x186/0x446 kernel/module/main.c:3124 Read of size 8 at addr ff20000000bb7d00 by task syz-executor.1/19193 CPU: 1 PID: 19193 Comm: syz-executor.1 Not tainted 6.4.0-syzkaller-g533925cb7604 #0 Hardware name: riscv-virtio,qemu (DT) Call Trace: [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:121 [] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:127 [] __dump_stack lib/dump_stack.c:88 [inline] [] dump_stack_lvl+0xe0/0x14c lib/dump_stack.c:106 [] print_address_description mm/kasan/report.c:364 [inline] [] print_report+0x1fc/0x4fe mm/kasan/report.c:475 [] kasan_report+0xbc/0x182 mm/kasan/report.c:588 [] check_region_inline mm/kasan/generic.c:180 [inline] [] __asan_load8+0x80/0xa8 mm/kasan/generic.c:259 [] idempotent kernel/module/main.c:3078 [inline] [] init_module_from_file+0x186/0x446 kernel/module/main.c:3124 [] __do_sys_finit_module kernel/module/main.c:3171 [inline] [] sys_finit_module+0x8a/0xf4 kernel/module/main.c:3154 [] syscall_handler+0xfa/0x148 arch/riscv/include/asm/syscall.h:90 [] do_trap_ecall_u+0xea/0xec arch/riscv/kernel/traps.c:302 [] ret_from_exception+0x0/0x64 arch/riscv/kernel/entry.S:102 Memory state around the buggy address: ff20000000bb7c00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ff20000000bb7c80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 >ff20000000bb7d00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ^ ff20000000bb7d80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ff20000000bb7e00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ==================================================================