list_add corruption. prev->next should be next (ffff8881f735c060), but was ffff888112fd4070. (prev=ffff888112fd4070). ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:28! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 411 Comm: syz-executor.1 Tainted: G W 5.10.110-syzkaller-00173-g07b78bf6d055 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__list_add_valid+0xc6/0xd0 lib/list_debug.c:26 Code: 48 c7 c7 80 d8 43 85 4c 89 e6 4c 89 f1 31 c0 e8 8d 10 40 02 0f 0b 48 c7 c7 40 d9 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: 87f9f65b4d447300 RDX: 0000000000000101 RSI: 0000000000000101 RDI: 0000000000000000 RBP: ffffc90000160a28 R08: ffffffff8153b2f8 R09: 0000000000000003 R10: fffff5200002c091 R11: 1ffff9200002c090 R12: ffff888112fd4070 R13: dffffc0000000000 R14: ffff8881f735c060 R15: ffff888112fd4070 FS: 000055555555a400(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555555b73b38 CR3: 000000010cd78000 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+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+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:__seqprop_spinlock_sequence include/linux/seqlock.h:277 [inline] RIP: 0010:path_init+0x175/0x1120 fs/namei.c:2297 Code: ba ff eb 5f 49 c7 c6 c0 d5 e0 85 49 c1 ee 03 66 0f 1f 44 00 00 f3 90 48 b8 00 00 00 00 00 fc ff df 41 0f b6 04 06 84 c0 75 12 <8b> 1d 75 be 2e 04 f6 c3 01 74 26 e8 1b a1 ba ff eb d9 48 c7 c1 c0 RSP: 0018:ffffc90000e978b8 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 000000000000050b RCX: ffff8881002d0000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90000e97950 R08: ffffffff81b2170a R09: ffffed1022615f6b R10: ffffed1022615f6b R11: 1ffff11022615f6a R12: ffff888113143320 R13: ffffc90000e97c18 R14: 1ffffffff0bc1ab8 R15: ffffc90000e97be0 path_openat+0x185/0x2fd0 fs/namei.c:3439 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:0x7f5c66948c28 Code: 24 18 31 c0 41 83 e2 40 75 40 89 f0 25 00 00 41 00 3d 00 00 41 00 74 32 44 89 c2 4c 89 ce bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 40 48 8b 4c 24 18 64 48 2b 0c 25 28 00 00 00 RSP: 002b:00007fffc2a1ac00 EFLAGS: 00000287 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 000000000000000b RCX: 00007f5c66948c28 RDX: 0000000000090800 RSI: 00007f5c669a229c RDI: 00000000ffffff9c RBP: 00007fffc2a1accc R08: 0000000000090800 R09: 00007f5c669a229c R10: 0000000000000000 R11: 0000000000000287 R12: 0000000000000000 R13: 000000000000c868 R14: 0000000000000006 R15: 00007fffc2a1ad30 Modules linked in: ---[ end trace 2a102412b34a7dc1 ]--- RIP: 0010:__list_add_valid+0xc6/0xd0 lib/list_debug.c:26 Code: 48 c7 c7 80 d8 43 85 4c 89 e6 4c 89 f1 31 c0 e8 8d 10 40 02 0f 0b 48 c7 c7 40 d9 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: 87f9f65b4d447300 RDX: 0000000000000101 RSI: 0000000000000101 RDI: 0000000000000000 RBP: ffffc90000160a28 R08: ffffffff8153b2f8 R09: 0000000000000003 R10: fffff5200002c091 R11: 1ffff9200002c090 R12: ffff888112fd4070 R13: dffffc0000000000 R14: ffff8881f735c060 R15: ffff888112fd4070 FS: 000055555555a400(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555555b73b38 CR3: 000000010cd78000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: ba ff eb 5f 49 mov $0x495febff,%edx 5: c7 c6 c0 d5 e0 85 mov $0x85e0d5c0,%esi b: 49 c1 ee 03 shr $0x3,%r14 f: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1) 15: f3 90 pause 17: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 1e: fc ff df 21: 41 0f b6 04 06 movzbl (%r14,%rax,1),%eax 26: 84 c0 test %al,%al 28: 75 12 jne 0x3c * 2a: 8b 1d 75 be 2e 04 mov 0x42ebe75(%rip),%ebx # 0x42ebea5 <-- trapping instruction 30: f6 c3 01 test $0x1,%bl 33: 74 26 je 0x5b 35: e8 1b a1 ba ff callq 0xffbaa155 3a: eb d9 jmp 0x15 3c: 48 rex.W 3d: c7 .byte 0xc7 3e: c1 .byte 0xc1 3f: c0 .byte 0xc0