general protection fault, probably for non-canonical address 0xdffffc0000000008: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047] CPU: 1 PID: 10968 Comm: syz-executor.3 Not tainted 5.15.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:cgroup_file_write+0xbe/0x790 kernel/cgroup/cgroup.c:3806 Code: 81 c3 20 08 00 00 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 00 27 52 00 48 8b 1b 48 83 c3 40 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 e3 26 52 00 48 8b 03 48 89 44 24 RSP: 0018:ffffc9000a8772a0 EFLAGS: 00010202 RAX: 0000000000000008 RBX: 0000000000000040 RCX: ffff888023011c80 RDX: 0000000000000000 RSI: ffff888078d0fd80 RDI: ffff88806fb60800 RBP: ffffc9000a877390 R08: ffffffff8205fd33 R09: fffffbfff1fa33df R10: fffffbfff1fa33df R11: 0000000000000000 R12: 1ffff9200150ee5c R13: ffff88806fb60800 R14: ffff88806fb60800 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c00e1c3e48 CR3: 00000000721ed000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kernfs_fop_write_iter+0x3b6/0x510 fs/kernfs/file.c:296 __kernel_write+0x5d1/0xaf0 fs/read_write.c:539 do_acct_process+0x112a/0x17b0 kernel/acct.c:519 acct_pin_kill+0x27/0x130 kernel/acct.c:174 pin_kill+0x2a6/0x940 fs/fs_pin.c:44 mnt_pin_kill+0xc1/0x170 fs/fs_pin.c:81 cleanup_mnt+0x4bc/0x510 fs/namespace.c:1130 task_work_run+0x146/0x1c0 kernel/task_work.c:164 exit_task_work include/linux/task_work.h:32 [inline] do_exit+0x6fc/0x2580 kernel/exit.c:825 do_group_exit+0x168/0x2d0 kernel/exit.c:922 get_signal+0x16e0/0x20c0 kernel/signal.c:2868 arch_do_signal_or_restart+0x9c/0x730 arch/x86/kernel/signal.c:865 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x191/0x220 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x2e/0x70 kernel/entry/common.c:300 do_syscall_64+0x53/0xd0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f2a63ae58d9 Code: Unable to access opcode bytes at RIP 0x7f2a63ae58af. RSP: 002b:00007f2a6105c218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007f2a63be9f68 RCX: 00007f2a63ae58d9 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f2a63be9f68 RBP: 00007f2a63be9f60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f2a63be9f6c R13: 00007ffdc7ff011f R14: 00007f2a6105c300 R15: 0000000000022000 Modules linked in: ---[ end trace 9be93dc73897f9f0 ]--- RIP: 0010:cgroup_file_write+0xbe/0x790 kernel/cgroup/cgroup.c:3806 Code: 81 c3 20 08 00 00 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 00 27 52 00 48 8b 1b 48 83 c3 40 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 e3 26 52 00 48 8b 03 48 89 44 24 RSP: 0018:ffffc9000a8772a0 EFLAGS: 00010202 RAX: 0000000000000008 RBX: 0000000000000040 RCX: ffff888023011c80 RDX: 0000000000000000 RSI: ffff888078d0fd80 RDI: ffff88806fb60800 RBP: ffffc9000a877390 R08: ffffffff8205fd33 R09: fffffbfff1fa33df R10: fffffbfff1fa33df R11: 0000000000000000 R12: 1ffff9200150ee5c R13: ffff88806fb60800 R14: ffff88806fb60800 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c009b6dc08 CR3: 00000000721ed000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 81 c3 20 08 00 00 add $0x820,%ebx 6: 48 89 d8 mov %rbx,%rax 9: 48 c1 e8 03 shr $0x3,%rax d: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) 12: 74 08 je 0x1c 14: 48 89 df mov %rbx,%rdi 17: e8 00 27 52 00 callq 0x52271c 1c: 48 8b 1b mov (%rbx),%rbx 1f: 48 83 c3 40 add $0x40,%rbx 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 df mov %rbx,%rdi 34: e8 e3 26 52 00 callq 0x52271c 39: 48 8b 03 mov (%rbx),%rax 3c: 48 rex.W 3d: 89 .byte 0x89 3e: 44 rex.R 3f: 24 .byte 0x24