syzbot


WARNING: kmalloc bug in bpf_check
Status: upstream: reported C repro on 2021/09/04 00:01
Reported-by: syzbot+f3e749d4c662818ae439@syzkaller.appspotmail.com
Fix commit: 0e6491b55970 bpf: Add oversize check before call kvcalloc()
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-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-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 89d, last: 76d

Cause bisection: introduced by (bisect log) :
commit 7661809d493b426e979f39ab512e3adf41fbcc69
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Wed Jul 14 16:45:49 2021 +0000

  mm: don't allow oversized kvmalloc() calls

Crash: WARNING: kmalloc bug in check_btf_line (log)
Repro: C syz .config
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
WARNING: kmalloc bug in check_btf_line C unreliable 97 74d 88d 0/22 closed as dup on 2021/09/13 11:12
Patch testing requests:
Created Duration User Patch Repo Result
2021/09/13 05:13 17m mudongliangabcd@gmail.com patch upstream OK

Sample crash report:

Crashes (34):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2021/09/03 12:29 upstream a9c9a6f741cd f62a5829 .config log report syz C WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-selinux-root 2021/09/03 12:11 upstream a9c9a6f741cd f62a5829 .config log report syz C WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-selinux-root 2021/09/16 05:43 upstream b7213ffa0e58 07e953c1 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-selinux-root 2021/09/15 16:30 upstream 3ca706c189db 07e953c1 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-smack-root 2021/09/15 16:26 upstream 3ca706c189db 07e953c1 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-smack-root 2021/09/15 09:16 upstream 1619b69edce1 07e953c1 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-selinux-root 2021/09/15 08:13 upstream 1619b69edce1 07e953c1 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-smack-root 2021/09/13 16:49 upstream 6880fa6c5660 3ce60af8 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-selinux-root 2021/09/13 16:46 upstream 6880fa6c5660 3ce60af8 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-selinux-root 2021/09/12 20:29 upstream 78e709522d2c 5ae8508a .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-smack-root 2021/09/12 20:25 upstream 78e709522d2c 5ae8508a .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-selinux-root 2021/09/12 02:18 upstream c605c39677b9 5ae8508a .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-smack-root 2021/09/12 02:16 upstream c605c39677b9 5ae8508a .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-smack-root 2021/09/11 17:46 upstream 926de8c4326c 5ae8508a .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-selinux-root 2021/09/11 17:45 upstream 926de8c4326c 5ae8508a .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-smack-root 2021/09/11 10:10 upstream 926de8c4326c 5ae8508a .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-smack-root 2021/09/10 00:47 upstream a3fa7a101dcf e2776ee4 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-selinux-root 2021/09/10 00:42 upstream a3fa7a101dcf e2776ee4 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-selinux-root 2021/09/08 18:41 upstream ac08b1c68d1b e2776ee4 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-selinux-root 2021/09/08 04:01 upstream a2b28235335f 064c9eb7 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-smack-root 2021/09/08 03:59 upstream a2b28235335f 064c9eb7 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-selinux-root 2021/09/07 02:49 upstream 27151f177827 6ca60148 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-smack-root 2021/09/07 02:45 upstream 0319b848b155 6ca60148 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-selinux-root 2021/09/05 19:59 upstream 49624efa65ac d236a457 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-smack-root 2021/09/05 19:41 upstream 49624efa65ac d236a457 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-smack-root 2021/09/04 04:25 upstream 7cca308cfdc0 d236a457 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-selinux-root 2021/09/03 10:07 upstream a9c9a6f741cd f62a5829 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-smack-root 2021/09/03 10:04 upstream a9c9a6f741cd f62a5829 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-selinux-root 2021/09/03 09:40 upstream a9c9a6f741cd f62a5829 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-smack-root 2021/09/03 09:27 upstream a9c9a6f741cd f62a5829 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-selinux-root 2021/09/03 09:05 upstream a9c9a6f741cd f62a5829 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-selinux-root 2021/09/03 08:50 upstream a9c9a6f741cd f62a5829 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-selinux-root 2021/09/03 07:43 upstream a9c9a6f741cd 15cea0a3 .config log report info WARNING: kmalloc bug in bpf_check
ci-upstream-kasan-gce-selinux-root 2021/09/03 07:19 upstream a9c9a6f741cd 15cea0a3 .config log report info WARNING: kmalloc bug in bpf_check