BUG: kernel NULL pointer dereference, address: 000000000000013c #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 0 P4D 0 Oops: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 6835 Comm: systemd-udevd Not tainted 5.7.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:qlink_to_object mm/kasan/quarantine.c:137 [inline] RIP: 0010:qlink_free mm/kasan/quarantine.c:142 [inline] RIP: 0010:qlist_free_all+0x28/0x140 mm/kasan/quarantine.c:167 Code: d6 90 41 57 41 56 41 55 41 54 55 53 48 8b 1f 48 85 db 0f 84 08 01 00 00 48 89 f5 49 89 fd 48 85 ed 49 89 ee 0f 84 8b 00 00 00 <49> 63 86 3c 01 00 00 4c 8b 23 48 29 c3 48 83 3d 2b c0 e3 07 00 0f RSP: 0018:ffffc900160e78f8 EFLAGS: 00010246 RAX: ffffea0000000000 RBX: ffff888000000000 RCX: ffffea0000000007 RDX: 0000000000000000 RSI: ffffffff8133965a RDI: 0000000000000007 RBP: 0000000000000000 R08: ffff88808ebce580 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888000000000 R13: ffffc900160e7930 R14: 0000000000000000 R15: 0000000000000282 FS: 00007f616d2c28c0(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000000013c CR3: 000000005ba99000 CR4: 00000000001426f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: quarantine_reduce+0x159/0x190 mm/kasan/quarantine.c:260 __kasan_kmalloc.constprop.0+0x97/0xd0 mm/kasan/common.c:476 slab_post_alloc_hook mm/slab.h:586 [inline] slab_alloc mm/slab.c:3320 [inline] __do_kmalloc mm/slab.c:3654 [inline] __kmalloc+0x14b/0x7a0 mm/slab.c:3665 kmalloc include/linux/slab.h:560 [inline] tomoyo_realpath_from_path+0xc2/0x620 security/tomoyo/realpath.c:252 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x214/0x400 security/tomoyo/file.c:822 security_inode_getattr+0xeb/0x150 security/security.c:1273 vfs_getattr+0x22/0x60 fs/stat.c:117 vfs_statx+0x142/0x1e0 fs/stat.c:201 vfs_lstat include/linux/fs.h:3284 [inline] __do_sys_newlstat+0x96/0x120 fs/stat.c:364 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x7f616c135335 Code: 69 db 2b 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 83 ff 01 48 89 f0 77 30 48 89 c7 48 89 d6 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 03 f3 c3 90 48 8b 15 31 db 2b 00 f7 d8 64 89 RSP: 002b:00007ffc852660b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 RAX: ffffffffffffffda RBX: 000056348fffbcb0 RCX: 00007f616c135335 RDX: 00007ffc852660f0 RSI: 00007ffc852660f0 RDI: 000056348fffacb0 RBP: 00007ffc852661b0 R08: 00007f616c3f4178 R09: 0000000000001010 R10: 00007f616c3f3b58 R11: 0000000000000246 R12: 000056348fffacb0 R13: 000056348fffacbc R14: 000056348fffaba5 R15: 000056348fffabac Modules linked in: CR2: 000000000000013c ---[ end trace 331c58242b07439a ]--- RIP: 0010:qlink_to_object mm/kasan/quarantine.c:137 [inline] RIP: 0010:qlink_free mm/kasan/quarantine.c:142 [inline] RIP: 0010:qlist_free_all+0x28/0x140 mm/kasan/quarantine.c:167 Code: d6 90 41 57 41 56 41 55 41 54 55 53 48 8b 1f 48 85 db 0f 84 08 01 00 00 48 89 f5 49 89 fd 48 85 ed 49 89 ee 0f 84 8b 00 00 00 <49> 63 86 3c 01 00 00 4c 8b 23 48 29 c3 48 83 3d 2b c0 e3 07 00 0f RSP: 0018:ffffc900160e78f8 EFLAGS: 00010246 RAX: ffffea0000000000 RBX: ffff888000000000 RCX: ffffea0000000007 RDX: 0000000000000000 RSI: ffffffff8133965a RDI: 0000000000000007 RBP: 0000000000000000 R08: ffff88808ebce580 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888000000000 R13: ffffc900160e7930 R14: 0000000000000000 R15: 0000000000000282 FS: 00007f616d2c28c0(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0826856000 CR3: 000000005ba99000 CR4: 00000000001426f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400