syzbot


general protection fault in rds_ib_get_mr

Status: fixed on 2018/08/08 18:10
Subsystems: rds
[Documentation on labels]
Reported-by: syzbot+b51c77ef956678a65834@syzkaller.appspotmail.com
Fix commit: 9e630bcb7701 RDS: RDMA: Fix the NULL-ptr deref in rds_ib_get_mr
First crash: 2392d, last: 2292d
Discussions (3)
Title Replies (including bot) Last reply
[PATCH 4.17 000/336] 4.17.12-stable review 316 (316) 2018/08/03 06:26
[PATCH] RDS: RDMA: Fix the NULL-ptr deref in rds_ib_get_mr 2 (2) 2018/07/26 21:04
general protection fault in rds_ib_get_mr 9 (10) 2018/07/26 11:40
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in rds_ib_get_mr C error 17 703d 1005d 0/1 upstream: reported C repro on 2022/01/06 02:37

Sample crash report:
audit: type=1400 audit(1521615317.627:7): avc:  denied  { map } for  pid=4240 comm="syzkaller468044" path="/root/syzkaller468044973" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 1 PID: 4244 Comm: syzkaller468044 Not tainted 4.16.0-rc6+ #361
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:rds_ib_get_mr+0x5c/0x230 net/rds/ib_rdma.c:544
RSP: 0018:ffff8801b059f890 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8801b07e1300 RCX: ffffffff8562d96e
RDX: 000000000000000d RSI: 0000000000000001 RDI: 0000000000000068
RBP: ffff8801b059f8b8 R08: ffffed0036274244 R09: ffff8801b13a1200
R10: 0000000000000004 R11: ffffed0036274243 R12: ffff8801b13a1200
R13: 0000000000000001 R14: ffff8801ca09fa9c R15: 0000000000000000
FS:  00007f4d050af700(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4d050aee78 CR3: 00000001b0d9b006 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __rds_rdma_map+0x710/0x1050 net/rds/rdma.c:271
 rds_get_mr_for_dest+0x1d4/0x2c0 net/rds/rdma.c:357
 rds_setsockopt+0x6cc/0x980 net/rds/af_rds.c:347
 SYSC_setsockopt net/socket.c:1849 [inline]
 SyS_setsockopt+0x189/0x360 net/socket.c:1828
 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x4456d9
RSP: 002b:00007f4d050aedb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00000000006dac3c RCX: 00000000004456d9
RDX: 0000000000000007 RSI: 0000000000000114 RDI: 0000000000000004
RBP: 00000000006dac38 R08: 00000000000000a0 R09: 0000000000000000
R10: 0000000020000380 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffbfb36d6f R14: 00007f4d050af9c0 R15: 0000000000000005
Code: fa 48 c1 ea 03 80 3c 02 00 0f 85 cc 01 00 00 4c 8b bb 80 04 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d 7f 68 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 9c 01 00 00 4d 8b 7f 68 48 b8 00 00 00 00 00 
RIP: rds_ib_get_mr+0x5c/0x230 net/rds/ib_rdma.c:544 RSP: ffff8801b059f890
---[ end trace 7e1cea13b85473b0 ]---
Kernel panic - not syncing: Fatal exception
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/03/21 06:57 upstream 3215b9d57a2c 113a43ff .config console log report syz C ci-upstream-kasan-gce
2018/03/21 05:54 net-next-old 0466080c751e 113a43ff .config console log report syz C ci-upstream-net-kasan-gce
2018/03/21 06:16 upstream 3215b9d57a2c 113a43ff .config console log report syz ci-upstream-kasan-gce-386
2018/06/28 14:16 net-next-old 964fc35c0910 dba0b50e .config console log report ci-upstream-net-kasan-gce
2018/06/14 02:08 net-next-old f0dc7f9c6dd9 27c5f59f .config console log report ci-upstream-net-kasan-gce
2018/06/10 17:07 net-next-old 3a979e8c07e3 866118af .config console log report ci-upstream-net-kasan-gce
2018/05/02 07:58 net-next-old 702353b538f5 d5b114b4 .config console log report ci-upstream-net-kasan-gce
2018/04/08 09:41 net-next-old 17dec0a94915 66f22a7f .config console log report ci-upstream-net-kasan-gce
2018/03/21 05:36 net-next-old 0466080c751e 113a43ff .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.