syzbot


UBSAN: shift-out-of-bounds in profile_init
Status: upstream: reported C repro on 2021/07/14 12:47
Reported-by: syzbot+e68c89a9510c159d9684@syzkaller.appspotmail.com
Fix commit: 2d186afd04d6 profiling: fix shift-out-of-bounds bugs
Patched on: [ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte 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-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-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386]
First crash: 68d, last: 14d

Cause bisection: introduced by (bisect log) [release commit]:
commit 4d856f72c10ecb060868ed10ff1b1453943fc6c8
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Sun Sep 15 21:19:32 2019 +0000

  Linux 5.3

Crash: UBSAN: undefined-behaviour in profile_init (log)
Repro: C syz .config
Patch testing requests:
Created Duration User Patch Repo Result
2021/07/16 14:38 16m paskripkin@gmail.com patch upstream OK
2021/07/16 13:55 17m paskripkin@gmail.com patch upstream OK

Sample crash report:

Crashes (23):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2021/08/21 10:29 upstream fa54d366a6e4 b599f2fc .config log report syz C UBSAN: shift-out-of-bounds in profile_init
ci-upstream-kasan-gce 2021/08/21 08:44 upstream fa54d366a6e4 b599f2fc .config log report syz C UBSAN: shift-out-of-bounds in profile_init
ci-upstream-kasan-gce 2021/08/21 05:25 upstream d992fe5318d8 b599f2fc .config log report syz C UBSAN: shift-out-of-bounds in profile_init
ci-upstream-kasan-gce 2021/08/21 05:05 upstream d992fe5318d8 b599f2fc .config log report syz C UBSAN: shift-out-of-bounds in profile_init
ci-upstream-kasan-gce 2021/07/10 12:59 upstream 3dbdb38e2869 8f5a7b8c .config log report syz C UBSAN: shift-out-of-bounds in profile_init
ci-upstream-kasan-gce-root 2021/07/10 12:59 upstream 3dbdb38e2869 8f5a7b8c .config log report syz C UBSAN: shift-out-of-bounds in profile_init
ci-upstream-kasan-gce-smack-root 2021/07/10 12:57 upstream 3dbdb38e2869 8f5a7b8c .config log report syz C UBSAN: shift-out-of-bounds in profile_init
ci-upstream-kasan-gce-386 2021/08/31 01:47 upstream 7d2a07b76933 8f58a0ef .config log report syz C UBSAN: shift-out-of-bounds in profile_init
ci-upstream-kasan-gce-386 2021/08/31 00:05 upstream 7d2a07b76933 8f58a0ef .config log report syz C UBSAN: shift-out-of-bounds in profile_init
ci-upstream-kasan-gce-386 2021/08/30 23:45 upstream 7d2a07b76933 8f58a0ef .config log report syz C UBSAN: shift-out-of-bounds in profile_init
ci-upstream-kasan-gce-386 2021/08/30 23:12 upstream 7d2a07b76933 8f58a0ef .config log report syz C UBSAN: shift-out-of-bounds in profile_init
ci-upstream-kasan-gce-386 2021/07/10 15:31 upstream 3dbdb38e2869 8f5a7b8c .config log report syz C UBSAN: shift-out-of-bounds in profile_init
ci-upstream-linux-next-kasan-gce-root 2021/07/10 13:04 linux-next 92510a7fd93c 8f5a7b8c .config log report syz C UBSAN: shift-out-of-bounds in profile_init
ci-upstream-kasan-gce 2021/09/03 00:24 upstream 4ac6d90867a4 15cea0a3 .config log report info UBSAN: shift-out-of-bounds in profile_init
ci-upstream-kasan-gce 2021/08/13 05:28 upstream f8fbb47c6e86 3fd2ea69 .config log report info UBSAN: shift-out-of-bounds in profile_init
ci-upstream-kasan-gce-selinux-root 2021/07/10 12:51 upstream 3dbdb38e2869 8f5a7b8c .config log report info UBSAN: shift-out-of-bounds in profile_init
ci-upstream-kasan-gce-root 2021/07/10 12:46 upstream 3dbdb38e2869 8f5a7b8c .config log report info UBSAN: shift-out-of-bounds in profile_init
ci-upstream-kasan-gce-smack-root 2021/07/10 12:45 upstream 3dbdb38e2869 8f5a7b8c .config log report info UBSAN: shift-out-of-bounds in profile_init
ci-upstream-kasan-gce 2021/07/10 12:43 upstream 3dbdb38e2869 8f5a7b8c .config log report info UBSAN: shift-out-of-bounds in profile_init
ci-upstream-kasan-gce-386 2021/07/10 12:57 upstream 3dbdb38e2869 8f5a7b8c .config log report info UBSAN: shift-out-of-bounds in profile_init
ci-upstream-linux-next-kasan-gce-root 2021/08/08 17:25 linux-next 7999516e20bd 6972b106 .config log report info UBSAN: shift-out-of-bounds in profile_init
ci-upstream-linux-next-kasan-gce-root 2021/08/01 05:00 linux-next 8d4b477da1a8 6c236867 .config log report info UBSAN: shift-out-of-bounds in profile_init
ci-upstream-linux-next-kasan-gce-root 2021/07/10 12:49 linux-next 92510a7fd93c 8f5a7b8c .config log report info UBSAN: shift-out-of-bounds in profile_init