list_add corruption. prev->next should be next (ffff8881f715c060), but was ffff88810e794870. (prev=ffff88810e794870). ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:28! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 397 Comm: kworker/1:2 Tainted: G W 5.10.109-syzkaller-00693-g414e6c8e941c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: cgroup_destroy css_free_rwork_fn RIP: 0010:__list_add_valid+0xbb/0xc0 lib/list_debug.c:26 Code: 48 c7 c7 e0 c3 49 85 4c 89 e6 4c 89 f1 31 c0 e8 e2 9b 01 ff 0f 0b 48 c7 c7 a0 c4 49 85 4c 89 f6 4c 89 e1 31 c0 e8 cc 9b 01 ff <0f> 0b 0f 1f 00 55 48 89 e5 41 57 41 56 41 54 53 49 89 fe 49 bc 00 RSP: 0018:ffffc900001609e0 EFLAGS: 00010046 RAX: 0000000000000075 RBX: ffff8881f715c068 RCX: af2b18e851678f00 RDX: 0000000080000102 RSI: 0000000080000102 RDI: 0000000000000000 RBP: ffffc90000160a08 R08: ffffffff815454d8 R09: 0000000000000003 R10: fffff5200002c091 R11: 0000000000000004 R12: ffff88810e794870 R13: dffffc0000000000 R14: ffff8881f715c060 R15: ffff88810e794870 FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555555ad8380 CR3: 000000011d102000 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+0x951/0xda0 kernel/workqueue.c:1514 queue_work_on+0xef/0x150 kernel/workqueue.c:1541 queue_work include/linux/workqueue.h:513 [inline] css_release+0xae/0xc0 kernel/cgroup/cgroup.c:5146 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+0x5a0/0x5b0 lib/percpu-refcount.c:199 rcu_do_batch+0x4cd/0xb40 kernel/rcu/tree.c:2485 rcu_core+0x822/0x10a0 kernel/rcu/tree.c:2722 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2735 __do_softirq+0x27e/0x598 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 do_softirq kernel/softirq.c:355 [inline] __local_bh_enable_ip+0x158/0x170 kernel/softirq.c:190 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:176 [inline] _raw_spin_unlock_bh+0x51/0x60 kernel/locking/spinlock.c:207 spin_unlock_bh include/linux/spinlock.h:399 [inline] cgroup_idr_remove kernel/cgroup/cgroup.c:343 [inline] css_free_rwork_fn+0x106/0x680 kernel/cgroup/cgroup.c:5050 process_one_work+0x6b4/0xfb0 kernel/workqueue.c:2296 worker_thread+0xb15/0x1600 kernel/workqueue.c:2442 kthread+0x371/0x390 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 Modules linked in: ---[ end trace 2c8d7c89d484fe8a ]--- RIP: 0010:__list_add_valid+0xbb/0xc0 lib/list_debug.c:26 Code: 48 c7 c7 e0 c3 49 85 4c 89 e6 4c 89 f1 31 c0 e8 e2 9b 01 ff 0f 0b 48 c7 c7 a0 c4 49 85 4c 89 f6 4c 89 e1 31 c0 e8 cc 9b 01 ff <0f> 0b 0f 1f 00 55 48 89 e5 41 57 41 56 41 54 53 49 89 fe 49 bc 00 RSP: 0018:ffffc900001609e0 EFLAGS: 00010046 RAX: 0000000000000075 RBX: ffff8881f715c068 RCX: af2b18e851678f00 RDX: 0000000080000102 RSI: 0000000080000102 RDI: 0000000000000000 RBP: ffffc90000160a08 R08: ffffffff815454d8 R09: 0000000000000003 R10: fffff5200002c091 R11: 0000000000000004 R12: ffff88810e794870 R13: dffffc0000000000 R14: ffff8881f715c060 R15: ffff88810e794870 FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555555ad8380 CR3: 000000011d102000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400