!!!! css_killed_ref_fn enqueue(ffff88811272b800) !!!! css_killed_ref_fn enqueue(ffff88811272bc00) !!!! css_release enqueue(ffff88811272bc00) list_add corruption. prev->next should be next (ffff8881f735c060), but was ffff88811272bc70. (prev=ffff88811272bc70). ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:28! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 374 Comm: kworker/1:2 Not tainted 5.10.110-syzkaller-00174-gc5a957663c73 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: cgroup_destroy css_killed_work_fn RIP: 0010:__list_add_valid+0xc6/0xd0 lib/list_debug.c:26 Code: 48 c7 c7 40 db 43 85 4c 89 e6 4c 89 f1 31 c0 e8 8d 10 40 02 0f 0b 48 c7 c7 00 dc 43 85 4c 89 f6 4c 89 e1 31 c0 e8 77 10 40 02 <0f> 0b 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 54 53 49 RSP: 0018:ffffc90000160a00 EFLAGS: 00010046 RAX: 0000000000000075 RBX: ffff8881f735c068 RCX: fe9353fa45f2a400 RDX: 0000000000000102 RSI: 0000000000000102 RDI: 0000000000000000 RBP: ffffc90000160a28 R08: ffffffff8153b2f8 R09: ffffed103ee64e83 R10: ffffed103ee64e83 R11: 1ffff1103ee64e82 R12: ffff88811272bc70 R13: dffffc0000000000 R14: ffff8881f735c060 R15: ffff88811272bc70 FS: 0000000000000000(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f15d1691e69 CR3: 000000010f9a8000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __list_add include/linux/list.h:67 [inline] list_add_tail include/linux/list.h:100 [inline] insert_work+0x107/0x330 kernel/workqueue.c:1352 __queue_work+0x971/0xd30 kernel/workqueue.c:1514 queue_work_on+0xf2/0x150 kernel/workqueue.c:1541 queue_work include/linux/workqueue.h:513 [inline] css_release+0xc0/0xd0 kernel/cgroup/cgroup.c:5151 percpu_ref_put_many include/linux/percpu-refcount.h:322 [inline] percpu_ref_put include/linux/percpu-refcount.h:338 [inline] percpu_ref_call_confirm_rcu lib/percpu-refcount.c:162 [inline] percpu_ref_switch_to_atomic_rcu+0x5a2/0x5b0 lib/percpu-refcount.c:199 rcu_do_batch+0x4f8/0xbc0 kernel/rcu/tree.c:2485 rcu_core+0x59b/0xe30 kernel/rcu/tree.c:2722 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2735 __do_softirq+0x27e/0x596 kernel/softirq.c:305 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x60/0x80 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:402 [inline] __irq_exit_rcu+0x128/0x150 kernel/softirq.c:432 irq_exit_rcu+0x9/0x10 kernel/softirq.c:444 sysvec_apic_timer_interrupt+0xbf/0xe0 arch/x86/kernel/apic/apic.c:1095 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 RIP: 0010:native_restore_fl arch/x86/include/asm/irqflags.h:41 [inline] RIP: 0010:arch_local_irq_restore arch/x86/include/asm/irqflags.h:84 [inline] RIP: 0010:console_unlock+0xb5c/0xf20 kernel/printk/printk.c:2555 Code: 85 db 4c 8d b4 24 60 01 00 00 0f 85 82 03 00 00 e8 49 6e 00 00 48 8b 44 24 30 48 89 84 24 90 00 00 00 ff b4 24 90 00 00 00 9d <48> 8b 44 24 38 42 80 3c 38 00 74 08 4c 89 f7 e8 40 d1 52 00 48 c7 RSP: 0018:ffffc9000039f7e0 EFLAGS: 00000246 RAX: 0000000000000246 RBX: 0000000000000000 RCX: ffff88811e03cf00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001 RBP: ffffc9000039fa70 R08: ffffffff8153ae3b R09: 0000000000000003 R10: fffff52000073eed R11: 1ffff92000073eec R12: ffffc9000039f9e0 R13: 1ffffffff0c3ada1 R14: ffffc9000039f940 R15: dffffc0000000000 vprintk_emit+0x44b/0x640 kernel/printk/printk.c:2063 vprintk_default+0x26/0x30 kernel/printk/printk.c:2080 vprintk_func+0x19d/0x1e0 kernel/printk/printk_safe.c:401 printk+0xcf/0x10f kernel/printk/printk.c:2111 css_killed_work_fn+0x1e4/0x430 kernel/cgroup/cgroup.c:5504 process_one_work+0x726/0xc10 kernel/workqueue.c:2296 worker_thread+0xb27/0x1550 kernel/workqueue.c:2442 kthread+0x349/0x3d0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 Modules linked in: ---[ end trace fa523c1e40e49a9f ]--- RIP: 0010:__list_add_valid+0xc6/0xd0 lib/list_debug.c:26 Code: 48 c7 c7 40 db 43 85 4c 89 e6 4c 89 f1 31 c0 e8 8d 10 40 02 0f 0b 48 c7 c7 00 dc 43 85 4c 89 f6 4c 89 e1 31 c0 e8 77 10 40 02 <0f> 0b 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 54 53 49 RSP: 0018:ffffc90000160a00 EFLAGS: 00010046 RAX: 0000000000000075 RBX: ffff8881f735c068 RCX: fe9353fa45f2a400 RDX: 0000000000000102 RSI: 0000000000000102 RDI: 0000000000000000 RBP: ffffc90000160a28 R08: ffffffff8153b2f8 R09: ffffed103ee64e83 R10: ffffed103ee64e83 R11: 1ffff1103ee64e82 R12: ffff88811272bc70 R13: dffffc0000000000 R14: ffff8881f735c060 R15: ffff88811272bc70 FS: 0000000000000000(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f15d1691e69 CR3: 000000010f9a8000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 85 db test %ebx,%ebx 2: 4c 8d b4 24 60 01 00 lea 0x160(%rsp),%r14 9: 00 a: 0f 85 82 03 00 00 jne 0x392 10: e8 49 6e 00 00 callq 0x6e5e 15: 48 8b 44 24 30 mov 0x30(%rsp),%rax 1a: 48 89 84 24 90 00 00 mov %rax,0x90(%rsp) 21: 00 22: ff b4 24 90 00 00 00 pushq 0x90(%rsp) 29: 9d popfq * 2a: 48 8b 44 24 38 mov 0x38(%rsp),%rax <-- trapping instruction 2f: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) 34: 74 08 je 0x3e 36: 4c 89 f7 mov %r14,%rdi 39: e8 40 d1 52 00 callq 0x52d17e 3e: 48 rex.W 3f: c7 .byte 0xc7