From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B779EC43461 for ; Mon, 14 Sep 2020 09:19:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 854FC206B2 for ; Mon, 14 Sep 2020 09:19:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726298AbgINJTX (ORCPT ); Mon, 14 Sep 2020 05:19:23 -0400 Received: from mail-io1-f79.google.com ([209.85.166.79]:36576 "EHLO mail-io1-f79.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726259AbgINJTU (ORCPT ); Mon, 14 Sep 2020 05:19:20 -0400 Received: by mail-io1-f79.google.com with SMTP id h8so10647486ioa.3 for ; Mon, 14 Sep 2020 02:19:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=PopK2tlLDApo/coeVBR5hxOMNG+Fyhkdx0BjdaxPuXg=; b=cnwKAss8GZDu+iaWBe9fh0Y1n8cqW+Fxl25WylxTGJiJH5McEGJEYbojv3S4/hcv5u yT+VOiK3hXTxR5gMRANlfOravUL/Y9w+sgiZIpF1U5QNIf3rDm0HCxRAdpei4rvz+AK5 svQw7KAmVOoPqcClXGXdW1vhTggk7UUg11G3baKYh0Buz4Bhl8VQHF9Upxy1S3aJik9z g4Piy4uQybKMQFQCTaUOuhPfBkOvjgdufxHNfv1Nl0YVF3MMcaZud6D6MO1ubtvf4u/M rpOBvktqfnN8itccNFil4AcMGIbDVv2oJ8ITA8RQYHN1HGZ1Cka7kPVKndHm0Rh3CMWs HqFQ== X-Gm-Message-State: AOAM531l3EZWclOkm0+LG+OobZYOuXK/LBl9AFDFjnUl9hxtkWPdZuG3 ODjcejQLaJdasiHkzAZ2WgUspC0FJ+1uyc6rgqnELx/cYT4y X-Google-Smtp-Source: ABdhPJyfAVpGu+Ap2ZipojX71v/uVILYtXP1eQDZ7okPmqpE5TLsKyaXV4LC/jLyDrgDuXfR80TtB4kX8ZpQdEVt95N51tsXLwSn MIME-Version: 1.0 X-Received: by 2002:a02:c8c6:: with SMTP id q6mr12316526jao.76.1600075159144; Mon, 14 Sep 2020 02:19:19 -0700 (PDT) Date: Mon, 14 Sep 2020 02:19:19 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000799c1c05af42878b@google.com> Subject: WARNING in taprio_change From: syzbot To: davem@davemloft.net, jhs@mojatatu.com, jiri@resnulli.us, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com, vinicius.gomes@intel.com, xiyou.wangcong@gmail.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 5760d9ac net: ethernet: ti: cpsw_new: fix suspend/resume git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=14c4e053900000 kernel config: https://syzkaller.appspot.com/x/.config?x=bd46548257448703 dashboard link: https://syzkaller.appspot.com/bug?extid=d50710fd0873a9c6b40c compiler: gcc (GCC) 10.1.0-syz 20200507 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=123345a5900000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15727cf1900000 The issue was bisected to: commit b5b73b26b3ca34574124ed7ae9c5ba8391a7f176 Author: Vinicius Costa Gomes Date: Thu Sep 10 00:03:11 2020 +0000 taprio: Fix allowing too small intervals bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=14cf2d59900000 final oops: https://syzkaller.appspot.com/x/report.txt?x=16cf2d59900000 console output: https://syzkaller.appspot.com/x/log.txt?x=12cf2d59900000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+d50710fd0873a9c6b40c@syzkaller.appspotmail.com Fixes: b5b73b26b3ca ("taprio: Fix allowing too small intervals") 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: 6841 at net/sched/sch_taprio.c:998 taprio_get_start_time net/sched/sch_taprio.c:998 [inline] WARNING: CPU: 1 PID: 6841 at net/sched/sch_taprio.c:998 taprio_change+0x1e12/0x2b60 net/sched/sch_taprio.c:1549 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 6841 Comm: syz-executor809 Not tainted 5.9.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x198/0x1fd lib/dump_stack.c:118 panic+0x347/0x7c0 kernel/panic.c:231 __warn.cold+0x20/0x46 kernel/panic.c:600 report_bug+0x1bd/0x210 lib/bug.c:198 handle_bug+0x38/0x90 arch/x86/kernel/traps.c:234 exc_invalid_op+0x14/0x40 arch/x86/kernel/traps.c:254 asm_exc_invalid_op+0x12/0x20 arch/x86/include/asm/idtentry.h:536 RIP: 0010:taprio_get_start_time net/sched/sch_taprio.c:998 [inline] RIP: 0010:taprio_change+0x1e12/0x2b60 net/sched/sch_taprio.c:1549 Code: 8b 44 24 08 41 bf ea ff ff ff 48 c7 00 c0 af 03 89 e8 52 9b 06 fb 48 8b 7c 24 10 e8 28 63 89 01 e9 6b eb ff ff e8 3e 9b 06 fb <0f> 0b 48 83 7c 24 08 00 74 2e e8 2f 9b 06 fb 48 8b 54 24 08 48 b8 RSP: 0018:ffffc9000515f2b8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff866dab09 RDX: ffff8880a643a240 RSI: ffffffff866dafc2 RDI: 0000000000000007 RBP: 16341fa0ca8d0652 R08: 0000000000000001 R09: ffffffff8c5f4aa7 R10: 0000000000000000 R11: 0000000000086848 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000002 R15: 0000000000000000 taprio_init+0x52e/0x670 net/sched/sch_taprio.c:1693 qdisc_create+0x4b6/0x12e0 net/sched/sch_api.c:1246 tc_modify_qdisc+0x4c8/0x1990 net/sched/sch_api.c:1662 rtnetlink_rcv_msg+0x44e/0xad0 net/core/rtnetlink.c:5563 netlink_rcv_skb+0x15a/0x430 net/netlink/af_netlink.c:2470 netlink_unicast_kernel net/netlink/af_netlink.c:1304 [inline] netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1330 netlink_sendmsg+0x856/0xd90 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:671 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2353 ___sys_sendmsg+0xf3/0x170 net/socket.c:2407 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2440 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x443839 Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 fb 0f fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffe06fb51e8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000443839 RDX: 0000000000000000 RSI: 00000000200007c0 RDI: 0000000000000004 RBP: 00007ffe06fb51f0 R08: 0000000001bbbbbb R09: 0000000001bbbbbb R10: 0000000001bbbbbb R11: 0000000000000246 R12: 00007ffe06fb5200 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Kernel Offset: disabled Rebooting in 86400 seconds.. --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. For information about bisection process see: https://goo.gl/tpsmEJ#bisection syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches