Unable to handle kernel NULL pointer dereference at virtual address 0000000000000c48 Oops [#1] Modules linked in: CPU: 1 PID: 3291 Comm: modprobe Not tainted 5.14.0-syzkaller #0 Hardware name: riscv-virtio,qemu (DT) epc : slab_alloc_node mm/slub.c:2900 [inline] epc : slab_alloc mm/slub.c:2967 [inline] epc : __kmalloc+0xce/0x388 mm/slub.c:4111 ra : slab_pre_alloc_hook mm/slab.h:494 [inline] ra : slab_alloc_node mm/slub.c:2880 [inline] ra : slab_alloc mm/slub.c:2967 [inline] ra : __kmalloc+0x6e/0x388 mm/slub.c:4111 epc : ffffffff803e3568 ra : ffffffff803e3508 sp : ffffffe006da3ab0 gp : ffffffff83f967d8 tp : ffffffe00c68df00 t0 : ffffffe006da3c58 t1 : 0000000000000001 t2 : 0000000000000018 s0 : ffffffe006da3b50 s1 : ffffffe005602140 a0 : 0000000000000000 a1 : ffffffe006da3e9c a2 : 1ffffffff07aa51f a3 : 0000000000000c48 a4 : 0000000000000000 a5 : ffffffff82e4b3b0 a6 : 0000000000f00000 a7 : ffffffff8038ca52 s2 : ffffffff83f96adc s3 : 0000000000000c40 s4 : 0000000000001000 s5 : ffffffff8080ab12 s6 : ffffffff83f9a0d0 s7 : 0000000000000000 s8 : 0000000000000c40 s9 : 0000000000000001 s10: ffffffe009ddf6e0 s11: 0000003fcde82000 t3 : b62b3bae7aa96200 t4 : ffffffc400db4781 t5 : ffffffc400db478b t6 : 0000000000000005 status: 0000000000000120 badaddr: 0000000000000c48 cause: 000000000000000d [] slab_alloc_node mm/slub.c:2900 [inline] [] slab_alloc mm/slub.c:2967 [inline] [] __kmalloc+0xce/0x388 mm/slub.c:4111 [] kmalloc include/linux/slab.h:596 [inline] [] tomoyo_realpath_from_path+0x9c/0x3f4 security/tomoyo/realpath.c:254 [] tomoyo_get_realpath security/tomoyo/file.c:151 [inline] [] tomoyo_path_perm+0x11e/0x2d8 security/tomoyo/file.c:822 [] tomoyo_inode_getattr+0x1e/0x28 security/tomoyo/tomoyo.c:122 [] security_inode_getattr+0x82/0xc6 security/security.c:1333 [] vfs_getattr fs/stat.c:139 [inline] [] vfs_fstat+0x54/0xc8 fs/stat.c:164 [] __do_sys_newfstat+0x34/0x88 fs/stat.c:404 [] sys_newfstat+0x22/0x2e fs/stat.c:401 [] ret_from_syscall+0x0/0x2 ---[ end trace 34113d47542237fa ]---