BUG: stack guard page was hit at ffffc90002517ff8 (stack is ffffc90002518000..ffffc9000251ffff) kernel stack overflow (double-fault): 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 13230 Comm: syz-executor.3 Not tainted 5.10.112-syzkaller-00287-gde64d941a71a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:cgroup_rstat_updated+0x16/0x3c0 kernel/cgroup/rstat.c:26 Code: 60 fd 3a 86 e8 7b e9 3f 00 5d c3 cc cc cc cc cc cc cc cc cc 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 40 89 f3 49 89 fe c5 2b 06 00 89 5d d4 48 63 db bf 08 00 00 00 89 de e8 23 30 06 RSP: 0018:ffffc90002518000 EFLAGS: 00010086 RAX: 0000000000000001 RBX: 0000000000000001 RCX: ffff88814c558000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff88810738a000 RBP: ffffc90002518068 R08: ffffffff81669a14 R09: 0000000000000003 R10: fffff520004a3045 R11: 1ffff920004a3044 R12: 0000000000000001 R13: dffffc0000000000 R14: ffff88810738a000 R15: ffff88810738a000 FS: 00007fc429d55700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffc90002517ff8 CR3: 00000001155ba000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: cgroup_base_stat_cputime_account_end kernel/cgroup/rstat.c:354 [inline] __cgroup_account_cputime+0xc4/0x120 kernel/cgroup/rstat.c:364 cgroup_account_cputime include/linux/cgroup.h:794 [inline] update_curr+0x353/0x6c0 kernel/sched/fair.c:890 put_prev_entity+0x4a/0x430 kernel/sched/fair.c:4570 pick_next_task_fair+0x6f3/0xcb0 kernel/sched/fair.c:7235 pick_next_task kernel/sched/core.c:4607 [inline] __schedule+0x433/0xc00 kernel/sched/core.c:4758 preempt_schedule_irq+0xce/0x140 kernel/sched/core.c:5052 irqentry_exit_cond_resched kernel/entry/common.c:357 [inline] irqentry_exit+0x50/0x60 kernel/entry/common.c:387 sysvec_reschedule_ipi+0x84/0x160 arch/x86/kernel/smp.c:225 asm_sysvec_reschedule_ipi+0x12/0x20 arch/x86/include/asm/idtentry.h:640 RIP: 0010:update_stack_state+0x369/0x580 arch/x86/kernel/unwind_frame.c:234 Code: c1 eb 03 80 3c 13 00 74 12 4c 89 f7 e8 30 46 73 00 48 ba 00 00 00 00 00 fc ff df 48 8b 45 90 49 89 06 48 8b 45 a8 80 3c 10 00 <74> 13 48 8b 7d b0 e8 0c 46 73 00 48 ba 00 00 00 00 00 fc ff df 49 RSP: 0018:ffffc90002518528 EFLAGS: 00000246 RAX: 1ffff920004a30d7 RBX: 1ffff920004a30d3 RCX: ffffc90002519d88 RDX: dffffc0000000000 RSI: 1ffff920004a30ce RDI: ffffc90002518660 RBP: ffffc900025185c0 R08: ffffc90002518748 R09: 0000000000000023 R10: ffffc90002518750 R11: 1ffff920004a30cc R12: 1ffff920004a30d4 R13: ffffc90002518660 R14: ffffc90002518698 R15: ffffc900025186a0 unwind_next_frame+0x3b0/0x6b0 arch/x86/kernel/unwind_frame.c:305 arch_stack_walk+0x112/0x140 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x12d/0x1f0 kernel/stacktrace.c:121 kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:428 [inline] __kasan_slab_alloc+0xb2/0xe0 mm/kasan/common.c:461 kasan_slab_alloc include/linux/kasan.h:259 [inline] slab_post_alloc_hook mm/slab.h:583 [inline] slab_alloc_node mm/slub.c:2956 [inline] slab_alloc mm/slub.c:2964 [inline] kmem_cache_alloc+0x16c/0x300 mm/slub.c:2969 kmem_cache_zalloc include/linux/slab.h:654 [inline] __alloc_file+0x29/0x330 fs/file_table.c:101 alloc_empty_file+0xac/0x1b0 fs/file_table.c:151 dentry_open+0x4e/0x100 fs/open.c:956 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open fs/open.c:942 [inline] dentry_open+0xb8/0x100 fs/open.c:958 file_open+0x2a3/0x650 fs/incfs/vfs.c:1427 do_dentry_open+0x7a2/0x1090 fs/open.c:819 vfs_open+0x73/0x80 fs/open.c:942 do_open fs/namei.c:3327 [inline] path_openat+0x2638/0x2fd0 fs/namei.c:3444 do_filp_open+0x200/0x440 fs/namei.c:3471 do_sys_openat2+0x13b/0x470 fs/open.c:1211 do_sys_open fs/open.c:1227 [inline] __do_sys_openat fs/open.c:1243 [inline] __se_sys_openat fs/open.c:1238 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1238 do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7fc42abdf0e9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc429d55168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fc42acf1f60 RCX: 00007fc42abdf0e9 RDX: 0000000000000000 RSI: 00000000200000c0 RDI: ffffffffffffff9c RBP: 00007fc42ac3908d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffca9b60d1f R14: 00007fc429d55300 R15: 0000000000022000 Modules linked in: ---[ end trace 2eb0ed7005fbd241 ]--- RIP: 0010:cgroup_rstat_updated+0x16/0x3c0 kernel/cgroup/rstat.c:26 Code: 60 fd 3a 86 e8 7b e9 3f 00 5d c3 cc cc cc cc cc cc cc cc cc 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 40 89 f3 49 89 fe c5 2b 06 00 89 5d d4 48 63 db bf 08 00 00 00 89 de e8 23 30 06 RSP: 0018:ffffc90002518000 EFLAGS: 00010086 RAX: 0000000000000001 RBX: 0000000000000001 RCX: ffff88814c558000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff88810738a000 RBP: ffffc90002518068 R08: ffffffff81669a14 R09: 0000000000000003 R10: fffff520004a3045 R11: 1ffff920004a3044 R12: 0000000000000001 R13: dffffc0000000000 R14: ffff88810738a000 R15: ffff88810738a000 FS: 00007fc429d55700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffc90002517ff8 CR3: 00000001155ba000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: fd std 1: 3a 86 e8 7b e9 3f cmp 0x3fe97be8(%rsi),%al 7: 00 5d c3 add %bl,-0x3d(%rbp) a: cc int3 b: cc int3 c: cc int3 d: cc int3 e: cc int3 f: cc int3 10: cc int3 11: cc int3 12: cc int3 13: 55 push %rbp 14: 48 89 e5 mov %rsp,%rbp 17: 41 57 push %r15 19: 41 56 push %r14 1b: 41 55 push %r13 1d: 41 54 push %r12 1f: 53 push %rbx 20: 48 83 ec 40 sub $0x40,%rsp 24: 89 f3 mov %esi,%ebx 26: 49 89 fe mov %rdi,%r14 * 29: e8 c5 2b 06 00 callq 0x62bf3 <-- trapping instruction 2e: 89 5d d4 mov %ebx,-0x2c(%rbp) 31: 48 63 db movslq %ebx,%rbx 34: bf 08 00 00 00 mov $0x8,%edi 39: 89 de mov %ebx,%esi 3b: e8 .byte 0xe8 3c: 23 30 and (%rax),%esi 3e: 06 (bad)