syzbot


general protection fault in fib_check_nexthop

Status: auto-closed as invalid on 2020/12/28 22:57
Reported-by: syzbot+83e374f5f06a781aea3f@syzkaller.appspotmail.com
First crash: 1321d, last: 1305d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in fib_check_nexthop net 2 1317d 1315d 0/26 closed as dup on 2020/08/22 14:22

Sample crash report:
netlink: 29 bytes leftover after parsing attributes in process `syz-executor.2'.
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: 0 PID: 19950 Comm: syz-executor.2 Tainted: G        W         5.4.61-syzkaller-00873-ge15cc541b749 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:nexthop_check_scope net/ipv4/nexthop.c:628 [inline]
RIP: 0010:fib_check_nexthop+0x16e/0x310 net/ipv4/nexthop.c:663
Code: 8b 1b 48 83 c3 10 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 50 10 02 fe 48 8b 1b 48 83 c3 70 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 33 10 02 fe 48 8b 1b 48 83 c3 2f
RSP: 0018:ffff88814a29ef48 EFLAGS: 00010202
RAX: 000000000000000e RBX: 0000000000000070 RCX: 0000000000000002
RDX: ffffc90006dbb000 RSI: 0000000000000000 RDI: 00000000000000fe
RBP: 0000000000000001 R08: ffffffff836e305b R09: 0000000000000003
R10: ffffed1029453e19 R11: 0000000000000004 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff88814a29f860 R15: 0000000000000000
FS:  00007f27c861e700(0000) GS:ffff8881db800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000001916978 CR3: 00000001927d1001 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 fib_create_info+0x1936/0x4200 net/ipv4/fib_semantics.c:1481
 fib_table_insert+0x228/0x2030 net/ipv4/fib_trie.c:1142
 inet_rtm_newroute+0x146/0x280 net/ipv4/fib_frontend.c:893
 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+0x2cd/0x3b0 net/socket.c:2398
 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45d5b9
Code: 5d 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 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f27c861dc78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000027bc0 RCX: 000000000045d5b9
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000003
RBP: 000000000118cf80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cf4c
R13: 00007fff73fb9e8f R14: 00007f27c861e9c0 R15: 000000000118cf4c
Modules linked in:
---[ end trace 4d3f2effaa81b6a3 ]---
RIP: 0010:nexthop_check_scope net/ipv4/nexthop.c:628 [inline]
RIP: 0010:fib_check_nexthop+0x16e/0x310 net/ipv4/nexthop.c:663
Code: 8b 1b 48 83 c3 10 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 50 10 02 fe 48 8b 1b 48 83 c3 70 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 33 10 02 fe 48 8b 1b 48 83 c3 2f
RSP: 0018:ffff88814a29ef48 EFLAGS: 00010202
RAX: 000000000000000e RBX: 0000000000000070 RCX: 0000000000000002
RDX: ffffc90006dbb000 RSI: 0000000000000000 RDI: 00000000000000fe
RBP: 0000000000000001 R08: ffffffff836e305b R09: 0000000000000003
R10: ffffed1029453e19 R11: 0000000000000004 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff88814a29f860 R15: 0000000000000000
FS:  00007f27c861e700(0000) GS:ffff8881db800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001400 CR3: 00000001927d1002 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/30 22:56 https://android.googlesource.com/kernel/common android-5.4 e15cc541b749 d5a3ae1f .config console log report ci2-android-5-4-kasan
2020/08/15 07:50 https://android.googlesource.com/kernel/common android-5.4 c3221b7ac740 5ce13532 .config console log report ci2-android-5-4-kasan
* Struck through repros no longer work on HEAD.