syzbot


general protection fault in tls_sk_proto_close

Status: upstream: reported C repro on 2021/03/01 13:43
Reported-by: syzbot+3494e690cac2371c3ce7@syzkaller.appspotmail.com
First crash: 1150d, last: 944d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in tls_sk_proto_close (2) net syz error 246 1683d 1702d 13/26 fixed on 2019/10/09 10:54
upstream general protection fault in tls_sk_proto_close syz done 260 1702d 1734d 12/26 fixed on 2019/08/27 17:15
upstream general protection fault in tls_sk_proto_close (3) net C done 276 674d 1073d 22/26 fixed on 2023/02/24 13:50
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2021/10/28 14:05 11m bisect fix linux-4.19.y error job log (0)
2021/09/24 02:15 27m bisect fix linux-4.19.y job log (0) log
2021/08/25 01:38 27m bisect fix linux-4.19.y job log (0) log
2021/07/26 01:15 23m bisect fix linux-4.19.y job log (0) log
2021/06/26 00:53 21m bisect fix linux-4.19.y job log (0) log
2021/05/27 00:29 24m bisect fix linux-4.19.y job log (0) log
2021/04/26 23:57 31m bisect fix linux-4.19.y job log (0) log

Sample crash report:
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000004000 R11: 0000000000000246 R12: 00007ffd78b16f50
R13: 0000000000000000 R14: 00000000004ad018 R15: 0000000000400488
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: 8105 Comm: syz-executor657 Not tainted 4.19.177-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:207 [inline]
RIP: 0010:compound_head include/linux/page-flags.h:142 [inline]
RIP: 0010:put_page include/linux/mm.h:951 [inline]
RIP: 0010:tls_sk_proto_close+0x305/0xc20 net/tls/tls_main.c:277
Code: 00 fc ff df 48 89 44 24 30 48 c1 e8 03 4c 01 f0 48 89 44 24 08 e8 cb fc 6b fa 49 83 e4 fc 49 8d 7c 24 08 48 89 f8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 d1 07 00 00 49 8b 44 24 08 31 ff 49 89 c5 48
RSP: 0018:ffff8880a245fba8 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff88809516a580 RCX: ffffffff86f66433
RDX: 0000000000000000 RSI: ffffffff86f66255 RDI: 0000000000000008
RBP: ffff8880b0d5cc40 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff8880b31e50c0
FS:  0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffdede54ed0 CR3: 0000000009e6d000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 inet_release+0xd7/0x1e0 net/ipv4/af_inet.c:427
 inet6_release+0x4c/0x70 net/ipv6/af_inet6.c:472
 __sock_release+0xcd/0x2a0 net/socket.c:579
 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
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0xbf3/0x2be0 kernel/exit.c:870
 do_group_exit+0x125/0x310 kernel/exit.c:967
 __do_sys_exit_group kernel/exit.c:978 [inline]
 __se_sys_exit_group kernel/exit.c:976 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:976
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x43e9a9
Code: Bad RIP value.
RSP: 002b:00007ffd78b16fb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00000000004af3b0 RCX: 000000000043e9a9
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffffffffffc4 R09: 0000000000000000
R10: 0000000000004000 R11: 0000000000000246 R12: 00000000004af3b0
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
Modules linked in:
---[ end trace f4ace75330b45bf5 ]---
RIP: 0010:__read_once_size include/linux/compiler.h:207 [inline]
RIP: 0010:compound_head include/linux/page-flags.h:142 [inline]
RIP: 0010:put_page include/linux/mm.h:951 [inline]
RIP: 0010:tls_sk_proto_close+0x305/0xc20 net/tls/tls_main.c:277
Code: 00 fc ff df 48 89 44 24 30 48 c1 e8 03 4c 01 f0 48 89 44 24 08 e8 cb fc 6b fa 49 83 e4 fc 49 8d 7c 24 08 48 89 f8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 d1 07 00 00 49 8b 44 24 08 31 ff 49 89 c5 48
RSP: 0018:ffff8880a245fba8 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff88809516a580 RCX: ffffffff86f66433
RDX: 0000000000000000 RSI: ffffffff86f66255 RDI: 0000000000000008
RBP: ffff8880b0d5cc40 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff8880b31e50c0
FS:  00000000023203c0(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000043e97f CR3: 0000000009e6d000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/01 13:43 linux-4.19.y 2d19be4653f5 4c37c133 .config console log report syz C ci2-linux-4-19 general protection fault in tls_sk_proto_close
2021/03/27 22:48 linux-4.19.y 78fec1611cbf a8529b82 .config console log report info ci2-linux-4-19 general protection fault in tls_sk_proto_close
* Struck through repros no longer work on HEAD.