syzbot


general protection fault in __rds_rdma_map

Status: fixed on 2018/01/31 00:24
Subsystems: rds
[Documentation on labels]
Reported-by: syzbot+525955f2a192792af0477bdf55d959ef5c0ce954@syzkaller.appspotmail.com
Fix commit: f3069c6d33f6 rds: Fix NULL pointer dereference in __rds_rdma_map
First crash: 2347d, last: 2329d

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
RDS: rds_bind could not find a transport for 172.20.0.170, load rds_tcp or rds_rdma?
general protection fault: 0000 [#1] SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 0 PID: 3166 Comm: syzkaller144609 Not tainted 4.15.0-rc2+ #213
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__rds_rdma_map+0x133/0x1050 net/rds/rdma.c:191
RSP: 0018:ffff8801c36cfa28 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff8801c36cfbd0 RCX: ffffffff84c4587d
RDX: 0000000000000018 RSI: ffff8801c36cfbd0 RDI: 00000000000000c0
RBP: ffff8801c36cfb90 R08: ffffed00386d9f96 R09: ffffed00386d9f96
R10: 0000000000000000 R11: ffffed00386d9f95 R12: 0000000000000000
R13: ffff8801c54694c0 R14: 0000000000000000 R15: ffff8801c54694c0
FS:  00007f6c416a7700(0000) GS:ffff8801db400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6c416a6e78 CR3: 00000001d3726000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 rds_get_mr_for_dest+0x1bb/0x290 net/rds/rdma.c:357
 rds_setsockopt+0x6b9/0x970 net/rds/af_rds.c:347
 SYSC_setsockopt net/socket.c:1851 [inline]
 SyS_setsockopt+0x189/0x360 net/socket.c:1830
 entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x446629
RSP: 002b:00007f6c416a6dc8 EFLAGS: 00000202 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f6c416a7700 RCX: 0000000000446629
RDX: 0000000000000007 RSI: 0000400000000114 RDI: 0000000000000006
RBP: 00000000007efe90 R08: 00000000000000a0 R09: 00007f6c416a7700
R10: 0000000020000ffc R11: 0000000000000202 R12: 0000000000000000
R13: 00000000007efe8f R14: 00007f6c416a79c0 R15: 0000000000000000
Code: 57 0d 00 00 48 8b 85 f0 fe ff ff 4c 8b a0 b8 04 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d bc 24 c0 00 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 6a 0e 00 00 49 83 bc 24 c0 00 00 00 00 0f 84 
RIP: __rds_rdma_map+0x133/0x1050 net/rds/rdma.c:191 RSP: ffff8801c36cfa28
---[ end trace d5a0defe204d1938 ]---
Kernel panic - not syncing: Fatal exception
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/12/08 20:23 upstream 3625de4b2872 5ad0ce95 .config console log report syz C ci-upstream-kasan-gce
2017/11/21 13:56 upstream e1d1ea549b57 d4d14b03 .config console log report syz C ci-upstream-kasan-gce-386
2017/11/21 13:56 mmots a88177bc5b81 d4d14b03 .config console log report syz C ci-upstream-mmots-kasan-gce
2017/12/07 05:02 upstream e56d565d67ae 5d643f8e .config console log report syz ci-upstream-kasan-gce-386
2017/11/21 14:01 upstream e1d1ea549b57 d4d14b03 .config console log report syz ci-upstream-kasan-gce-386
2017/11/21 13:40 net-next-old 1deab8ce2c91 d4d14b03 .config console log report syz ci-upstream-net-kasan-gce
2017/11/21 13:54 linux-next aa1fbe633d30 d4d14b03 .config console log report syz ci-upstream-next-kasan-gce
2017/11/27 07:33 net-next-old 1d3b78bbc6e9 deb5f6ae .config console log report ci-upstream-kasan-gce-386
2017/12/10 01:06 net-next-old 5e54b3c12027 5ad0ce95 .config console log report ci-upstream-net-kasan-gce
2017/11/29 17:47 net-next-old 1d3b78bbc6e9 29b0fd90 .config console log report ci-upstream-net-kasan-gce
2017/11/23 08:47 net-next-old 0c86a6bd85ff ddf7b3e0 .config console log report ci-upstream-net-kasan-gce
2017/11/21 13:24 net-next-old 1deab8ce2c91 d4d14b03 .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.