Unable to handle kernel NULL pointer dereference at virtual address 0000000000000d40 Oops [#1] Modules linked in: CPU: 0 PID: 3096 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 : ffffffe00bcffa40 gp : ffffffff83f967d8 tp : ffffffe00df62f80 t0 : ffffffc401078e00 t1 : 0000000000000001 t2 : 0000000000000018 s0 : ffffffe00bcffae0 s1 : ffffffe005601640 a0 : 0000000000000000 a1 : ffffffe00bcffe2c a2 : 1ffffffff07aa51f a3 : 0000000000000d40 a4 : 0000000000000000 a5 : ffffffff82e4b2b0 a6 : 0000000000f00000 a7 : ffffffff8038ca52 s2 : ffffffff83f96adc s3 : 0000000000000d40 s4 : 0000000000000024 s5 : ffffffff8080a860 s6 : ffffffff83f9a0d0 s7 : 0000000000000000 s8 : 0000000000000d40 s9 : 0000000000000001 s10: ffffffe009d4ee10 s11: 000000000000002f t3 : 3a5fee2933c01500 t4 : ffffffc40179ff5f t5 : ffffffc40179ff61 t6 : ffffffe0083c6ffe status: 0000000000000120 badaddr: 0000000000000d40 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] [] kzalloc include/linux/slab.h:721 [inline] [] tomoyo_encode2.part.0+0xf0/0x262 security/tomoyo/realpath.c:45 [] tomoyo_encode2 security/tomoyo/realpath.c:31 [inline] [] tomoyo_encode security/tomoyo/realpath.c:80 [inline] [] tomoyo_realpath_from_path+0x14c/0x3f4 security/tomoyo/realpath.c:288 [] 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 80e7fcba3e66641f ]---