audit: type=1804 audit(1668741841.461:137): pid=12842 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir1334445434/syzkaller.wvyjNF/109/file0/file0" dev="loop2" ino=20 res=1 kasan: GPF could be caused by NULL-ptr deref or user memory access sp0: Synchronizing with TNC general protection fault: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 1 PID: 8020 Comm: syz-executor.0 Not tainted 4.14.299-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 audit: type=1804 audit(1668741841.461:138): pid=12842 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.2" name="/root/syzkaller-testdir1334445434/syzkaller.wvyjNF/109/file0/file0" dev="loop2" ino=20 res=1 task: ffff8880ab31a0c0 task.stack: ffff888076408000 RIP: 0010:kobject_uevent_env+0xb2/0xf30 lib/kobject_uevent.c:356 RSP: 0018:ffff88807640fbf8 EFLAGS: 00010206 RAX: 0000000000000018 RBX: 0000000000000002 RCX: 1ffff11015663538 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 00000000000000c0 RBP: ffff88809e4bb010 R08: ffffffff8b9b8710 R09: 0000000000000003 R10: 0000000000000000 R11: ffff8880ab31a0c0 R12: 00000000000000a0 R13: dffffc0000000000 R14: ffff88809e4baf08 R15: 00000000000000a0 FS: 0000555556b72400(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9e0b6b6718 CR3: 00000000aa7cf000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: loop_clr_fd+0x59f/0xc20 drivers/block/loop.c:1069 __lo_release drivers/block/loop.c:1665 [inline] lo_release+0xff/0x190 drivers/block/loop.c:1683 __blkdev_put+0x5aa/0x800 fs/block_dev.c:1803 deactivate_locked_super+0x6c/0xd0 fs/super.c:319 deactivate_super+0x7f/0xa0 fs/super.c:350 cleanup_mnt+0x186/0x2c0 fs/namespace.c:1183 task_work_run+0x11f/0x190 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:270 [inline] do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 Code: 03 42 80 3c 28 00 0f 85 dd 0b 00 00 4d 8b 64 24 18 4d 85 e4 0f 84 fa 0b 00 00 e8 6a a2 56 fa 49 8d 7c 24 20 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 0f 85 d4 0b 00 00 49 8b 6c 24 20 48 85 ed 74 b0 RIP: kobject_uevent_env+0xb2/0xf30 lib/kobject_uevent.c:356 RSP: ffff88807640fbf8 ---[ end trace f254bc44908d37e9 ]--- ---------------- Code disassembly (best guess): 0: 03 42 80 add -0x80(%rdx),%eax 3: 3c 28 cmp $0x28,%al 5: 00 0f add %cl,(%rdi) 7: 85 dd test %ebx,%ebp 9: 0b 00 or (%rax),%eax b: 00 4d 8b add %cl,-0x75(%rbp) e: 64 24 18 fs and $0x18,%al 11: 4d 85 e4 test %r12,%r12 14: 0f 84 fa 0b 00 00 je 0xc14 1a: e8 6a a2 56 fa callq 0xfa56a289 1f: 49 8d 7c 24 20 lea 0x20(%r12),%rdi 24: 48 89 f8 mov %rdi,%rax 27: 48 c1 e8 03 shr $0x3,%rax * 2b: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction 30: 0f 85 d4 0b 00 00 jne 0xc0a 36: 49 8b 6c 24 20 mov 0x20(%r12),%rbp 3b: 48 85 ed test %rbp,%rbp 3e: 74 b0 je 0xfffffff0