WARNING: ODEBUG bug in route4_change

17 views
Skip to first unread message

syzbot

unread,
Mar 4, 2020, 10:52:14 PM3/4/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 78d697fc Linux 4.14.172
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17132709e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=31ad682bcda9b93f
dashboard link: https://syzkaller.appspot.com/bug?extid=e56bebc1bd9e1143ae6c
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14537a2de00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=178f6fa1e00000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+e56beb...@syzkaller.appspotmail.com

audit: type=1400 audit(1583380161.096:36): avc: denied { map } for pid=7443 comm="syz-executor257" path="/root/syz-executor257956079" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
IPVS: ftp: loaded support on port[0] = 21
ODEBUG: activate active (active state 1) object type: rcu_head hint: (null)
------------[ cut here ]------------
WARNING: CPU: 1 PID: 7446 at lib/debugobjects.c:287 debug_print_object.cold+0xa7/0xdb lib/debugobjects.c:287
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 7446 Comm: syz-executor257 Not tainted 4.14.172-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x13e/0x194 lib/dump_stack.c:58
panic+0x1f9/0x42d kernel/panic.c:183
__warn.cold+0x2f/0x30 kernel/panic.c:547
report_bug+0x20a/0x248 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:177 [inline]
fixup_bug arch/x86/kernel/traps.c:172 [inline]
do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:963
RIP: 0010:debug_print_object.cold+0xa7/0xdb lib/debugobjects.c:287
RSP: 0018:ffff888096397430 EFLAGS: 00010082
RAX: 0000000000000055 RBX: 0000000000000003 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff86ac0860 RDI: ffffed1012c72e7c
RBP: ffffffff86ab5f60 R08: 0000000000000055 R09: 0000000000000000
R10: fffffbfff14a8ce0 R11: ffff888098f68440 R12: 0000000000000000
R13: 0000000000000001 R14: 1ffff11012c72e90 R15: ffffffff87d842c0
debug_object_activate+0x307/0x450 lib/debugobjects.c:446
debug_rcu_head_queue kernel/rcu/rcu.h:152 [inline]
__call_rcu.constprop.0+0x31/0x7e0 kernel/rcu/tree.c:3050
route4_change+0xb27/0x1c4d net/sched/cls_route.c:555
tc_ctl_tfilter+0xf13/0x18e6 net/sched/cls_api.c:738
rtnetlink_rcv_msg+0x3be/0xb10 net/core/rtnetlink.c:4315
netlink_rcv_skb+0x127/0x370 net/netlink/af_netlink.c:2432
netlink_unicast_kernel net/netlink/af_netlink.c:1286 [inline]
netlink_unicast+0x437/0x620 net/netlink/af_netlink.c:1312
netlink_sendmsg+0x733/0xbe0 net/netlink/af_netlink.c:1877
sock_sendmsg_nosec net/socket.c:646 [inline]
sock_sendmsg+0xc5/0x100 net/socket.c:656
___sys_sendmsg+0x70a/0x840 net/socket.c:2062
__sys_sendmsg+0xa3/0x120 net/socket.c:2096
SYSC_sendmsg net/socket.c:2107 [inline]
SyS_sendmsg+0x27/0x40 net/socket.c:2103
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x447069
RSP: 002b:00007f18cd363d98 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000006ddc78 RCX: 0000000000447069
RDX: 0000000000000000 RSI: 0000000020000280 RDI: 0000000000000003
RBP: 00000000006ddc70 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006ddc7c
R13: 0000000000000005 R14: 00a3a20740000000 R15: 0507002400000038

======================================================


---
This bug 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 syzk...@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
Mar 5, 2020, 3:17:13 AM3/5/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: a083db76 Linux 4.19.107
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1600efa1e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=c32f76aaadd644de
dashboard link: https://syzkaller.appspot.com/bug?extid=c450a124c51abb62615d
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1100efa1e00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15482bb5e00000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+c450a1...@syzkaller.appspotmail.com

audit: type=1400 audit(1583396054.895:37): avc: denied { create } for pid=8342 comm="syz-executor171" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1
------------[ cut here ]------------
audit: type=1400 audit(1583396054.895:38): avc: denied { write } for pid=8342 comm="syz-executor171" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1
ODEBUG: activate active (active state 1) object type: rcu_head hint: (null)
audit: type=1400 audit(1583396054.895:39): avc: denied { read } for pid=8342 comm="syz-executor171" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1
WARNING: CPU: 0 PID: 8343 at lib/debugobjects.c:325 debug_print_object+0x160/0x250 lib/debugobjects.c:325
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 8343 Comm: syz-executor171 Not tainted 4.19.107-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+0x188/0x20d lib/dump_stack.c:118
panic+0x26a/0x50e kernel/panic.c:186
__warn.cold+0x20/0x46 kernel/panic.c:541
report_bug+0x262/0x2a0 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1037
RIP: 0010:debug_print_object+0x160/0x250 lib/debugobjects.c:325
Code: dd 60 0f ab 87 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 bf 00 00 00 48 8b 14 dd 60 0f ab 87 48 c7 c7 a0 04 ab 87 e8 fb 02 e7 fd <0f> 0b 83 05 c3 b6 37 06 01 48 83 c4 20 5b 5d 41 5c 41 5d c3 48 89
RSP: 0018:ffff888088187268 EFLAGS: 00010086
RAX: 0000000000000000 RBX: 0000000000000003 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8152c6e1 RDI: ffffed1011030e3f
RBP: 0000000000000001 R08: ffff88808be3a640 R09: ffffed1015cc3ee3
R10: ffffed1015cc3ee2 R11: ffff8880ae61f717 R12: ffffffff88b928c0
R13: 0000000000000000 R14: ffff88808e019010 R15: 1ffff11011030e5a
debug_object_activate+0x357/0x4e0 lib/debugobjects.c:484
debug_rcu_head_queue kernel/rcu/rcu.h:193 [inline]
__call_rcu.constprop.0+0x31/0x7e0 kernel/rcu/tree.c:2977
queue_rcu_work+0x75/0x90 kernel/workqueue.c:1631
route4_change+0xe6a/0x2210 net/sched/cls_route.c:552
tc_new_tfilter+0xa6b/0x1450 net/sched/cls_api.c:1320
rtnetlink_rcv_msg+0x453/0xaf0 net/core/rtnetlink.c:4777
netlink_rcv_skb+0x160/0x410 net/netlink/af_netlink.c:2454
netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
netlink_unicast+0x4d7/0x6a0 net/netlink/af_netlink.c:1343
netlink_sendmsg+0x80b/0xcd0 net/netlink/af_netlink.c:1908
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xcf/0x120 net/socket.c:632
___sys_sendmsg+0x803/0x920 net/socket.c:2115
__sys_sendmsg+0xec/0x1b0 net/socket.c:2153
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x446de9
Code: e8 ec 0f 03 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 8b 0e fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f2ea3090d98 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000006dcc68 RCX: 0000000000446de9
RDX: 0000000000000000 RSI: 0000000020000280 RDI: 0000000000000003
RBP: 00000000006dcc60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dcc6c

syzbot

unread,
Apr 23, 2020, 4:19:05 PM4/23/20
to syzkaller...@googlegroups.com
syzbot suspects this bug was fixed by commit:

commit ea3d6652c240978736a91b9e85fde9fee9359be4
Author: Cong Wang <xiyou.w...@gmail.com>
Date: Sat Mar 14 05:29:54 2020 +0000

net_sched: cls_route: remove the right filter from hashtable

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=16509ca0100000
start commit: 14cfdbd3 Linux 4.19.112
git tree: linux-4.19.y
kernel config: https://syzkaller.appspot.com/x/.config?x=48ea0e0a21a4900f
dashboard link: https://syzkaller.appspot.com/bug?extid=c450a124c51abb62615d
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=103a38c5e00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13032a03e00000

If the result looks correct, please mark the bug fixed by replying with:

#syz fix: net_sched: cls_route: remove the right filter from hashtable

For information about bisection process see: https://goo.gl/tpsmEJ#bisection

syzbot

unread,
May 2, 2020, 11:21:04 AM5/2/20
to syzkaller...@googlegroups.com
syzbot suspects this bug was fixed by commit:

commit f0c92f59cf528bc1b872f2ca91b01e128a2af3e6
Author: Cong Wang <xiyou.w...@gmail.com>
Date: Sat Mar 14 05:29:54 2020 +0000

net_sched: cls_route: remove the right filter from hashtable

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=13d5bc3fe00000
start commit: 01364dad Linux 4.14.174
git tree: linux-4.14.y
kernel config: https://syzkaller.appspot.com/x/.config?x=664dd71881ab2b2d
dashboard link: https://syzkaller.appspot.com/bug?extid=e56bebc1bd9e1143ae6c
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16fe0697e00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1751b063e00000
Reply all
Reply to author
Forward
0 new messages