general protection fault, probably for non-canonical address 0xdffffc0000000182: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000c10-0x0000000000000c17]
CPU: 1 PID: 2969 Comm: systemd-udevd Not tainted 5.15.0-rc3-next-20210927-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__ref_is_percpu include/linux/percpu-refcount.h:174 [inline]
RIP: 0010:percpu_ref_put_many include/linux/percpu-refcount.h:319 [inline]
RIP: 0010:percpu_ref_put include/linux/percpu-refcount.h:338 [inline]
RIP: 0010:cgroup_bpf_put include/linux/cgroup.h:926 [inline]
RIP: 0010:cgroup_sk_free+0x8d/0x570 kernel/cgroup/cgroup.c:6636
Code: 25 06 00 40 84 ed 5a 0f 84 42 01 00 00 e8 6b 1f 06 00 4c 8d ab 10 0c 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 <80> 3c 02 00 0f 85 6f 04 00 00 48 8b ab 10 0c 00 00 31 ff 49 89 ec
RSP: 0018:ffffc90000dc0c38 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000100
RDX: 0000000000000182 RSI: ffffffff81702235 RDI: 0000000000000003
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000001
R10: ffffffff81702226 R11: 0000000000000000 R12: ffff88807154b000
R13: 0000000000000c10 R14: ffffffff8d0d1c8c R15: 0000000000000000
FS: 00007f0a19a7d8c0(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f236f6f1004 CR3: 000000001a49a000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
sk_prot_free net/core/sock.c:1852 [inline]
__sk_destruct+0x579/0x900 net/core/sock.c:1943
sk_destruct+0xbd/0xe0 net/core/sock.c:1958
__sk_free+0xef/0x3d0 net/core/sock.c:1969
sk_free+0x78/0xa0 net/core/sock.c:1980
sock_put include/net/sock.h:1804 [inline]
nr_heartbeat_expiry+0x2e7/0x460 net/netrom/nr_timer.c:148
call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1421
expire_timers kernel/time/timer.c:1466 [inline]
__run_timers.part.0+0x675/0xa20 kernel/time/timer.c:1734
__run_timers kernel/time/timer.c:1715 [inline]
run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1747
__do_softirq+0x29b/0x9c2 kernel/softirq.c:558
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x123/0x180 kernel/softirq.c:637
irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1097
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:tomoyo_path_matches_pattern+0x56/0x280 security/tomoyo/util.c:945
Code: 33 02 00 00 48 89 da 4c 8b 6d 00 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 21 02 00 00 48 8d 7b 0f 4c 8b 33 <48> b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 04 02 48
RSP: 0018:ffffc90001f1f9a8 EFLAGS: 00000246
RAX: dffffc0000000000 RBX: ffff88801e07fc98 RCX: 0000000000000000
RDX: 1ffff11003c0ff93 RSI: ffffffff839fa885 RDI: ffff88801e07fca7
RBP: ffffc90001f1fb08 R08: 0000000000000000 R09: 0000000000000005
R10: ffffffff839e8412 R11: 000000000000001f R12: ffff88801ec01400
R13: ffff88806eeb9760 R14: ffff88801e07fca8 R15: ffff88801ec01420
tomoyo_compare_name_union security/tomoyo/file.c:87 [inline]
tomoyo_compare_name_union security/tomoyo/file.c:82 [inline]
tomoyo_check_path_acl security/tomoyo/file.c:260 [inline]
tomoyo_check_path_acl+0x180/0x210 security/tomoyo/file.c:252
tomoyo_check_acl+0x13c/0x450 security/tomoyo/domain.c:175
tomoyo_path_permission security/tomoyo/file.c:586 [inline]
tomoyo_path_permission+0x1ff/0x3a0 security/tomoyo/file.c:573
tomoyo_path_perm+0x2f0/0x400 security/tomoyo/file.c:838
security_inode_getattr+0xcf/0x140 security/security.c:1333
vfs_getattr fs/stat.c:157 [inline]
vfs_statx+0x164/0x390 fs/stat.c:225
vfs_fstatat fs/stat.c:243 [inline]
vfs_lstat include/linux/fs.h:3357 [inline]
__do_sys_newlstat+0x91/0x110 fs/stat.c:398
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f0a188ef335
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:00007ffcb4322588 EFLAGS: 00000246 ORIG_RAX: 0000000000000006
RAX: ffffffffffffffda RBX: 000055ed56a9a5d0 RCX: 00007f0a188ef335
RDX: 00007ffcb43225c0 RSI: 00007ffcb43225c0 RDI: 000055ed56a995d0
RBP: 00007ffcb4322680 R08: 00007f0a18bae198 R09: 0000000000001010
R10: 0000000000000020 R11: 0000000000000246 R12: 000055ed56a995d0
R13: 000055ed56a995d4 R14: 000055ed56aa0a61 R15: 000055ed56aa0a64
Modules linked in:
---[ end trace 87861a39758c6889 ]---
RIP: 0010:__ref_is_percpu include/linux/percpu-refcount.h:174 [inline]
RIP: 0010:percpu_ref_put_many include/linux/percpu-refcount.h:319 [inline]
RIP: 0010:percpu_ref_put include/linux/percpu-refcount.h:338 [inline]
RIP: 0010:cgroup_bpf_put include/linux/cgroup.h:926 [inline]
RIP: 0010:cgroup_sk_free+0x8d/0x570 kernel/cgroup/cgroup.c:6636
Code: 25 06 00 40 84 ed 5a 0f 84 42 01 00 00 e8 6b 1f 06 00 4c 8d ab 10 0c 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 <80> 3c 02 00 0f 85 6f 04 00 00 48 8b ab 10 0c 00 00 31 ff 49 89 ec
RSP: 0018:ffffc90000dc0c38 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000100
RDX: 0000000000000182 RSI: ffffffff81702235 RDI: 0000000000000003
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000001
R10: ffffffff81702226 R11: 0000000000000000 R12: ffff88807154b000
R13: 0000000000000c10 R14: ffffffff8d0d1c8c R15: 0000000000000000
FS: 00007f0a19a7d8c0(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f236f6f1004 CR3: 000000001a49a000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 25 06 00 40 84 and $0x84400006,%eax
5: ed in (%dx),%eax
6: 5a pop %rdx
7: 0f 84 42 01 00 00 je 0x14f
d: e8 6b 1f 06 00 callq 0x61f7d
12: 4c 8d ab 10 0c 00 00 lea 0xc10(%rbx),%r13
19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
20: fc ff df
23: 4c 89 ea mov %r13,%rdx
26: 48 c1 ea 03 shr $0x3,%rdx
* 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2e: 0f 85 6f 04 00 00 jne 0x4a3
34: 48 8b ab 10 0c 00 00 mov 0xc10(%rbx),%rbp
3b: 31 ff xor %edi,%edi
3d: 49 89 ec mov %rbp,%r12