syzbot


WARNING in taprio_change

Status: fixed on 2021/11/10 00:50
Reported-by: syzbot+d50710fd0873a9c6b40c@syzkaller.appspotmail.com
Fix commit: ed8157f1ebf1 net: sched: tapr: prevent cycle_time == 0 in parse_taprio_schedule
First crash: 744d, last: 507d

Cause bisection: introduced by (bisect log) :
commit b5b73b26b3ca34574124ed7ae9c5ba8391a7f176
Author: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Date: Thu Sep 10 00:03:11 2020 +0000

  taprio: Fix allowing too small intervals

Crash: WARNING in taprio_change (log)
Repro: C syz .config
Patch testing requests:
Created Duration User Patch Repo Result
2021/04/15 23:21 19m ducheng2@gmail.com patch upstream OK
2021/04/14 06:30 18m ducheng2@gmail.com patch upstream OK
2021/04/05 07:28 13m ducheng2@gmail.com upstream report log

Sample crash report:
netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
------------[ cut here ]------------
WARNING: CPU: 1 PID: 8396 at net/sched/sch_taprio.c:999 taprio_get_start_time net/sched/sch_taprio.c:999 [inline]
WARNING: CPU: 1 PID: 8396 at net/sched/sch_taprio.c:999 taprio_change+0x3119/0x3fe0 net/sched/sch_taprio.c:1550
Modules linked in:
CPU: 1 PID: 8396 Comm: syz-executor420 Not tainted 5.12.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:taprio_get_start_time net/sched/sch_taprio.c:999 [inline]
RIP: 0010:taprio_change+0x3119/0x3fe0 net/sched/sch_taprio.c:1550
Code: 8b 44 24 18 41 bc ea ff ff ff 48 c7 00 00 75 6b 8a e8 0b ce 3d fa 48 8b 7c 24 08 e8 41 a1 d5 01 e9 10 d9 ff ff e8 f7 cd 3d fa <0f> 0b 48 c7 c7 a0 74 6b 8a e8 39 a5 06 00 48 83 7c 24 18 00 74 2e
RSP: 0018:ffffc900019f71e8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff8880358a8340 RSI: ffffffff8735c4d9 RDI: 0000000000000003
RBP: 167b39cca7849ed3 R08: 0000000000000000 R09: ffffffff901b797f
R10: ffffffff8735b403 R11: 1ffffffff1f4253d R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  000000000119b300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8b417cc000 CR3: 0000000015196000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 taprio_init+0x52e/0x670 net/sched/sch_taprio.c:1709
 qdisc_create+0x475/0x12f0 net/sched/sch_api.c:1247
 tc_modify_qdisc+0x4c8/0x1a50 net/sched/sch_api.c:1663
 rtnetlink_rcv_msg+0x44e/0xad0 net/core/rtnetlink.c:5553
 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2502
 netlink_unicast_kernel net/netlink/af_netlink.c:1312 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1338
 netlink_sendmsg+0x856/0xd90 net/netlink/af_netlink.c:1927
 sock_sendmsg_nosec net/socket.c:654 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:674
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2350
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2404
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2433
 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x4434b9
Code: 28 c3 e8 4a 15 00 00 66 2e 0f 1f 84 00 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe01232a98 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007ffe01232aa8 RCX: 00000000004434b9
RDX: 0000000000000000 RSI: 00000000200007c0 RDI: 0000000000000004
RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe01232ab0
R13: 00007ffe01232ad0 R14: 00000000004b8018 R15: 00000000004004b8

Crashes (746):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-selinux-root 2021/05/02 10:43 upstream d2b6f8a17919 77e2b668 .config log report syz C WARNING in taprio_change
ci-upstream-kasan-gce-smack-root 2021/04/04 15:46 upstream 2023a53bdf41 6a81331a .config log report syz C WARNING in taprio_change
ci-upstream-kasan-gce-root 2021/04/04 05:24 upstream 57fbdb15ec42 6a81331a .config log report syz C WARNING in taprio_change
ci-upstream-kasan-gce 2020/12/11 11:04 upstream 33dc9614dc20 f900b48c .config log report syz C
ci-upstream-kasan-gce-selinux-root 2020/09/28 15:01 upstream a1b8638ba132 6bfdbe89 .config log report syz C
ci-upstream-kasan-gce-root 2020/09/26 23:12 upstream 7c7ec3226f5f 2d5ea0cb .config log report syz C
ci-upstream-net-this-kasan-gce 2020/11/02 04:13 net 859191b234f8 8bc4594f .config log report syz C
ci-upstream-net-this-kasan-gce 2020/09/12 19:24 net 5760d9acbe95 ce441f06 .config log report syz C
ci-upstream-net-kasan-gce 2020/11/02 04:13 net-next c43fd36f7fec 8bc4594f .config log report syz C
ci-upstream-kasan-gce-selinux-root 2021/05/08 08:50 upstream d2b6f8a17919 bc5434be .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-root 2021/05/07 16:24 upstream d2b6f8a17919 f6da8120 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-selinux-root 2021/05/07 16:09 upstream d2b6f8a17919 f6da8120 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-root 2021/05/07 06:01 upstream d2b6f8a17919 06585184 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-selinux-root 2021/05/06 22:25 upstream d2b6f8a17919 06585184 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-root 2021/05/03 07:03 upstream d2b6f8a17919 77e2b668 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-selinux-root 2021/05/02 23:14 upstream d2b6f8a17919 77e2b668 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-smack-root 2021/05/02 21:55 upstream d2b6f8a17919 77e2b668 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce 2021/05/02 12:51 upstream d2b6f8a17919 77e2b668 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-selinux-root 2021/05/02 06:00 upstream d2b6f8a17919 77e2b668 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce 2021/05/01 22:38 upstream d2b6f8a17919 77e2b668 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-root 2021/05/01 17:06 upstream d2b6f8a17919 77e2b668 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-smack-root 2021/05/01 15:13 upstream d2b6f8a17919 77e2b668 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce 2021/05/01 11:25 upstream d2b6f8a17919 77e2b668 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-root 2021/04/28 02:30 upstream 57fa2369ab17 805b5003 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-root 2021/04/28 00:20 upstream 57fa2369ab17 805b5003 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-root 2021/04/27 06:43 upstream 4a0225c3d208 805b5003 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-root 2021/04/26 10:50 upstream 9f4ad9e425a1 2a82f1b3 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-smack-root 2021/04/26 02:52 upstream d2d09fbe33f8 2a82f1b3 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-root 2021/04/25 19:43 upstream 2a1d7946fa53 36c88236 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-selinux-root 2021/04/24 10:42 upstream e77a830c8297 17f0b706 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-selinux-root 2021/04/24 09:32 upstream e77a830c8297 17f0b706 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-smack-root 2021/04/24 05:26 upstream e77a830c8297 17f0b706 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-root 2021/04/23 12:21 upstream 18a3c5f7abfd 17f0b706 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce 2021/04/22 16:19 upstream 16fc44d6387e 33c28d03 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce 2021/04/21 23:58 upstream 16fc44d6387e 2bc8999a .config log report info WARNING in taprio_change
ci-upstream-kasan-gce 2021/04/21 23:42 upstream 16fc44d6387e 2bc8999a .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-root 2021/04/21 17:36 upstream 1fe5501ba1ab 95777977 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce 2021/04/21 16:20 upstream 1fe5501ba1ab 95777977 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-selinux-root 2021/04/20 22:04 upstream 7af08140979a c0ced557 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-smack-root 2021/04/20 10:05 upstream 7af08140979a 4285c989 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-smack-root 2021/04/20 08:52 upstream 7af08140979a 4285c989 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce 2021/04/20 07:49 upstream 7af08140979a 4285c989 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-root 2021/04/19 14:43 upstream bf05bf16c76b 50f523d7 .config log report info WARNING in taprio_change
ci-qemu-upstream 2021/04/17 18:17 upstream 9cdbf6467424 7e2b734b .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-smack-root 2021/04/17 17:58 upstream 9cdbf6467424 7e2b734b .config log report info WARNING in taprio_change
ci-upstream-kasan-gce 2021/04/15 18:32 upstream 7f75285ca572 fcdb12ba .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-386 2021/05/07 17:45 upstream d2b6f8a17919 f6da8120 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-386 2021/05/03 00:28 upstream d2b6f8a17919 77e2b668 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-386 2021/05/01 14:10 upstream d2b6f8a17919 77e2b668 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-386 2021/04/27 09:53 upstream 4a0225c3d208 805b5003 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-386 2021/04/24 07:50 upstream 8db5efb83fa9 17f0b706 .config log report info WARNING in taprio_change
ci-qemu-upstream-386 2021/03/27 08:55 upstream 0f4498cef9f5 a8529b82 .config log report info WARNING in taprio_change
ci-upstream-net-this-kasan-gce 2021/04/19 12:13 net 88a5af943985 50f523d7 .config log report info WARNING in taprio_change
ci-upstream-net-this-kasan-gce 2021/04/17 17:21 net f2764bd4f6a8 7e2b734b .config log report info WARNING in taprio_change
ci-upstream-net-this-kasan-gce 2021/04/16 22:45 net 0e0704bb9ea0 7e2b734b .config log report info WARNING in taprio_change
ci-upstream-net-kasan-gce 2021/05/06 21:13 net-next 95aafe911db6 06585184 .config log report info WARNING in taprio_change
ci-upstream-net-kasan-gce 2021/05/03 11:40 net-next 95aafe911db6 77e2b668 .config log report info WARNING in taprio_change
ci-upstream-net-kasan-gce 2021/05/02 09:51 net-next 95aafe911db6 77e2b668 .config log report info WARNING in taprio_change
ci-upstream-net-kasan-gce 2021/04/25 19:17 net-next b2f0ca00e6b3 36c88236 .config log report info WARNING in taprio_change
ci-upstream-net-kasan-gce 2021/04/24 23:42 net-next b2f0ca00e6b3 17f0b706 .config log report info WARNING in taprio_change
ci-upstream-linux-next-kasan-gce-root 2021/04/20 09:59 linux-next 1216f02e46a4 4285c989 .config log report info WARNING in taprio_change
ci-upstream-linux-next-kasan-gce-root 2021/04/19 14:51 linux-next 1216f02e46a4 50f523d7 .config log report info WARNING in taprio_change
ci-upstream-kasan-gce-386 2021/01/07 20:13 upstream 71c061d24438 c104d4a3 .config log report info
ci-upstream-net-this-kasan-gce 2020/09/12 19:06 net 5760d9acbe95 ce441f06 .config log report
* Struck through repros no longer work on HEAD.