syzbot


general protection fault in __sock_release

Status: fixed on 2020/10/09 08:27
Reported-by: syzbot+b4e0d2c4da75256c90ca@syzkaller.appspotmail.com
Fix commit: 37d933e8b41b fix regression in "epoll: Keep a reference on files added to the check list"
First crash: 1331d, last: 1319d
Fix bisection: fixed by (bisect log) :
commit 37d933e8b41b83bb8278815e366aec5a542b7e31
Author: Al Viro <viro@zeniv.linux.org.uk>
Date: Wed Sep 2 15:30:48 2020 +0000

  fix regression in "epoll: Keep a reference on files added to the check list"

  
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in __sock_release syz done 12 1318d 1331d 1/1 fixed on 2020/10/09 20:44
upstream general protection fault in __sock_release net 1 2101d 2101d 8/26 fixed on 2018/08/07 13:43
upstream general protection fault in __sock_release (2) net 20 1768d 1906d 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 1323d 1327d 0/26 auto-obsoleted due to no activity on 2022/12/17 04:12

Sample crash report:
Bluetooth: hci0: command 0x041b tx timeout
Bluetooth: hci0: command 0x040f tx timeout
Bluetooth: hci0: command 0x0419 tx timeout
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
CPU: 1 PID: 10457 Comm: syz-executor.0 Not tainted 4.19.143-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__sock_release+0xbb/0x2a0 net/socket.c:579
Code: ff df 48 c1 ea 03 80 3c 02 00 0f 85 c9 01 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 63 28 49 8d 7c 24 10 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 b2 01 00 00 48 89 df 41 ff 54 24 10 48 8d 7b 20
RSP: 0018:ffff888098157df8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8880801e4080 RCX: 0000000000004724
RDX: 0000000000000002 RSI: 00000000a87acb66 RDI: 0000000000000010
RBP: ffff8880801e4188 R08: ffffffff8b40e1a0 R09: 0000000000000000
R10: ffff888087710dc8 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880801e40a8 R14: 0000000000000000 R15: ffff8880a94f2a20
FS:  00007f188fcf9700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000009e3b2000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 sock_close+0x15/0x20 net/socket.c:1140
 __fput+0x2ce/0x890 fs/file_table.c:278
 task_work_run+0x148/0x1c0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:193 [inline]
 exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45d5b9
Code: 5d b4 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 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f188fcf8c78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e9
RAX: 0000000000000000 RBX: 0000000000002ac0 RCX: 000000000045d5b9
RDX: 0000000000000005 RSI: 0000000000000001 RDI: 0000000000000006
RBP: 000000000118cf88 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000020000080 R11: 0000000000000246 R12: 000000000118cf4c
R13: 00007ffefe5ed30f R14: 00007f188fcf99c0 R15: 000000000118cf4c
Modules linked in:
---[ end trace 1d90546860d1935f ]---
RIP: 0010:__sock_release+0xbb/0x2a0 net/socket.c:579
Code: ff df 48 c1 ea 03 80 3c 02 00 0f 85 c9 01 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 63 28 49 8d 7c 24 10 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 b2 01 00 00 48 89 df 41 ff 54 24 10 48 8d 7b 20
RSP: 0018:ffff888098157df8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8880801e4080 RCX: 0000000000004724
RDX: 0000000000000002 RSI: 00000000a87acb66 RDI: 0000000000000010
RBP: ffff8880801e4188 R08: ffffffff8b40e1a0 R09: 0000000000000000
R10: ffff888087710dc8 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880801e40a8 R14: 0000000000000000 R15: ffff8880a94f2a20
FS:  00007f188fcf9700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055f7ceb74230 CR3: 000000009e3b2000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/09 01:23 linux-4.19.y c37da90efff5 abf9ba4f .config console log report syz ci2-linux-4-19
2020/09/08 17:19 linux-4.19.y c37da90efff5 abf9ba4f .config console log report syz ci2-linux-4-19
2020/09/03 22:43 linux-4.19.y c37da90efff5 abf9ba4f .config console log report syz ci2-linux-4-19
2020/09/03 19:20 linux-4.19.y c37da90efff5 abf9ba4f .config console log report syz ci2-linux-4-19
2020/08/29 14:34 linux-4.19.y f6d5cb9e2c06 d5a3ae1f .config console log report syz ci2-linux-4-19
2020/08/28 09:01 linux-4.19.y f6d5cb9e2c06 816e0689 .config console log report syz ci2-linux-4-19
2020/08/27 19:51 linux-4.19.y f6d5cb9e2c06 816e0689 .config console log report syz ci2-linux-4-19
2020/09/08 16:42 linux-4.19.y c37da90efff5 abf9ba4f .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.