syzbot


UBSAN: shift-out-of-bounds in xfrm_get_default
Status: upstream: reported C repro on 2021/08/30 20:19
Reported-by: syzbot+b2be9dd8ca6f6c73ee2d@syzkaller.appspotmail.com
Fix commit: 3c10ffddc61f net: xfrm: fix shift-out-of-bounds in xfrm_get_default
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: 99d, last: 59d

Cause bisection: introduced by (bisect log) :
commit 2d151d39073aff498358543801fca0f670fea981
Author: Steffen Klassert <steffen.klassert@secunet.com>
Date: Sun Jul 18 07:11:06 2021 +0000

  xfrm: Add possibility to set the default to block if we have no policy

Crash: UBSAN: shift-out-of-bounds in xfrm_get_default (log)
Repro: C syz .config
Patch testing requests:
Created Duration User Patch Repo Result
2021/09/01 20:21 16m paskripkin@gmail.com patch git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git master OK
2021/09/01 18:57 8m paskripkin@gmail.com patch git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git master error

Sample crash report:

Crashes (104):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-net-kasan-gce 2021/08/29 19:02 net-next eaf2aaec0be4 be2c130d .config log report syz C UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-kasan-gce-selinux-root 2021/10/06 18:27 upstream 60a9483534ed 0a63fd36 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-kasan-gce 2021/10/03 18:49 upstream 7b66f4393ad4 db0f5787 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-kasan-gce 2021/09/28 08:23 upstream 0513e464f900 78494d16 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-kasan-gce 2021/09/27 20:02 upstream 5816b3e6577e 78494d16 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-kasan-gce-smack-root 2021/09/14 12:47 upstream d0ee23f9d78b 58d09404 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-kasan-gce-root 2021/09/08 15:43 upstream ac08b1c68d1b e2776ee4 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-kasan-gce-386 2021/09/28 11:27 upstream 0513e464f900 78494d16 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-this-kasan-gce 2021/10/06 18:15 net 7707a4d01a64 0a63fd36 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-this-kasan-gce 2021/10/05 22:52 net a56d447f196f 0a63fd36 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-this-kasan-gce 2021/10/03 10:23 net 7cd8b1542a7b db0f5787 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-this-kasan-gce 2021/10/01 14:43 net ca6e11c337da 1d849ab4 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-this-kasan-gce 2021/09/27 22:52 net 763716a55cb1 78494d16 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-this-kasan-gce 2021/09/27 07:36 net b193e15ac69d 78494d16 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-this-kasan-gce 2021/09/26 19:46 net b193e15ac69d 8cac236e .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-this-kasan-gce 2021/09/26 14:28 net b193e15ac69d 8cac236e .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-this-kasan-gce 2021/09/26 09:26 net 7fe7f3182a0d 8cac236e .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-this-kasan-gce 2021/09/26 06:12 net 7fe7f3182a0d 8cac236e .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-this-kasan-gce 2021/09/19 08:38 net 02319bf15acf 70b76c1d .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-this-kasan-gce 2021/09/18 23:11 net 02319bf15acf 70b76c1d .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-this-kasan-gce 2021/09/16 15:56 net 98dc68f8b0c2 aae492f2 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-this-kasan-gce 2021/09/16 10:38 net a57d8c217aad 07e953c1 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-this-kasan-gce 2021/09/16 05:44 net a57d8c217aad 07e953c1 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-this-kasan-gce 2021/09/12 02:13 net 08dad2f4d541 5ae8508a .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/10/08 05:52 net-next 44cc24b04bed efe0f24d .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/10/05 00:41 net-next 9ac936276f86 ce697b49 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/10/04 03:20 net-next 0693b27644f0 db0f5787 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/10/03 17:01 net-next 0693b27644f0 db0f5787 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/09/28 05:13 net-next b69c99463d41 78494d16 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/09/27 17:12 net-next b69c99463d41 78494d16 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/09/27 04:00 net-next d59bdda85eb7 78494d16 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/09/26 08:20 net-next 24aa160d5375 8cac236e .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/09/26 05:01 net-next 24aa160d5375 8cac236e .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/09/24 08:17 net-next 2fcd14d0f780 8cac236e .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/09/19 23:08 net-next 9eb7b5e7cb50 70b76c1d .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/09/19 07:37 net-next 983e59a27b92 70b76c1d .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/09/18 17:33 net-next 0efcc3f20145 70b76c1d .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/09/18 07:00 net-next 5ef8a0291513 70b76c1d .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/09/18 02:27 net-next 5ef8a0291513 70b76c1d .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/09/17 00:58 net-next 52583c8d8b12 aae492f2 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/09/16 22:29 net-next 52583c8d8b12 aae492f2 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/09/16 18:41 net-next 52583c8d8b12 aae492f2 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/09/16 12:07 net-next 5706383b30cf 07e953c1 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/09/16 01:58 net-next 5706383b30cf 07e953c1 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/09/12 14:40 net-next 626bf91a292e 5ae8508a .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/09/12 13:09 net-next 626bf91a292e 5ae8508a .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/09/12 05:17 net-next 626bf91a292e 5ae8508a .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/09/11 05:51 net-next 626bf91a292e 5ae8508a .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/09/10 05:46 net-next 626bf91a292e e2776ee4 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/09/09 22:23 net-next 626bf91a292e e2776ee4 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-net-kasan-gce 2021/08/29 18:39 net-next eaf2aaec0be4 be2c130d .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default
ci-upstream-linux-next-kasan-gce-root 2021/09/08 16:16 linux-next 999569d59a0a e2776ee4 .config log report info UBSAN: shift-out-of-bounds in xfrm_get_default