syzbot


general protection fault in rtm_new_nexthop

Status: upstream: reported C repro on 2020/08/09 03:34
Reported-by: syzbot+654a00dfec8ec177f15f@syzkaller.appspotmail.com
First crash: 849d, last: 14d

Sample crash report:
RSP: 002b:00007ffebf8032f8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fe6cf120829
RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000005
RBP: 00007ffebf803310 R08: 0000000000000001 R09: 00007fe6cf195dc0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000006
R13: 00007ffebf803340 R14: 0000000000000003 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: 300 Comm: syz-executor863 Not tainted 5.4.197-syzkaller-00005-g704c7d053806 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
RIP: 0010:nexthop_create_group net/ipv4/nexthop.c:1134 [inline]
RIP: 0010:nexthop_add net/ipv4/nexthop.c:1319 [inline]
RIP: 0010:rtm_new_nexthop+0x2206/0x6480 net/ipv4/nexthop.c:1518
Code: 00 80 3c 01 00 74 0a 48 8b 7c 24 08 e8 c3 1d f5 fd 48 8b 44 24 08 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 9c 1d f5 fd 48 8b 44 24 08 48 89 03
RSP: 0018:ffff8881de8ff6a0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881f5c02a00
RBP: ffff8881de8ff8a0 R08: ffffffff823290ad R09: ffffed103bd1fec2
R10: ffffed103bd1fec2 R11: 1ffff1103bd1fec1 R12: ffff8881de35a600
R13: 0000000000000002 R14: 0000000000000001 R15: 0000000000010001
FS:  000055555589a300(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffebf801f98 CR3: 00000001e10f6000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 rtnetlink_rcv_msg+0x8c6/0xb90 net/core/rtnetlink.c:5262
 netlink_rcv_skb+0x190/0x3a0 net/netlink/af_netlink.c:2499
 netlink_unicast_kernel net/netlink/af_netlink.c:1312 [inline]
 netlink_unicast+0x771/0x8d0 net/netlink/af_netlink.c:1338
 netlink_sendmsg+0x913/0xb90 net/netlink/af_netlink.c:1933
 sock_sendmsg_nosec net/socket.c:638 [inline]
 sock_sendmsg net/socket.c:658 [inline]
 ____sys_sendmsg+0x4ee/0x7c0 net/socket.c:2287
 ___sys_sendmsg net/socket.c:2341 [inline]
 __sys_sendmsg+0x235/0x2f0 net/socket.c:2387
 do_syscall_64+0xcb/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7fe6cf120829
Code: 46 01 00 85 c0 b8 00 00 00 00 48 0f 44 c3 5b c3 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffebf8032f8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fe6cf120829
RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000005
RBP: 00007ffebf803310 R08: 0000000000000001 R09: 00007fe6cf195dc0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000006
R13: 00007ffebf803340 R14: 0000000000000003 R15: 0000000000000000
Modules linked in:
---[ end trace 76f53ed6f4ca5268 ]---
RIP: 0010:nexthop_create_group net/ipv4/nexthop.c:1134 [inline]
RIP: 0010:nexthop_add net/ipv4/nexthop.c:1319 [inline]
RIP: 0010:rtm_new_nexthop+0x2206/0x6480 net/ipv4/nexthop.c:1518
Code: 00 80 3c 01 00 74 0a 48 8b 7c 24 08 e8 c3 1d f5 fd 48 8b 44 24 08 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 9c 1d f5 fd 48 8b 44 24 08 48 89 03
RSP: 0018:ffff8881de8ff6a0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881f5c02a00
RBP: ffff8881de8ff8a0 R08: ffffffff823290ad R09: ffffed103bd1fec2
R10: ffffed103bd1fec2 R11: 1ffff1103bd1fec1 R12: ffff8881de35a600
R13: 0000000000000002 R14: 0000000000000001 R15: 0000000000010001
FS:  000055555589a300(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffebf801f98 CR3: 00000001e10f6000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	00 80 3c 01 00 74    	add    %al,0x7400013c(%rax)
   6:	0a 48 8b             	or     -0x75(%rax),%cl
   9:	7c 24                	jl     0x2f
   b:	08 e8                	or     %ch,%al
   d:	c3                   	retq
   e:	1d f5 fd 48 8b       	sbb    $0x8b48fdf5,%eax
  13:	44 24 08             	rex.R and $0x8,%al
  16:	48 89 18             	mov    %rbx,(%rax)
  19:	48 89 d8             	mov    %rbx,%rax
  1c:	48 c1 e8 03          	shr    $0x3,%rax
  20:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  27:	fc ff df
* 2a:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	48 89 df             	mov    %rbx,%rdi
  33:	e8 9c 1d f5 fd       	callq  0xfdf51dd4
  38:	48 8b 44 24 08       	mov    0x8(%rsp),%rax
  3d:	48 89 03             	mov    %rax,(%rbx)

Crashes (20):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-android-5-4-kasan 2022/09/13 17:15 android12-5.4 704c7d053806 a08652b0 .config log report syz C general protection fault in rtm_new_nexthop
ci2-android-5-4-kasan 2020/08/09 03:41 https://android.googlesource.com/kernel/common android-5.4 99256a8c206b f721e4a0 .config log report syz C
ci2-android-5-4-kasan 2022/11/22 03:49 android12-5.4 c80a5b2e7f63 1c576c23 .config log report info general protection fault in rtm_new_nexthop
ci2-android-5-4-kasan 2022/07/31 14:50 android12-5.4 2bde2e268ec7 fef302b1 .config log report info general protection fault in rtm_new_nexthop
ci2-android-5-4-kasan 2022/07/21 13:37 android12-5.4 330fa791a029 6e67af9d .config log report info general protection fault in rtm_new_nexthop
ci2-android-5-4-kasan 2022/06/19 05:00 android12-5.4 77dc925ddffb 8f633d84 .config log report info general protection fault in rtm_new_nexthop
ci2-android-5-4-kasan 2021/11/28 05:41 android12-5.4 0bbc71d87f4d 63eeac02 .config log report info general protection fault in rtm_new_nexthop
ci2-android-5-4-kasan 2021/11/25 17:05 android12-5.4 697fba25ed27 545ab074 .config log report info general protection fault in rtm_new_nexthop
ci2-android-5-4-kasan 2021/11/19 10:13 android12-5.4 2cdbd9b44172 31a30fc0 .config log report info general protection fault in rtm_new_nexthop
ci2-android-5-4-kasan 2021/11/16 08:40 android12-5.4 b9c4f1b9b54a 75b04091 .config log report info general protection fault in rtm_new_nexthop
ci2-android-5-4-kasan 2021/02/20 06:28 android12-5.4 35f4b1b90596 f689d40a .config log report info general protection fault in rtm_new_nexthop
ci2-android-5-4-kasan 2020/09/11 15:19 https://android.googlesource.com/kernel/common android-5.4 aa0ddbda9397 adfb8b4e .config log report
ci2-android-5-4-kasan 2020/08/27 11:44 https://android.googlesource.com/kernel/common android-5.4 4915c32a2f6b 816e0689 .config log report
ci2-android-5-4-kasan 2020/08/24 12:54 https://android.googlesource.com/kernel/common android-5.4 8c7bf5fe0edb 67b599d1 .config log report
ci2-android-5-4-kasan 2020/08/23 19:03 https://android.googlesource.com/kernel/common android-5.4 d457f47f3685 a6d5f3ad .config log report
ci2-android-5-4-kasan 2020/08/17 14:50 https://android.googlesource.com/kernel/common android-5.4 0881b55787d3 5ce13532 .config log report
ci2-android-5-4-kasan 2020/08/12 17:53 https://android.googlesource.com/kernel/common android-5.4 46090d578669 0d7bd2e0 .config log report
ci2-android-5-4-kasan 2020/08/12 17:53 https://android.googlesource.com/kernel/common android-5.4 46090d578669 0d7bd2e0 .config log report
ci2-android-5-4-kasan 2020/08/09 08:39 https://android.googlesource.com/kernel/common android-5.4 99256a8c206b f721e4a0 .config log report
ci2-android-5-4-kasan 2020/08/09 03:34 https://android.googlesource.com/kernel/common android-5.4 99256a8c206b f721e4a0 .config log report
* Struck through repros no longer work on HEAD.