Unable to handle kernel NULL pointer dereference at virtual address 0000000000000d40 Oops [#1] Modules linked in: CPU: 0 PID: 3051 Comm: sshd 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 : ffffffe00d7537b0 gp : ffffffff83f967d8 tp : ffffffe008134740 t0 : ffffffc401ba9200 t1 : 0000000000000001 t2 : 99708e798e31e693 s0 : ffffffe00d753850 s1 : ffffffe005601c80 a0 : 0000000000000000 a1 : ffffffe00d753b9c a2 : 1ffffffc01026a0f a3 : 0000000000000d40 a4 : 0000000000000001 a5 : ffffffff82e4b350 a6 : 0000000000f00000 a7 : ffffffff8038ca52 s2 : ffffffff83f96adc s3 : 0000000000000d40 s4 : 0000000000000200 s5 : ffffffff807f1c66 s6 : ffffffff83f9a0d0 s7 : 0000000000000000 s8 : 0000000000000d40 s9 : 0000000000000001 s10: 0000000000000116 s11: ffffffe00d753c78 t3 : be0656cf6c2c1000 t4 : ffffffc401ba9022 t5 : ffffffc401ba9023 t6 : ffffffe00dd48116 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_init_log+0xc20/0x13aa security/tomoyo/audit.c:275 [] tomoyo_supervisor+0x1bc/0xb0c security/tomoyo/common.c:2097 [] tomoyo_audit_path_log security/tomoyo/file.c:168 [inline] [] tomoyo_path_permission security/tomoyo/file.c:587 [inline] [] tomoyo_path_permission+0x152/0x18e security/tomoyo/file.c:573 [] tomoyo_path_perm+0x1ea/0x2d8 security/tomoyo/file.c:838 [] 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_statx+0x11c/0x26c fs/stat.c:207 [] vfs_fstatat fs/stat.c:225 [inline] [] __do_sys_newfstatat+0x4c/0xac fs/stat.c:394 [] sys_newfstatat+0x30/0x40 fs/stat.c:388 [] ret_from_syscall+0x0/0x2 ---[ end trace 6e03fa8a777e470b ]---