general protection fault in __sock_release

9 views
Skip to first unread message

syzbot

unread,
Jul 19, 2018, 2:19:03 PM7/19/18
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 8ae71e76cf1f Merge branch 'bpf-offload-sharing'
git tree: bpf-next
console output: https://syzkaller.appspot.com/x/log.txt?x=16097a58400000
kernel config: https://syzkaller.appspot.com/x/.config?x=89129667b46496c3
dashboard link: https://syzkaller.appspot.com/bug?extid=93387e30581485308b70
compiler: gcc (GCC) 8.0.1 20180413 (experimental)
CC: [da...@davemloft.net linux-...@vger.kernel.org
net...@vger.kernel.org]

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+93387e...@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] SMP KASAN
CPU: 0 PID: 26054 Comm: syz-executor0 Not tainted 4.18.0-rc3+ #58
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:__sock_release+0x5f/0x260 net/socket.c:595
Code: 00 00 4c 8b 63 28 4d 85 e4 0f 84 cb 00 00 00 e8 67 1d 8e fb 49 8d 7c
24 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f
85 c2 01 00 00 4d 8b 7c 24 08 4d 85 ed 0f 84 39 01
RSP: 0018:ffff88019ef97bb8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8801940810c0 RCX: ffffc90002216000
RDX: 0000000000000051 RSI: ffffffff85edee69 RDI: 000000000000028a
RBP: ffff88019ef97be0 R08: 1ffff10033df2f5f R09: 0000000000000000
R10: ffffed003281022f R11: ffffffff88f6d243 R12: 0000000000000282
R13: 0000000000000000 R14: ffff8801940810e8 R15: ffff88019ef97cc8
FS: 00007fb7903d5700(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc56dedd50 CR3: 00000001c3d74000 CR4: 00000000001406f0
DR0: 00000000200001c0 DR1: 00000000200001c0 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
sock_release net/socket.c:618 [inline]
__sock_create+0x44e/0x940 net/socket.c:1315
sock_create net/socket.c:1326 [inline]
__sys_socketpair+0x200/0x7a0 net/socket.c:1414
__do_sys_socketpair net/socket.c:1467 [inline]
__se_sys_socketpair net/socket.c:1464 [inline]
__x64_sys_socketpair+0x97/0xf0 net/socket.c:1464
do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x455ab9
Code: 1d ba fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 eb b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fb7903d4c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000035
RAX: ffffffffffffffda RBX: 00007fb7903d56d4 RCX: 0000000000455ab9
RDX: 0000000000000081 RSI: 000000000000000a RDI: 0000000000000000
RBP: 000000000072bf48 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000020003240 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000004c1e98 R14: 00000000004d3780 R15: 0000000000000001
Modules linked in:
Dumping ftrace buffer:
(ftrace buffer empty)
---[ end trace 1fea94bc8b51714b ]---
RIP: 0010:__sock_release+0x5f/0x260 net/socket.c:595
Code: 00 00 4c 8b 63 28 4d 85 e4 0f 84 cb 00 00 00 e8 67 1d 8e fb 49 8d 7c
24 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f
85 c2 01 00 00 4d 8b 7c 24 08 4d 85 ed 0f 84 39 01
RSP: 0018:ffff88019ef97bb8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8801940810c0 RCX: ffffc90002216000
RDX: 0000000000000051 RSI: ffffffff85edee69 RDI: 000000000000028a
RBP: ffff88019ef97be0 R08: 1ffff10033df2f5f R09: 0000000000000000
R10: ffffed003281022f R11: ffffffff88f6d243 R12: 0000000000000282
R13: 0000000000000000 R14: ffff8801940810e8 R15: ffff88019ef97cc8
FS: 00007fb7903d5700(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc56dedd50 CR3: 00000001c3d74000 CR4: 00000000001406f0
DR0: 00000000200001c0 DR1: 00000000200001c0 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600


---
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#bug-status-tracking for how to communicate with
syzbot.

Dmitry Vyukov

unread,
Jul 20, 2018, 1:56:43 AM7/20/18
to syzbot, 'Dmitry Vyukov' via syzkaller-upstream-moderation
#syz fix: bpf: sockhash, disallow bpf_tcp_close and update in parallel
> --
> You received this message because you are subscribed to the Google Groups
> "syzkaller-upstream-moderation" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to syzkaller-upstream-m...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/syzkaller-upstream-moderation/000000000000b7270705715e36fc%40google.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages