general protection fault in rtm_new_nexthop

9 views
Skip to first unread message

syzbot

unread,
Aug 8, 2020, 11:34:16 PM8/8/20
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 99256a8c FROMLIST: rpmsg: Guard against null endpoint ops ..
git tree: android-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=10b4b934900000
kernel config: https://syzkaller.appspot.com/x/.config?x=2a58efcbbad56c25
dashboard link: https://syzkaller.appspot.com/bug?extid=654a00dfec8ec177f15f
compiler: Android (6032204 based on r370808) clang version 10.0.1 (https://android.googlesource.com/toolchain/llvm-project 6e765c10313d15c02ab29977a82938f66742c3a9)

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+654a00...@syzkaller.appspotmail.com

R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 00007fff3817120f R14: 00007f0dac3419c0 R15: 000000000118bf2c
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 13058 Comm: syz-executor.2 Not tainted 5.4.57-syzkaller-00030-g99256a8c206b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:nexthop_create_group net/ipv4/nexthop.c:1127 [inline]
RIP: 0010:nexthop_add net/ipv4/nexthop.c:1304 [inline]
RIP: 0010:rtm_new_nexthop+0x265e/0x6ba0 net/ipv4/nexthop.c:1503
Code: 00 80 3c 01 00 74 0a 48 8b 7c 24 18 e8 9b 5f 04 fe 48 8b 44 24 18 48 89 18 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 74 5f 04 fe 48 8b 44 24 18 48 89 03
RSP: 0018:ffff88818b0170e0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: ffffc90003099000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffff88818b0174d0 R08: ffffffff836c38ba R09: fffffbfff098c3da
R10: fffffbfff098c3da R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000003 R15: 0000000000010000
FS: 00007f0dac341700(0000) GS:ffff8881db900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000018b817002 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
rtnetlink_rcv_msg+0x96e/0xc60 net/core/rtnetlink.c:5255
netlink_rcv_skb+0x200/0x480 net/netlink/af_netlink.c:2478
netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline]
netlink_unicast+0x8ad/0xa50 net/netlink/af_netlink.c:1329
netlink_sendmsg+0x9de/0xd80 net/netlink/af_netlink.c:1918
sock_sendmsg_nosec net/socket.c:638 [inline]
sock_sendmsg net/socket.c:658 [inline]
____sys_sendmsg+0x58a/0x8d0 net/socket.c:2298
___sys_sendmsg net/socket.c:2352 [inline]
__sys_sendmsg+0x2d5/0x3c0 net/socket.c:2398
do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45ce69
Code: 2d b6 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 fb b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f0dac340c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000002c0c0 RCX: 000000000045ce69
RDX: 0000000000000000 RSI: 0000000020000300 RDI: 0000000000000003
RBP: 00007f0dac340ca0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 00007fff3817120f R14: 00007f0dac3419c0 R15: 000000000118bf2c
Modules linked in:
---[ end trace 1e2286667dbe3ab2 ]---
RIP: 0010:nexthop_create_group net/ipv4/nexthop.c:1127 [inline]
RIP: 0010:nexthop_add net/ipv4/nexthop.c:1304 [inline]
RIP: 0010:rtm_new_nexthop+0x265e/0x6ba0 net/ipv4/nexthop.c:1503
Code: 00 80 3c 01 00 74 0a 48 8b 7c 24 18 e8 9b 5f 04 fe 48 8b 44 24 18 48 89 18 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 74 5f 04 fe 48 8b 44 24 18 48 89 03
RSP: 0018:ffff88818b0170e0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: ffffc90003099000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffff88818b0174d0 R08: ffffffff836c38ba R09: fffffbfff098c3da
R10: fffffbfff098c3da R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000003 R15: 0000000000010000
FS: 00007f0dac341700(0000) GS:ffff8881db900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200b0000 CR3: 000000018b817006 CR4: 00000000001606e0
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,
Aug 8, 2020, 11:42:26 PM8/8/20
to syzkaller-a...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 99256a8c FROMLIST: rpmsg: Guard against null endpoint ops ..
git tree: android-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=13c7f194900000
kernel config: https://syzkaller.appspot.com/x/.config?x=2a58efcbbad56c25
dashboard link: https://syzkaller.appspot.com/bug?extid=654a00dfec8ec177f15f
compiler: Android (6032204 based on r370808) clang version 10.0.1 (https://android.googlesource.com/toolchain/llvm-project 6e765c10313d15c02ab29977a82938f66742c3a9)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15095f1a900000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=147c9826900000

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

RDX: 0000000000000000 RSI: 0000000020000300 RDI: 0000000000000004
RBP: 00000000006cb018 R08: 0000000000000001 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401f10
R13: 0000000000401fa0 R14: 0000000000000000 R15: 0000000000000000
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 330 Comm: syz-executor268 Not tainted 5.4.57-syzkaller-00030-g99256a8c206b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:nexthop_create_group net/ipv4/nexthop.c:1127 [inline]
RIP: 0010:nexthop_add net/ipv4/nexthop.c:1304 [inline]
RIP: 0010:rtm_new_nexthop+0x265e/0x6ba0 net/ipv4/nexthop.c:1503
Code: 00 80 3c 01 00 74 0a 48 8b 7c 24 18 e8 9b 5f 04 fe 48 8b 44 24 18 48 89 18 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 74 5f 04 fe 48 8b 44 24 18 48 89 03
RSP: 0018:ffff8881c449f0e0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff8881c449f4d0 R08: ffffffff836c38ba R09: fffffbfff098c3da
R10: fffffbfff098c3da R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000003 R15: 0000000000010000
FS: 00000000014c1880(0000) GS:ffff8881db900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000046 CR3: 00000001c4418003 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
rtnetlink_rcv_msg+0x96e/0xc60 net/core/rtnetlink.c:5255
netlink_rcv_skb+0x200/0x480 net/netlink/af_netlink.c:2478
netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline]
netlink_unicast+0x8ad/0xa50 net/netlink/af_netlink.c:1329
netlink_sendmsg+0x9de/0xd80 net/netlink/af_netlink.c:1918
sock_sendmsg_nosec net/socket.c:638 [inline]
sock_sendmsg net/socket.c:658 [inline]
____sys_sendmsg+0x58a/0x8d0 net/socket.c:2298
___sys_sendmsg net/socket.c:2352 [inline]
__sys_sendmsg+0x2d5/0x3c0 net/socket.c:2398
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x4406a9
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 db 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc2efe4ff8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004a1cd8 RCX: 00000000004406a9
RDX: 0000000000000000 RSI: 0000000020000300 RDI: 0000000000000004
RBP: 00000000006cb018 R08: 0000000000000001 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401f10
R13: 0000000000401fa0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 9899cc55e2579e80 ]---
RIP: 0010:nexthop_create_group net/ipv4/nexthop.c:1127 [inline]
RIP: 0010:nexthop_add net/ipv4/nexthop.c:1304 [inline]
RIP: 0010:rtm_new_nexthop+0x265e/0x6ba0 net/ipv4/nexthop.c:1503
Code: 00 80 3c 01 00 74 0a 48 8b 7c 24 18 e8 9b 5f 04 fe 48 8b 44 24 18 48 89 18 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 74 5f 04 fe 48 8b 44 24 18 48 89 03
RSP: 0018:ffff8881c449f0e0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff8881c449f4d0 R08: ffffffff836c38ba R09: fffffbfff098c3da
R10: fffffbfff098c3da R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000003 R15: 0000000000010000
FS: 00000000014c1880(0000) GS:ffff8881db900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000046 CR3: 00000001c4418003 CR4: 00000000001606e0
Reply all
Reply to author
Forward
0 new messages