syzbot


general protection fault in __sock_release

Status: fixed on 2018/08/07 13:43
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+93387e30581485308b70@syzkaller.appspotmail.com
Fix commit: 99ba2b5aba24 bpf: sockhash, disallow bpf_tcp_close and update in parallel
First crash: 2107d, last: 2107d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in __sock_release syz done 8 1324d 1337d 1/1 fixed on 2020/10/09 08:27
linux-4.14 general protection fault in __sock_release syz done 12 1324d 1336d 1/1 fixed on 2020/10/09 20:44
upstream general protection fault in __sock_release (2) net 20 1774d 1912d 0/26 auto-closed as invalid on 2019/10/25 08:42
upstream general protection fault in __sock_release (3) net syz done unreliable 21 1329d 1333d 0/26 auto-obsoleted due to no activity on 2022/12/17 04:12

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] 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

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/19 16:37 bpf-next 8ae71e76cf1f 49f35839 .config console log report ci-upstream-bpf-next-kasan-gce
* Struck through repros no longer work on HEAD.