syzbot


kernel BUG in warn_crc32c_csum_combine

Status: upstream: reported C repro on 2022/10/24 02:37
Reported-by: syzbot+1e9af9185d8850e2c2fa@syzkaller.appspotmail.com
Fix commit: 7f57f8165cb6 af_key: Fix send_acquire race with pfkey_register
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 110d, last: 96d

Cause bisection: failed (bisect log)

Sample crash report:
------------[ cut here ]------------
kernel BUG at net/core/skbuff.c:120!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3637 Comm: syz-executor164 Not tainted 6.1.0-rc1-next-20221021-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
RIP: 0010:skb_push.cold-0x2/0x24
Code: f8 4c 8b 4c 24 10 8b 4b 70 41 56 45 89 e8 4c 89 e2 41 57 48 89 ee 48 c7 c7 80 69 d4 8a ff 74 24 10 ff 74 24 20 e8 b2 77 c1 ff <0f> 0b e8 d4 d0 f1 f7 4c 8b 64 24 18 e8 ba 52 3e f8 48 c7 c1 e0 76
RSP: 0018:ffffc90003e7ee70 EFLAGS: 00010286
RAX: 0000000000000086 RBX: ffff888079c00280 RCX: 0000000000000000
RDX: ffff888020a3ba80 RSI: ffffffff81621a58 RDI: fffff520007cfdc0
RBP: ffffffff8ad47720 R08: 0000000000000086 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000075626b73 R12: ffffffff883cc6c6
R13: 0000000000000048 R14: ffffffff8ad46940 R15: 00000000000000c0
FS:  00007f2b0a939700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9f0b184060 CR3: 00000000755db000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 skb_over_panic net/core/skbuff.c:125 [inline]
 warn_crc32c_csum_combine.cold+0x0/0x1d net/core/skbuff.c:2152
 dump_esp_combs net/key/af_key.c:3009 [inline]
 pfkey_send_acquire+0x1856/0x2520 net/key/af_key.c:3230
 km_query+0xac/0x220 net/xfrm/xfrm_state.c:2248
 xfrm_state_find+0x2bfe/0x4f10 net/xfrm/xfrm_state.c:1165
 xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2392 [inline]
 xfrm_tmpl_resolve+0x2f3/0xd40 net/xfrm/xfrm_policy.c:2437
 xfrm_resolve_and_create_bundle+0x123/0x2580 net/xfrm/xfrm_policy.c:2730
 xfrm_lookup_with_ifid+0x229/0x20f0 net/xfrm/xfrm_policy.c:3064
 xfrm_lookup net/xfrm/xfrm_policy.c:3193 [inline]
 xfrm_lookup_route+0x36/0x1e0 net/xfrm/xfrm_policy.c:3204
 ip_route_output_flow+0x114/0x150 net/ipv4/route.c:2880
 udp_sendmsg+0x1963/0x2740 net/ipv4/udp.c:1224
 inet_sendmsg+0x99/0xe0 net/ipv4/af_inet.c:825
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:734
 ____sys_sendmsg+0x334/0x8c0 net/socket.c:2482
 ___sys_sendmsg+0x110/0x1b0 net/socket.c:2536
 __sys_sendmmsg+0x18b/0x460 net/socket.c:2622
 __do_sys_sendmmsg net/socket.c:2651 [inline]
 __se_sys_sendmmsg net/socket.c:2648 [inline]
 __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2648
 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+0x63/0xcd
RIP: 0033:0x7f2b0a9adf89
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2b0a9392f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00007f2b0aa334d0 RCX: 00007f2b0a9adf89
RDX: 000000000800001d RSI: 0000000020007fc0 RDI: 0000000000000003
RBP: 00007f2b0aa002b8 R08: 0000000000000000 R09: 0000000000000000
R10: 000000a742250118 R11: 0000000000000246 R12: 00007f2b0aa000b8
R13: 00007f2b0aa001b8 R14: 0100000000000000 R15: 00007f2b0aa334d8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:skb_push.cold-0x2/0x24
Code: f8 4c 8b 4c 24 10 8b 4b 70 41 56 45 89 e8 4c 89 e2 41 57 48 89 ee 48 c7 c7 80 69 d4 8a ff 74 24 10 ff 74 24 20 e8 b2 77 c1 ff <0f> 0b e8 d4 d0 f1 f7 4c 8b 64 24 18 e8 ba 52 3e f8 48 c7 c1 e0 76
RSP: 0018:ffffc90003e7ee70 EFLAGS: 00010286
RAX: 0000000000000086 RBX: ffff888079c00280 RCX: 0000000000000000
RDX: ffff888020a3ba80 RSI: ffffffff81621a58 RDI: fffff520007cfdc0
RBP: ffffffff8ad47720 R08: 0000000000000086 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000075626b73 R12: ffffffff883cc6c6
R13: 0000000000000048 R14: ffffffff8ad46940 R15: 00000000000000c0
FS:  00007f2b0a939700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcc1415d300 CR3: 00000000755db000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (17):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-linux-next-kasan-gce-root 2022/10/23 20:45 linux-next 4d48f589d294 23bf86af .config strace log report syz C [disk image] [vmlinux] [mounted in repro] kernel BUG in warn_crc32c_csum_combine
ci-upstream-linux-next-kasan-gce-root 2022/11/02 11:19 linux-next 4d48f589d294 edac4fd1 .config console log report info [disk image] [vmlinux] kernel BUG in warn_crc32c_csum_combine
ci-upstream-linux-next-kasan-gce-root 2022/11/02 08:17 linux-next 4d48f589d294 edac4fd1 .config console log report info [disk image] [vmlinux] kernel BUG in warn_crc32c_csum_combine
ci-upstream-linux-next-kasan-gce-root 2022/11/01 08:08 linux-next 4d48f589d294 a1d8560a .config console log report info [disk image] [vmlinux] kernel BUG in warn_crc32c_csum_combine
ci-upstream-linux-next-kasan-gce-root 2022/11/01 04:56 linux-next 4d48f589d294 a1d8560a .config console log report info [disk image] [vmlinux] kernel BUG in warn_crc32c_csum_combine
ci-upstream-linux-next-kasan-gce-root 2022/11/01 03:59 linux-next 4d48f589d294 a1d8560a .config console log report info [disk image] [vmlinux] kernel BUG in warn_crc32c_csum_combine
ci-upstream-linux-next-kasan-gce-root 2022/10/31 15:02 linux-next 4d48f589d294 2a71366b .config console log report info [disk image] [vmlinux] kernel BUG in warn_crc32c_csum_combine
ci-upstream-linux-next-kasan-gce-root 2022/10/30 09:24 linux-next 4d48f589d294 2a71366b .config console log report info [disk image] [vmlinux] kernel BUG in warn_crc32c_csum_combine
ci-upstream-linux-next-kasan-gce-root 2022/10/27 19:48 linux-next 4d48f589d294 86777b7f .config console log report info [disk image] [vmlinux] kernel BUG in warn_crc32c_csum_combine
ci-upstream-linux-next-kasan-gce-root 2022/10/27 18:55 linux-next 4d48f589d294 86777b7f .config console log report info [disk image] [vmlinux] kernel BUG in warn_crc32c_csum_combine
ci-upstream-linux-next-kasan-gce-root 2022/10/25 11:11 linux-next 4d48f589d294 45645420 .config console log report info [disk image] [vmlinux] kernel BUG in warn_crc32c_csum_combine
ci-upstream-linux-next-kasan-gce-root 2022/10/25 10:43 linux-next 4d48f589d294 45645420 .config console log report info [disk image] [vmlinux] kernel BUG in warn_crc32c_csum_combine
ci-upstream-linux-next-kasan-gce-root 2022/10/25 09:04 linux-next 4d48f589d294 45645420 .config console log report info [disk image] [vmlinux] kernel BUG in warn_crc32c_csum_combine
ci-upstream-linux-next-kasan-gce-root 2022/10/23 18:59 linux-next 4d48f589d294 23bf86af .config console log report info [disk image] [vmlinux] kernel BUG in warn_crc32c_csum_combine
ci-upstream-linux-next-kasan-gce-root 2022/10/23 17:09 linux-next 4d48f589d294 23bf86af .config console log report info [disk image] [vmlinux] kernel BUG in warn_crc32c_csum_combine
ci-upstream-linux-next-kasan-gce-root 2022/10/20 06:51 linux-next acee3e83b493 b31320fc .config console log report info [disk image] [vmlinux] kernel BUG in warn_crc32c_csum_combine
ci-upstream-linux-next-kasan-gce-root 2022/10/19 05:13 linux-next a72b55bc981b b31320fc .config console log report info [disk image] [vmlinux] kernel BUG in warn_crc32c_csum_combine
* Struck through repros no longer work on HEAD.