list_del corruption. prev->next should be ffff888031dc0ba8, but was ffff888060e9aba8. (prev=ffff88807f2f93c0) ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:64! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 UID: 0 PID: 5887 Comm: kworker/0:5 Not tainted 6.13.0-rc6-syzkaller-00133-g47e55e4b410f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: events bpf_prog_free_deferred RIP: 0010:__list_del_entry_valid_or_report+0x11b/0x140 lib/list_debug.c:62 Code: 3e fc 90 0f 0b 48 c7 c7 e0 b4 5f 8c 4c 89 fe e8 8b 59 3e fc 90 0f 0b 48 c7 c7 40 b5 5f 8c 4c 89 fe 48 89 d9 e8 76 59 3e fc 90 <0f> 0b 48 c7 c7 c0 b5 5f 8c 4c 89 fe 4c 89 f1 e8 61 59 3e fc 90 0f RSP: 0018:ffffc9000421fa00 EFLAGS: 00010246 RAX: 000000000000006d RBX: ffff88807f2f93c0 RCX: 454f1bc5b4d8e000 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc9000421fb38 R08: ffffffff817f1a7c R09: fffffbfff1cfa210 R10: dffffc0000000000 R11: fffffbfff1cfa210 R12: dffffc0000000000 R13: dffffc0000000000 R14: ffff88807f2f93c0 R15: ffff888031dc0ba8 FS: 0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f77d8d6b7e0 CR3: 000000006b0a8000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __list_del_entry_valid include/linux/list.h:124 [inline] __list_del_entry include/linux/list.h:215 [inline] list_del include/linux/list.h:229 [inline] nsim_bpf_destroy_prog+0xd9/0x1f0 drivers/net/netdevsim/bpf.c:281 __bpf_prog_offload_destroy kernel/bpf/offload.c:113 [inline] bpf_prog_dev_bound_destroy+0x2aa/0x590 kernel/bpf/offload.c:392 bpf_prog_free_deferred+0x3c5/0x710 kernel/bpf/core.c:2801 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__list_del_entry_valid_or_report+0x11b/0x140 lib/list_debug.c:62 Code: 3e fc 90 0f 0b 48 c7 c7 e0 b4 5f 8c 4c 89 fe e8 8b 59 3e fc 90 0f 0b 48 c7 c7 40 b5 5f 8c 4c 89 fe 48 89 d9 e8 76 59 3e fc 90 <0f> 0b 48 c7 c7 c0 b5 5f 8c 4c 89 fe 4c 89 f1 e8 61 59 3e fc 90 0f RSP: 0018:ffffc9000421fa00 EFLAGS: 00010246 RAX: 000000000000006d RBX: ffff88807f2f93c0 RCX: 454f1bc5b4d8e000 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc9000421fb38 R08: ffffffff817f1a7c R09: fffffbfff1cfa210 R10: dffffc0000000000 R11: fffffbfff1cfa210 R12: dffffc0000000000 R13: dffffc0000000000 R14: ffff88807f2f93c0 R15: ffff888031dc0ba8 FS: 0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f77d8d6b7e0 CR3: 000000006b0a8000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400