divide error in netem_enqueue

5 views
Skip to first unread message

syzbot

unread,
Nov 25, 2020, 10:52:26 AM11/25/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 0c88e405 Linux 4.19.160
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15bc502d500000
kernel config: https://syzkaller.appspot.com/x/.config?x=baf69366a17513f7
dashboard link: https://syzkaller.appspot.com/bug?extid=24970a7c41ef39ac08d8
compiler: gcc (GCC) 10.1.0-syz 20200507

Unfortunately, I don't have any reproducer for this issue yet.

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

divide error: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 9866 Comm: syz-executor.2 Not tainted 4.19.160-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:netem_enqueue+0x1217/0x3167 net/sched/sch_netem.c:516
Code: f6 74 1f 4c 89 44 24 20 89 4c 24 18 89 44 24 10 e8 9e c8 e7 fa 4c 8b 44 24 20 8b 4c 24 18 8b 44 24 10 2b 8d 84 00 00 00 31 d2 <f7> f1 48 b8 00 00 00 00 00 fc ff df 49 01 d6 4c 89 f1 48 c1 e9 03
RSP: 0018:ffff88804c5975e0 EFLAGS: 00010246
RAX: 000000009d4630e3 RBX: 0000000000000002 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888098ba7784
RBP: ffff888098ba7700 R08: ffff888098ba77d8 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000000 R14: ffff8880a19e8500 R15: ffff8880a9eddb00
FS: 00007ff4ef9dd700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000508c10 CR3: 00000000a96d6000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
netem_enqueue+0x1d6b/0x3167 net/sched/sch_netem.c:480
__dev_xmit_skb net/core/dev.c:3494 [inline]
__dev_queue_xmit+0x140a/0x2e00 net/core/dev.c:3807
__netlink_deliver_tap_skb net/netlink/af_netlink.c:303 [inline]
__netlink_deliver_tap net/netlink/af_netlink.c:321 [inline]
netlink_deliver_tap+0x8fb/0xb00 net/netlink/af_netlink.c:334
netlink_deliver_tap_kernel net/netlink/af_netlink.c:343 [inline]
netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
netlink_unicast+0x545/0x690 net/netlink/af_netlink.c:1344
netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xc3/0x120 net/socket.c:632
___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2115
__sys_sendmsg net/socket.c:2153 [inline]
__do_sys_sendmsg net/socket.c:2162 [inline]
__se_sys_sendmsg net/socket.c:2160 [inline]
__x64_sys_sendmsg+0x132/0x220 net/socket.c:2160
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45deb9
Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ff4ef9dcc78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000002a780 RCX: 000000000045deb9
RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000006
RBP: 000000000118bf60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c
R13: 00007ffea7c9994f R14: 00007ff4ef9dd9c0 R15: 000000000118bf2c
Modules linked in:
---[ end trace 3ada3712b5d62f7f ]---
RIP: 0010:netem_enqueue+0x1217/0x3167 net/sched/sch_netem.c:516
Code: f6 74 1f 4c 89 44 24 20 89 4c 24 18 89 44 24 10 e8 9e c8 e7 fa 4c 8b 44 24 20 8b 4c 24 18 8b 44 24 10 2b 8d 84 00 00 00 31 d2 <f7> f1 48 b8 00 00 00 00 00 fc ff df 49 01 d6 4c 89 f1 48 c1 e9 03
RSP: 0018:ffff88804c5975e0 EFLAGS: 00010246
RAX: 000000009d4630e3 RBX: 0000000000000002 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888098ba7784
RBP: ffff888098ba7700 R08: ffff888098ba77d8 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000000 R14: ffff8880a19e8500 R15: ffff8880a9eddb00
FS: 00007ff4ef9dd700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000508c10 CR3: 00000000a96d6000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


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

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Dec 14, 2020, 4:09:12 PM12/14/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 13d2ce42 Linux 4.19.163
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12f61937500000
kernel config: https://syzkaller.appspot.com/x/.config?x=fac7c3360835a4e0
dashboard link: https://syzkaller.appspot.com/bug?extid=24970a7c41ef39ac08d8
compiler: gcc (GCC) 10.1.0-syz 20200507
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=104a5413500000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1439f703500000

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

batman_adv: batadv0: Interface activated: batadv_slave_1
IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready
divide error: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8364 Comm: syz-executor107 Not tainted 4.19.163-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:netem_enqueue+0x1217/0x3167 net/sched/sch_netem.c:516
Code: f6 74 1f 4c 89 44 24 20 89 4c 24 18 89 44 24 10 e8 3e b9 e7 fa 4c 8b 44 24 20 8b 4c 24 18 8b 44 24 10 2b 8d 84 00 00 00 31 d2 <f7> f1 48 b8 00 00 00 00 00 fc ff df 49 01 d6 4c 89 f1 48 c1 e9 03
RSP: 0018:ffff88809476f5e0 EFLAGS: 00010246
RAX: 00000000c5acc723 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880a4c69084
RBP: ffff8880a4c69000 R08: ffff8880a4c690d8 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000000 R14: ffff8880ab884ac0 R15: ffff8880941a0940
FS: 00007f4652bee700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200000c0 CR3: 00000000afa8c000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
netem_enqueue+0x1d6b/0x3167 net/sched/sch_netem.c:480
__dev_xmit_skb net/core/dev.c:3494 [inline]
__dev_queue_xmit+0x140a/0x2e00 net/core/dev.c:3807
__netlink_deliver_tap_skb net/netlink/af_netlink.c:303 [inline]
__netlink_deliver_tap net/netlink/af_netlink.c:321 [inline]
netlink_deliver_tap+0x8fb/0xb00 net/netlink/af_netlink.c:334
netlink_deliver_tap_kernel net/netlink/af_netlink.c:343 [inline]
netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
netlink_unicast+0x545/0x690 net/netlink/af_netlink.c:1344
netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xc3/0x120 net/socket.c:632
___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2115
__sys_sendmsg net/socket.c:2153 [inline]
__do_sys_sendmsg net/socket.c:2162 [inline]
__se_sys_sendmsg net/socket.c:2160 [inline]
__x64_sys_sendmsg+0x132/0x220 net/socket.c:2160
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x44a999
Code: e8 9c 12 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 bb 04 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f4652bedd98 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000006e69e8 RCX: 000000000044a999
RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000004
RBP: 00000000006e69e0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006e69ec
R13: 0000000000000000 R14: 0000000000000000 R15: 0e0b002400000058
Modules linked in:
---[ end trace c5575ef00863da3b ]---
RIP: 0010:netem_enqueue+0x1217/0x3167 net/sched/sch_netem.c:516
Code: f6 74 1f 4c 89 44 24 20 89 4c 24 18 89 44 24 10 e8 3e b9 e7 fa 4c 8b 44 24 20 8b 4c 24 18 8b 44 24 10 2b 8d 84 00 00 00 31 d2 <f7> f1 48 b8 00 00 00 00 00 fc ff df 49 01 d6 4c 89 f1 48 c1 e9 03
RSP: 0018:ffff88809476f5e0 EFLAGS: 00010246
RAX: 00000000c5acc723 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880a4c69084
RBP: ffff8880a4c69000 R08: ffff8880a4c690d8 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000000 R14: ffff8880ab884ac0 R15: ffff8880941a0940
FS: 00007f4652bee700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200000c0 CR3: 00000000afa8c000 CR4: 00000000001406e0
Reply all
Reply to author
Forward
0 new messages