syzbot


BUG: corrupted list in bpf_ksym_del

Status: auto-closed as invalid on 2022/03/20 08:29
Subsystems: bpf
[Documentation on labels]
First crash: 860d, last: 851d

Sample crash report:
list_del corruption, ffff8880845d69e0->prev is LIST_POISON2 (dead000000000122)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:48!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 11172 Comm: syz-executor.2 Not tainted 5.16.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_del_entry_valid.cold+0x37/0x4a lib/list_debug.c:48
Code: f1 ff 0f 0b 4c 89 ea 48 89 ee 48 c7 c7 40 1c 05 8a e8 3b 6b f1 ff 0f 0b 4c 89 e2 48 89 ee 48 c7 c7 a0 1c 05 8a e8 27 6b f1 ff <0f> 0b 48 89 ee 48 c7 c7 60 1d 05 8a e8 16 6b f1 ff 0f 0b 83 c3 01
RSP: 0018:ffffc90004577ba8 EFLAGS: 00010286
RAX: 000000000000004e RBX: ffff8880845d6950 RCX: 0000000000000000
RDX: ffff88801d8a0000 RSI: ffffffff815f21d8 RDI: fffff520008aef67
RBP: ffff8880845d69e0 R08: 000000000000004e R09: 0000000000000000
R10: ffffffff815ebf7e R11: 0000000000000000 R12: dead000000000122
R13: ffffffff8bc15b00 R14: 0000000000000012 R15: ffffc90001ebe000
FS:  00007fcde8700700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcde8f439c8 CR3: 0000000025149000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 __list_del_entry include/linux/list.h:134 [inline]
 list_del_rcu include/linux/rculist.h:157 [inline]
 __bpf_ksym_del kernel/bpf/core.c:636 [inline]
 bpf_ksym_del+0x94/0x1d0 kernel/bpf/core.c:642
 bpf_prog_kallsyms_del kernel/bpf/core.c:675 [inline]
 bpf_prog_kallsyms_del_all+0x25a/0x2f0 kernel/bpf/core.c:526
 __bpf_prog_put_noref+0x1f/0x400 kernel/bpf/syscall.c:1780
 __bpf_prog_put.constprop.0+0x1d3/0x220 kernel/bpf/syscall.c:1822
 psock_set_prog include/linux/skmsg.h:477 [inline]
 sock_map_prog_update+0x121/0x210 net/core/sock_map.c:1449
 sock_map_get_from_fd+0x13c/0x1b0 net/core/sock_map.c:76
 bpf_prog_attach kernel/bpf/syscall.c:3220 [inline]
 __sys_bpf+0x2a7e/0x5950 kernel/bpf/syscall.c:4642
 __do_sys_bpf kernel/bpf/syscall.c:4737 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:4735 [inline]
 __x64_sys_bpf+0x75/0xb0 kernel/bpf/syscall.c:4735
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fcde9dcce99
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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fcde8700168 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007fcde9ee0100 RCX: 00007fcde9dcce99
RDX: 0000000000000010 RSI: 0000000020000080 RDI: 0000000000000008
RBP: 00007fcde9e26ff1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff836a56ff R14: 00007fcde8700300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 08032c4b3d2e50a8 ]---
RIP: 0010:__list_del_entry_valid.cold+0x37/0x4a lib/list_debug.c:48
Code: f1 ff 0f 0b 4c 89 ea 48 89 ee 48 c7 c7 40 1c 05 8a e8 3b 6b f1 ff 0f 0b 4c 89 e2 48 89 ee 48 c7 c7 a0 1c 05 8a e8 27 6b f1 ff <0f> 0b 48 89 ee 48 c7 c7 60 1d 05 8a e8 16 6b f1 ff 0f 0b 83 c3 01
RSP: 0018:ffffc90004577ba8 EFLAGS: 00010286
RAX: 000000000000004e RBX: ffff8880845d6950 RCX: 0000000000000000
RDX: ffff88801d8a0000 RSI: ffffffff815f21d8 RDI: fffff520008aef67
RBP: ffff8880845d69e0 R08: 000000000000004e R09: 0000000000000000
R10: ffffffff815ebf7e R11: 0000000000000000 R12: dead000000000122
R13: ffffffff8bc15b00 R14: 0000000000000012 R15: ffffc90001ebe000
FS:  00007fcde8700700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcde8f439c8 CR3: 0000000025149000 CR4: 0000000000350ef0

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/17 20:37 upstream 6441998e2e37 44068e19 .config console log report info ci-upstream-kasan-gce-root BUG: corrupted list in bpf_ksym_del
2021/12/20 08:21 net-next-old 434ed2138994 021b36cb .config console log report info ci-upstream-net-kasan-gce BUG: corrupted list in bpf_ksym_del
2021/12/18 04:27 net-next-old 86df8be67f6c 44068e19 .config console log report info ci-upstream-net-kasan-gce BUG: corrupted list in bpf_ksym_del
2021/12/17 13:38 net-next-old 7cd2802d7496 44068e19 .config console log report info ci-upstream-net-kasan-gce BUG: corrupted list in bpf_ksym_del
2021/12/17 06:13 net-next-old 7cd2802d7496 44068e19 .config console log report info ci-upstream-net-kasan-gce BUG: corrupted list in bpf_ksym_del
2021/12/13 18:52 net-next-old 9b5bcb193a3b 49ca1f59 .config console log report info ci-upstream-net-kasan-gce BUG: corrupted list in bpf_ksym_del
2021/12/13 13:14 net-next-old 9b5bcb193a3b 49ca1f59 .config console log report info ci-upstream-net-kasan-gce BUG: corrupted list in bpf_ksym_del
2021/12/11 00:35 net-next-old e5d75fc20b92 49ca1f59 .config console log report info ci-upstream-net-kasan-gce BUG: corrupted list in bpf_ksym_del
* Struck through repros no longer work on HEAD.