syzbot


general protection fault in rds_recv_rcvbuf_delta

Status: fixed on 2019/10/09 10:54
Subsystems: rds
[Documentation on labels]
Reported-by: syzbot+4b4f8163c2e246df3c4c@syzkaller.appspotmail.com
Fix commit: c5c1a030a7db net/rds: An rds_sock is added too early to the hash table
First crash: 1985d, last: 1758d
Cause bisection: introduced by (bisect log) :
commit b534875d5ab348fb9193692589e2ee82ae768e3a
Author: Dennis Dalessandro <dennis.dalessandro@intel.com>
Date: Wed Jan 6 18:02:59 2016 +0000

  IB/rdmavt: Add device specific info prints

Crash: BUG: unable to handle kernel NULL pointer dereference in rds_bind (log)
Repro: C syz .config
  
Discussions (5)
Title Replies (including bot) Last reply
[PATCH 4.19 00/63] 4.19.76-stable review 83 (83) 2019/10/02 13:16
[PATCH 5.2 00/45] 5.2.18-stable review 54 (54) 2019/10/01 22:58
Re: [PATCH net] net/rds: An rds_sock is added too early to the hash table 1 (1) 2019/09/11 14:06
Reminder: 4 open syzbot bugs in "net/rds" subsystem 1 (1) 2019/07/24 02:34
general protection fault in rds_recv_rcvbuf_delta 0 (3) 2019/03/21 02:03
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in rds_recv_rcvbuf_delta 1 1559d 1559d 0/1 auto-closed as invalid on 2020/05/10 22:05
linux-4.19 general protection fault in rds_recv_rcvbuf_delta C done 7 1726d 1772d 1/1 fixed on 2019/12/02 18:09

Sample crash report:
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: 8393 Comm: syz-executor221 Not tainted 5.0.0-rc4+ #57
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:rds_recv_rcvbuf_delta.part.0+0x14a/0x3f0 net/rds/recv.c:103
Code: c1 ea 03 80 3c 02 00 0f 85 6e 02 00 00 4c 8b a3 c0 04 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d 7c 24 2c 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 00
RSP: 0018:ffff88808dcef670 EFLAGS: 00010007
RAX: dffffc0000000000 RBX: ffff8880915c57c0 RCX: ffffffff8681f5bd
RDX: 0000000000000005 RSI: ffffffff8681f5cb RDI: 000000000000002c
RBP: ffff88808dcef6a8 R08: ffff888085d94280 R09: ffffed1011b9dec4
R10: ffffed1011b9dec3 R11: 0000000000000003 R12: 0000000000000000
R13: ffff8880915c5ce4 R14: 000000000002e400 R15: ffff88809a1c2d00
FS:  0000000000ff7880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000006dab10 CR3: 0000000093bdf000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 rds_recv_rcvbuf_delta net/rds/recv.c:379 [inline]
 rds_recv_incoming+0x789/0x11f0 net/rds/recv.c:379
 rds_loop_xmit+0xf3/0x2a0 net/rds/loop.c:96
 rds_send_xmit+0x1113/0x2560 net/rds/send.c:355
 rds_sendmsg+0x280a/0x3450 net/rds/send.c:1368
 sock_sendmsg_nosec net/socket.c:621 [inline]
 sock_sendmsg+0xdd/0x130 net/socket.c:631
 ___sys_sendmsg+0x806/0x930 net/socket.c:2116
 __sys_sendmsg+0x105/0x1d0 net/socket.c:2154
 __do_sys_sendmsg net/socket.c:2163 [inline]
 __se_sys_sendmsg net/socket.c:2161 [inline]
 __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2161
 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x442209
Code: e8 6c e8 ff ff 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 cb 09 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffd97209bd8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000442209
RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000004
RBP: 000000000000dfc2 R08: 0000000500000000 R09: 0000000500000000
R10: 0000000500000000 R11: 0000000000000246 R12: 0000000000403060
R13: 00000000004030f0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 36259ac7607bc96f ]---
RIP: 0010:rds_recv_rcvbuf_delta.part.0+0x14a/0x3f0 net/rds/recv.c:103
Code: c1 ea 03 80 3c 02 00 0f 85 6e 02 00 00 4c 8b a3 c0 04 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d 7c 24 2c 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 00
RSP: 0018:ffff88808dcef670 EFLAGS: 00010007
RAX: dffffc0000000000 RBX: ffff8880915c57c0 RCX: ffffffff8681f5bd
RDX: 0000000000000005 RSI: ffffffff8681f5cb RDI: 000000000000002c
RBP: ffff88808dcef6a8 R08: ffff888085d94280 R09: ffffed1011b9dec4
R10: ffffed1011b9dec3 R11: 0000000000000003 R12: 0000000000000000
R13: ffff8880915c5ce4 R14: 000000000002e400 R15: ffff88809a1c2d00
FS:  0000000000ff7880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000006dab10 CR3: 0000000093bdf000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (35):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/02/02 22:02 upstream cd984a5be215 c198d5dd .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/02/02 22:00 upstream cd984a5be215 c198d5dd .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/02/02 21:59 upstream cd984a5be215 c198d5dd .config console log report syz C ci-upstream-kasan-gce-root
2019/02/02 19:15 upstream cd984a5be215 c198d5dd .config console log report syz C ci-upstream-kasan-gce
2019/02/02 22:01 upstream cd984a5be215 c198d5dd .config console log report syz C ci-upstream-kasan-gce-386
2019/02/02 20:02 linux-next dc4c89997735 c198d5dd .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/06/10 12:16 net-next-old ad3a9ee0b623 0159583c .config console log report syz ci-upstream-net-kasan-gce
2019/06/27 11:02 upstream 249155c20f9b 7509bf36 .config console log report ci-upstream-kasan-gce-root
2019/06/26 12:22 upstream 249155c20f9b 4d342240 .config console log report ci-upstream-kasan-gce-selinux-root
2019/06/10 05:54 upstream d1fdb6d8f6a4 0159583c .config console log report ci-upstream-kasan-gce-root
2019/06/10 05:50 upstream d1fdb6d8f6a4 0159583c .config console log report ci-upstream-kasan-gce-smack-root
2019/04/17 10:03 upstream 444fe9913539 b0e8efcb .config console log report ci-upstream-kasan-gce-smack-root
2019/04/08 21:59 upstream fd008d1a7a20 0dfb0452 .config console log report ci-upstream-kasan-gce-selinux-root
2019/04/08 21:33 upstream fd008d1a7a20 0dfb0452 .config console log report ci-upstream-kasan-gce-root
2019/04/07 11:11 upstream faac51ddac45 c34fde03 .config console log report ci-upstream-kasan-gce-root
2019/04/07 04:32 upstream faac51ddac45 c34fde03 .config console log report ci-upstream-kasan-gce
2019/04/04 20:47 upstream 145f47c7381d 6a475fff .config console log report ci-upstream-kasan-gce-root
2019/03/24 22:00 upstream 1bdd3dbfff7a acbc5b7d .config console log report ci-upstream-kasan-gce-selinux-root
2019/03/24 15:59 upstream 1bdd3dbfff7a acbc5b7d .config console log report ci-upstream-kasan-gce-selinux-root
2019/03/22 16:31 upstream 0939221e6468 dce6e62f .config console log report ci-upstream-kasan-gce-root
2019/03/14 14:06 upstream fa3d493f7a57 d09a902e .config console log report ci-upstream-kasan-gce
2019/03/13 18:57 upstream ebc551f2b8f9 2881fc25 .config console log report ci-upstream-kasan-gce
2019/03/10 07:21 upstream 6cdc577a18a6 12365b99 .config console log report ci-upstream-kasan-gce-smack-root
2019/03/09 23:11 upstream 38e7571c07be 12365b99 .config console log report ci-upstream-kasan-gce-smack-root
2019/03/05 22:12 upstream 63bdf4284c38 16559f86 .config console log report ci-upstream-kasan-gce
2019/03/04 14:50 upstream 1c163f4c7b3f 7c693b52 .config console log report ci-upstream-kasan-gce-root
2019/03/03 02:19 upstream c93d9218ea56 1c0e457a .config console log report ci-upstream-kasan-gce
2019/02/02 15:49 upstream cd984a5be215 c198d5dd .config console log report ci-upstream-kasan-gce
2018/11/24 08:13 upstream 7c98a4261827 ecc7c870 .config console log report ci-upstream-kasan-gce-smack-root
2018/11/11 17:46 upstream e255aee5b66c 7b5f8621 .config console log report ci-upstream-kasan-gce-smack-root
2019/04/30 02:38 upstream 80871482fd5c b617407b .config console log report ci-upstream-kasan-gce-386
2019/04/25 07:11 upstream cd8dead0c394 8e3c52b1 .config console log report ci-upstream-kasan-gce-386
2019/04/14 06:34 upstream b60bc0665e6a c402d8f1 .config console log report ci-upstream-kasan-gce-386
2019/04/01 11:47 upstream 79a3aaa7b82e ccf2355a .config console log report ci-upstream-kasan-gce-386
2018/12/06 12:13 net-old ebaf39e6032f 3ab38479 .config console log report ci-upstream-net-this-kasan-gce
* Struck through repros no longer work on HEAD.