syzbot


WARNING in cbq_destroy_class

Status: fixed on 2020/02/18 14:31
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+0a0596220218fcb603a8@syzkaller.appspotmail.com
Fix commit: 2e24cd755552 net_sched: fix ops->bind_class() implementations
First crash: 1785d, last: 1762d
Cause bisection: introduced by (bisect log) :
commit d51aae68b142f48232257e96ce317db25445418d
Author: Jiri Pirko <jiri@mellanox.com>
Date: Mon Nov 27 17:37:21 2017 +0000

  net: sched: cbq: create block for q->link.block

Crash: WARNING in cbq_destroy_class (log)
Repro: C syz .config
  
Discussions (5)
Title Replies (including bot) Last reply
[PATCH 5.5 00/56] 5.5.1-stable review 66 (66) 2020/01/31 22:33
[PATCH 4.19 00/55] 4.19.101-stable review 66 (66) 2020/01/31 21:44
[PATCH 5.4 000/110] 5.4.17-stable review 116 (116) 2020/01/31 19:44
[Patch net] net_sched: fix ops->bind_class() implementations 2 (2) 2020/01/27 09:52
WARNING in cbq_destroy_class 0 (2) 2020/01/22 03:20
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in cbq_destroy_class C done 1 1783d 1783d 1/1 fixed on 2020/02/23 20:58
linux-4.14 WARNING in cbq_destroy_class C inconclusive 1 1662d 1782d 0/1 upstream: reported C repro on 2020/01/24 21:03
Last patch testing requests (2)
Created Duration User Patch Repo Result
2020/01/24 01:04 19m xiyou.wangcong@gmail.com https://github.com/congwang/linux.git syzbot OK
2020/01/23 04:14 18m xiyou.wangcong@gmail.com https://github.com/congwang/linux.git syzbot OK

Sample crash report:
netlink: 96 bytes leftover after parsing attributes in process `syz-executor754'.
------------[ cut here ]------------
WARNING: CPU: 0 PID: 10262 at net/sched/sch_cbq.c:1437 cbq_destroy_class+0x11a/0x150 net/sched/sch_cbq.c:1437
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 10262 Comm: syz-executor754 Not tainted 5.5.0-rc7-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+0x197/0x210 lib/dump_stack.c:118
 panic+0x2e3/0x75c kernel/panic.c:221
 __warn.cold+0x2f/0x3e kernel/panic.c:582
 report_bug+0x289/0x300 lib/bug.c:195
 fixup_bug arch/x86/kernel/traps.c:174 [inline]
 fixup_bug arch/x86/kernel/traps.c:169 [inline]
 do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:267
 do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:286
 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027
RIP: 0010:cbq_destroy_class+0x11a/0x150 net/sched/sch_cbq.c:1437
Code: 00 00 e8 d9 57 da ff 49 39 dc 74 0d e8 9f 98 30 fb 4c 89 e7 e8 67 09 6e fb e8 92 98 30 fb 5b 41 5c 41 5d 5d c3 e8 86 98 30 fb <0f> 0b e9 37 ff ff ff e8 9a 58 6e fb e9 12 ff ff ff e8 b0 58 6e fb
RSP: 0018:ffffc900020170e0 EFLAGS: 00010293
RAX: ffff888086ba82c0 RBX: ffff88809a878000 RCX: ffffffff86445bcf
RDX: 0000000000000000 RSI: ffffffff86445c9a RDI: 0000000000000005
RBP: ffffc900020170f8 R08: ffff888086ba82c0 R09: fffffbfff165e7a0
R10: fffffbfff165e79f R11: ffffffff8b2f3cff R12: ffff88809a878320
R13: 0000000000000001 R14: 0000000000000000 R15: ffff88809a878320
 cbq_destroy net/sched/sch_cbq.c:1471 [inline]
 cbq_destroy+0x208/0x2c0 net/sched/sch_cbq.c:1447
 qdisc_destroy+0x11f/0x630 net/sched/sch_generic.c:958
 qdisc_put+0xdb/0x100 net/sched/sch_generic.c:985
 notify_and_destroy+0xa2/0xb0 net/sched/sch_api.c:995
 qdisc_graft+0xd42/0x1210 net/sched/sch_api.c:1076
 tc_modify_qdisc+0xcbd/0x1cd0 net/sched/sch_api.c:1663
 rtnetlink_rcv_msg+0x45e/0xaf0 net/core/rtnetlink.c:5424
 netlink_rcv_skb+0x177/0x450 net/netlink/af_netlink.c:2477
 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5442
 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline]
 netlink_unicast+0x58c/0x7d0 net/netlink/af_netlink.c:1328
 netlink_sendmsg+0x91c/0xea0 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:639 [inline]
 sock_sendmsg+0xd7/0x130 net/socket.c:659
 kernel_sendmsg+0x44/0x50 net/socket.c:679
 sock_no_sendpage+0x116/0x150 net/core/sock.c:2740
 kernel_sendpage+0x92/0xf0 net/socket.c:3776
 sock_sendpage+0x8b/0xc0 net/socket.c:937
 pipe_to_sendpage+0x2da/0x3c0 fs/splice.c:458
 splice_from_pipe_feed fs/splice.c:512 [inline]
 __splice_from_pipe+0x3ee/0x7c0 fs/splice.c:636
 splice_from_pipe+0x108/0x170 fs/splice.c:671
 generic_splice_sendpage+0x3c/0x50 fs/splice.c:844
 do_splice_from fs/splice.c:863 [inline]
 do_splice+0xba4/0x1680 fs/splice.c:1170
 __do_sys_splice fs/splice.c:1447 [inline]
 __se_sys_splice fs/splice.c:1427 [inline]
 __x64_sys_splice+0x2c6/0x330 fs/splice.c:1427
 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x446e79
Code: e8 5c b3 02 00 48 83 c4 18 c3 0f 1f 80 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 0f 83 0b 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ff076b78d88 EFLAGS: 00000246 ORIG_RAX: 0000000000000113
RAX: ffffffffffffffda RBX: 00000000006dcc98 RCX: 0000000000446e79
RDX: 0000000000000009 RSI: 0000000000000000 RDI: 0000000000000007
RBP: 00000000006dcc90 R08: 000000000004ffe0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dcc9c
R13: 00000000004aed8e R14: 54c6c2ff093a6d32 R15: 0000000000010000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/01/23 12:32 upstream dbab40bdb42c 3334d684 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/01/23 09:33 upstream dbab40bdb42c 3334d684 .config console log report syz C ci-upstream-kasan-gce-root
2020/01/22 03:50 upstream d96d875ef5dd 8eda0b95 .config console log report syz C ci-upstream-kasan-gce
2020/01/21 22:41 upstream d96d875ef5dd 8eda0b95 .config console log report syz C ci-upstream-kasan-gce-386
2020/01/21 18:49 net-old 80892772c4ed 8eda0b95 .config console log report syz C ci-upstream-net-this-kasan-gce
2020/01/21 18:26 net-next-old 17e10a15a796 8eda0b95 .config console log report syz C ci-upstream-net-kasan-gce
2020/02/13 15:31 net-next-old fdfa3a6778b1 84f4fc8a .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.