general protection fault in addr_resolve

11 views
Skip to first unread message

syzbot

unread,
Apr 16, 2019, 10:44:05 PM4/16/19
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 1ec8f1f0 Linux 4.14.111
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1029952d200000
kernel config: https://syzkaller.appspot.com/x/.config?x=fdadf290ea9fc6f9
dashboard link: https://syzkaller.appspot.com/bug?extid=e31aa57e9a97afc20d15
compiler: gcc (GCC) 9.0.0 20181231 (experimental)

Unfortunately, I don't have any reproducer for this crash yet.

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+e31aa5...@syzkaller.appspotmail.com

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
Modules linked in:
CPU: 0 PID: 11848 Comm: syz-executor.0 Not tainted 4.14.111 #1
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
task: ffff8880a0302200 task.stack: ffff888062238000
RIP: 0010:addr_resolve+0x28c/0xa80 drivers/infiniband/core/addr.c:586
RSP: 0018:ffff88806223f828 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90006227000
RDX: 00000000000000a8 RSI: ffffffff846d7dcb RDI: 0000000000000282
RBP: ffff88806223f920 R08: ffff8880a0302200 R09: 0000000000000000
R10: 0000000000000000 R11: ffff8880a0302200 R12: 00000000ffffff9d
R13: ffff888081e88780 R14: ffff888082c28ee0 R15: 0000000000000540
FS: 00007fe02ec22700(0000) GS:ffff8880aee00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000625208 CR3: 0000000086d78000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
rdma_resolve_ip+0x3d9/0x660 drivers/infiniband/core/addr.c:710
rdma_resolve_addr+0x1f5/0x2520 drivers/infiniband/core/cma.c:2931
ucma_resolve_addr+0x158/0x1f0 drivers/infiniband/core/ucma.c:719
ucma_write+0x234/0x310 drivers/infiniband/core/ucma.c:1672
__vfs_write+0x107/0x6c0 fs/read_write.c:480
vfs_write+0x198/0x500 fs/read_write.c:544
SYSC_write fs/read_write.c:589 [inline]
SyS_write+0xb8/0x180 fs/read_write.c:581
do_syscall_64+0x1eb/0x630 arch/x86/entry/common.c:289
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x458c29
RSP: 002b:00007fe02ec21c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000458c29
RDX: 0000000000000013 RSI: 0000000020000140 RDI: 0000000000000004
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe02ec226d4
R13: 00000000004c4bf6 R14: 00000000004de030 R15: 00000000ffffffff
Code: e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 f4 06 00 00 45 89 6e 64 e8 85
59 ef fc 4c 89 fa 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00
0f 85 c3 06 00 00 48 8b 83 40 05 00 00 65 ff 08 e8
RIP: addr_resolve+0x28c/0xa80 drivers/infiniband/core/addr.c:586 RSP:
ffff88806223f828
---[ end trace e6a58b313dc2354d ]---


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Apr 17, 2019, 12:24:05 AM4/17/19
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: 1ec8f1f0 Linux 4.14.111
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=108fc58f200000
kernel config: https://syzkaller.appspot.com/x/.config?x=fdadf290ea9fc6f9
dashboard link: https://syzkaller.appspot.com/bug?extid=e31aa57e9a97afc20d15
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1214aacb200000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10b9c81d200000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+e31aa5...@syzkaller.appspotmail.com

IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_1: link becomes ready
IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready
8021q: adding VLAN 0 to HW filter on device batadv0
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
Modules linked in:
CPU: 1 PID: 6964 Comm: syz-executor903 Not tainted 4.14.111 #1
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
task: ffff8880a50f0600 task.stack: ffff888095ea8000
RIP: 0010:addr_resolve+0x28c/0xa80 drivers/infiniband/core/addr.c:586
RSP: 0018:ffff888095eaf828 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 1ffff11014a1e1ce
RDX: 00000000000000a8 RSI: 0000000000000001 RDI: 0000000000000282
RBP: ffff888095eaf920 R08: ffff8880a50f0600 R09: 0000000000000000
R10: 0000000000000000 R11: ffff8880a50f0600 R12: 00000000ffffff9d
R13: ffff888093bd41c0 R14: ffff888083500ea0 R15: 0000000000000540
FS: 0000000000ed2880(0000) GS:ffff8880aef00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000006d3090 CR3: 000000008ec8b000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
rdma_resolve_ip+0x3d9/0x660 drivers/infiniband/core/addr.c:710
rdma_resolve_addr+0x1f5/0x2520 drivers/infiniband/core/cma.c:2931
ucma_resolve_addr+0x158/0x1f0 drivers/infiniband/core/ucma.c:719
ucma_write+0x234/0x310 drivers/infiniband/core/ucma.c:1672
__vfs_write+0x107/0x6c0 fs/read_write.c:480
vfs_write+0x198/0x500 fs/read_write.c:544
SYSC_write fs/read_write.c:589 [inline]
SyS_write+0xb8/0x180 fs/read_write.c:581
do_syscall_64+0x1eb/0x630 arch/x86/entry/common.c:289
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x442379
RSP: 002b:00007ffe93a05b88 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000442379
RDX: 0000000000000013 RSI: 0000000020000140 RDI: 0000000000000003
RBP: 00000000004a95b0 R08: 0000000001bbbbbb R09: 0000000001bbbbbb
R10: 0000000001bbbbbb R11: 0000000000000246 R12: 0000000000403280
R13: 0000000000403310 R14: 0000000000000000 R15: 0000000000000000
Code: e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 f4 06 00 00 45 89 6e 64 e8 85
59 ef fc 4c 89 fa 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00
0f 85 c3 06 00 00 48 8b 83 40 05 00 00 65 ff 08 e8
RIP: addr_resolve+0x28c/0xa80 drivers/infiniband/core/addr.c:586 RSP:
ffff888095eaf828
---[ end trace 50986b08dab34c4c ]---

Reply all
Reply to author
Forward
0 new messages