syzbot


general protection fault in rxrpc_connect_call

Status: fixed on 2019/08/05 13:45
Subsystems: net afs
[Documentation on labels]
Reported-by: syzbot+7966f2a0b2c7da8939b4@syzkaller.appspotmail.com
Fix commit: e835ada07091 rxrpc: Fix send on a connected, but unbound socket
First crash: 1975d, last: 1828d
Cause bisection: introduced by (bisect log) :
commit 46894a13599a977ac35411b536fb3e0b2feefa95
Author: David Howells <dhowells@redhat.com>
Date: Thu Oct 4 08:32:28 2018 +0000

  rxrpc: Use IPv4 addresses throught the IPv6

Crash: general protection fault in rxrpc_connect_call (log)
Repro: C syz .config
  
Discussions (8)
Title Replies (including bot) Last reply
[PATCH 4.9 000/223] 4.9.187-stable review 231 (231) 2019/08/28 03:02
[PATCH 4.14 000/293] 4.14.135-stable review 302 (302) 2019/07/31 09:35
[PATCH 5.2 00/66] 5.2.4-stable review 78 (78) 2019/07/29 15:12
[PATCH 5.1 00/62] 5.1.21-stable review 68 (68) 2019/07/29 09:02
[PATCH 4.19 00/50] 4.19.62-stable review 56 (56) 2019/07/29 09:02
[PATCH net] rxrpc: Fix send on a connected, but unbound socket 2 (2) 2019/07/02 19:16
Reminder: 3 open syzbot bugs in "net/rxrpc" subsystem 1 (1) 2019/07/02 06:21
general protection fault in rxrpc_connect_call 0 (2) 2019/03/11 13:27
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in rxrpc_connect_call C inconclusive 636 1480d 1795d 0/1 upstream: reported C repro on 2019/07/21 06:32
linux-4.19 general protection fault in rxrpc_connect_call C done 285 1631d 1795d 1/1 fixed on 2020/01/31 18:44

Sample crash report:
audit: type=1800 audit(1548224295.427:29): pid=7748 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rc.local" dev="sda1" ino=2432 res=0
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: 7899 Comm: syz-executor751 Not tainted 5.0.0-rc3+ #39
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:rxrpc_connect_call+0x1a3/0x5130 net/rxrpc/conn_client.c:690
Code: fa 4c 89 f0 48 c1 e8 03 80 3c 18 00 0f 85 01 46 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b 1e 48 8d 7b 18 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 07 46 00 00 48 8b 5b 18 48 8d bb f0 01 00 00 48
RSP: 0018:ffff88808889ee90 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffff88808ca0596c
RDX: 0000000000000003 RSI: ffffffff873650fa RDI: 0000000000000018
RBP: ffff88808889f3a8 R08: 00000000006000c0 R09: ffff8880a9620d20
R10: ffff8880a9620480 R11: 0000000000000000 R12: ffff8880a9177b40
R13: ffff88809a470160 R14: ffff88808889f6c8 R15: ffff8880a9177cc8
FS:  0000000000000000(0000) GS:ffff8880ae600000(0063) knlGS:0000000008b34840
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 0000000020000040 CR3: 0000000090872000 CR4: 00000000001406f0
Call Trace:
 rxrpc_new_client_call+0xb0b/0x1e50 net/rxrpc/call_object.c:291
 rxrpc_new_client_call_for_sendmsg net/rxrpc/sendmsg.c:593 [inline]
 rxrpc_do_sendmsg+0x16df/0x27ad net/rxrpc/sendmsg.c:649
 rxrpc_sendmsg+0x4b8/0x5f0 net/rxrpc/af_rxrpc.c:556
 sock_sendmsg_nosec net/socket.c:621 [inline]
 sock_sendmsg+0xdd/0x130 net/socket.c:631
 ___sys_sendmsg+0x409/0x910 net/socket.c:2116
 __sys_sendmmsg+0x3bc/0x730 net/socket.c:2204
 __compat_sys_sendmmsg net/compat.c:771 [inline]
 __do_compat_sys_sendmmsg net/compat.c:778 [inline]
 __se_compat_sys_sendmmsg net/compat.c:775 [inline]
 __ia32_compat_sys_sendmmsg+0x9f/0x100 net/compat.c:775
 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline]
 do_fast_syscall_32+0x333/0xf98 arch/x86/entry/common.c:397
 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139
RIP: 0023:0xf7f17869
Code: 85 d2 74 02 89 0a 5b 5d c3 8b 04 24 c3 8b 14 24 c3 8b 3c 24 c3 90 90 90 90 90 90 90 90 90 90 90 90 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 002b:00000000ff96366c EFLAGS: 00000217 ORIG_RAX: 0000000000000159
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020005c00
RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 0000000020000040 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 32887e7d2c420b9a ]---
RIP: 0010:rxrpc_connect_call+0x1a3/0x5130 net/rxrpc/conn_client.c:690
Code: fa 4c 89 f0 48 c1 e8 03 80 3c 18 00 0f 85 01 46 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b 1e 48 8d 7b 18 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 07 46 00 00 48 8b 5b 18 48 8d bb f0 01 00 00 48
RSP: 0018:ffff88808889ee90 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffff88808ca0596c
RDX: 0000000000000003 RSI: ffffffff873650fa RDI: 0000000000000018
RBP: ffff88808889f3a8 R08: 00000000006000c0 R09: ffff8880a9620d20
R10: ffff8880a9620480 R11: 0000000000000000 R12: ffff8880a9177b40
R13: ffff88809a470160 R14: ffff88808889f6c8 R15: ffff8880a9177cc8
FS:  0000000000000000(0000) GS:ffff8880ae600000(0063) knlGS:0000000008b34840
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 0000000020000040 CR3: 0000000090872000 CR4: 00000000001406f0

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/01/23 06:21 upstream 787a3b432276 b1ff06b2 .config console log report syz C ci-upstream-kasan-gce-386
2019/01/21 23:26 upstream 49a57857aeea badbbeee .config console log report ci-upstream-kasan-gce
2019/04/06 09:45 upstream 7f46774c6480 fa763482 .config console log report ci-upstream-kasan-gce-386
2019/01/23 06:02 upstream 787a3b432276 b1ff06b2 .config console log report ci-upstream-kasan-gce-386
2019/05/20 11:13 net-old 5a35c8ea7c40 5a4461b0 .config console log report ci-upstream-net-this-kasan-gce
2019/05/19 09:32 net-old 5a35c8ea7c40 5a4461b0 .config console log report ci-upstream-net-this-kasan-gce
2019/03/03 07:58 net-old 07f12b26e21a 1c0e457a .config console log report ci-upstream-net-this-kasan-gce
2019/01/24 21:01 net-old 63530aba7826 ce1ccf97 .config console log report ci-upstream-net-this-kasan-gce
2019/05/13 00:11 net-next-old b970afcfcabd 5f302c04 .config console log report ci-upstream-net-kasan-gce
2019/04/30 16:00 net-next-old 7a1d8390d015 20f16bef .config console log report ci-upstream-net-kasan-gce
2019/04/22 19:07 net-next-old 4e54507ab1a9 0a77c33c .config console log report ci-upstream-net-kasan-gce
2019/04/12 15:10 net-next-old 8af9f7291e22 8916f5e1 .config console log report ci-upstream-net-kasan-gce
2019/04/09 09:35 net-next-old 7f301cff1fc2 995065ff .config console log report ci-upstream-net-kasan-gce
2019/03/27 05:52 net-next-old be67101fbf27 55684ce1 .config console log report ci-upstream-net-kasan-gce
2019/06/18 00:31 linux-next a125097c8410 442206d7 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.