syzbot


general protection fault in __sock_release
Status: fixed on 2020/10/09 20:44
Reported-by: syzbot+b9e6839090ab52915446@syzkaller.appspotmail.com
Fix commit: c5c6e00f6cc5 fix regression in "epoll: Keep a reference on files added to the check list"
First crash: 636d, last: 624d

Fix bisection: fixed by (bisect log) :
commit c5c6e00f6cc5d3ed0d6464b14e33f2f5c8505888
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.19 general protection fault in __sock_release syz done 8 624d 636d 1/1 fixed on 2020/10/09 08:27
upstream general protection fault in __sock_release 1 1407d 1406d 9/22 fixed on 2018/08/07 13:43
upstream general protection fault in __sock_release (2) 20 1074d 1212d 0/22 auto-closed as invalid on 2019/10/25 08:42
upstream general protection fault in __sock_release (3) syz done unreliable 21 629d 632d 0/22 upstream: reported syz repro on 2020/08/31 19:38

Sample crash report:
IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready
Bluetooth: hci0 command 0x0409 tx timeout
Bluetooth: hci0 command 0x041b 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
Modules linked in:
CPU: 0 PID: 7420 Comm: syz-executor.0 Not tainted 4.14.196-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff88809713a400 task.stack: ffff888096c98000
RIP: 0010:__sock_release+0xbb/0x2b0 net/socket.c:602
RSP: 0018:ffff888096c9fdc0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff888082677940 RCX: 000000000000754e
RDX: 0000000000000002 RSI: 0000000000000001 RDI: 0000000000000010
RBP: ffff888082677a50 R08: ffffffff8a0b43f0 R09: 000000000004044f
R10: ffff88809713ac88 R11: ffff88809713a400 R12: 0000000000000000
R13: ffff888082677968 R14: 0000000000000000 R15: ffff8880a087c2d0
FS:  0000000001920940(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fdeafe74f60 CR3: 000000008442f000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 sock_close+0x15/0x20 net/socket.c:1139
 __fput+0x25f/0x7a0 fs/file_table.c:210
 task_work_run+0x11f/0x190 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:191 [inline]
 exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164
 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:270 [inline]
 do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x416f01
RSP: 002b:00007ffe8450ec20 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 0000000000416f01
RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000001190598 R09: 0000000000000000
R10: 00007ffe8450ed00 R11: 0000000000000293 R12: 00000000011905a0
R13: 0000000000000000 R14: ffffffffffffffff R15: 000000000118cf4c
Code: fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 d5 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 be 01 00 00 48 89 df 41 ff 54 24 10 48 8d 7b 
RIP: __sock_release+0xbb/0x2b0 net/socket.c:602 RSP: ffff888096c9fdc0
---[ end trace 4163f9830289a0dc ]---

Crashes (12):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-14 2020/09/09 09:17 linux-4.14.y 2f166cdcf8a9 0ea7a887 .config log report syz
ci2-linux-4-14 2020/09/07 20:55 linux-4.14.y 2f166cdcf8a9 abf9ba4f .config log report syz
ci2-linux-4-14 2020/09/07 12:12 linux-4.14.y 2f166cdcf8a9 abf9ba4f .config log report syz
ci2-linux-4-14 2020/09/07 09:04 linux-4.14.y 2f166cdcf8a9 abf9ba4f .config log report syz
ci2-linux-4-14 2020/09/06 00:54 linux-4.14.y 2f166cdcf8a9 abf9ba4f .config log report syz
ci2-linux-4-14 2020/09/04 12:27 linux-4.14.y 2f166cdcf8a9 abf9ba4f .config log report syz
ci2-linux-4-14 2020/09/04 09:09 linux-4.14.y 2f166cdcf8a9 abf9ba4f .config log report syz
ci2-linux-4-14 2020/08/30 09:11 linux-4.14.y d7e78d08fa77 d5a3ae1f .config log report syz
ci2-linux-4-14 2020/08/29 15:54 linux-4.14.y d7e78d08fa77 d5a3ae1f .config log report syz
ci2-linux-4-14 2020/08/28 07:37 linux-4.14.y d7e78d08fa77 816e0689 .config log report syz
ci2-linux-4-14 2020/08/27 21:52 linux-4.14.y d7e78d08fa77 816e0689 .config log report syz
ci2-linux-4-14 2020/09/07 08:51 linux-4.14.y 2f166cdcf8a9 abf9ba4f .config log report