syzbot


general protection fault in tls_sk_proto_close (2)

Status: fixed on 2019/10/09 10:54
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+7a6ee4d0078eac6bf782@syzkaller.appspotmail.com
Fix commit: 44580a0118d3 net: sock_map, fix missing ulp check in sock hash case
First crash: 1727d, last: 1708d
Cause bisection: failed (error log, bisect log)
  
Discussions (4)
Title Replies (including bot) Last reply
[PATCH 5.2 00/85] 5.2.16-stable review 94 (94) 2019/09/19 06:37
[net PATCH] net: sock_map, fix missing ulp check in sock hash case 2 (2) 2019/09/05 09:57
Re: general protection fault in tls_sk_proto_close (2) 4 (4) 2019/08/29 22:18
general protection fault in tls_sk_proto_close (2) 1 (2) 2019/08/28 22:26
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in tls_sk_proto_close syz done 260 1727d 1759d 12/26 fixed on 2019/08/27 17:15
linux-4.19 general protection fault in tls_sk_proto_close C error 2 969d 1175d 0/1 upstream: reported C repro on 2021/03/01 13:43
upstream general protection fault in tls_sk_proto_close (3) net C done 276 699d 1098d 22/26 fixed on 2023/02/24 13:50

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] PREEMPT SMP KASAN
CPU: 0 PID: 10686 Comm: syz-executor.5 Not tainted 5.3.0-rc6+ #122
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:tls_sk_proto_close+0xe5/0x990 net/tls/tls_main.c:298
Code: 0f 85 3f 08 00 00 49 8b 84 24 c0 02 00 00 4d 8d 75 14 4c 89 f2 48 c1 ea 03 48 89 85 50 ff ff ff 48 b8 00 00 00 00 00 fc ff df <0f> b6 04 02 4c 89 f2 83 e2 07 38 d0 7f 08 84 c0 0f 85 2e 06 00 00
RSP: 0018:ffff888099b6fb90 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: dffffc0000000000 RCX: ffffffff862cc00b
RDX: 0000000000000002 RSI: ffffffff862cbd69 RDI: ffff888099df6fc0
RBP: ffff888099b6fc48 R08: ffff8880a44a2440 R09: ffffed10133bedb2
R10: ffffed10133bedb1 R11: ffff888099df6d8b R12: ffff888099df6d00
R13: 0000000000000000 R14: 0000000000000014 R15: 0000000000000001
FS:  0000555556678940(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000075c000 CR3: 000000008bdee000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 tls_sk_proto_close+0x35b/0x990 net/tls/tls_main.c:321
 tcp_bpf_close+0x17c/0x390 net/ipv4/tcp_bpf.c:582
 inet_release+0xed/0x200 net/ipv4/af_inet.c:427
 inet6_release+0x53/0x80 net/ipv6/af_inet6.c:470
 __sock_release+0xce/0x280 net/socket.c:590
 sock_close+0x1e/0x30 net/socket.c:1268
 __fput+0x2ff/0x890 fs/file_table.c:280
 ____fput+0x16/0x20 fs/file_table.c:313
 task_work_run+0x145/0x1c0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop+0x316/0x380 arch/x86/entry/common.c:163
 prepare_exit_to_usermode arch/x86/entry/common.c:194 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:274 [inline]
 do_syscall_64+0x5a9/0x6a0 arch/x86/entry/common.c:299
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x413561
Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 04 1b 00 00 c3 48 83 ec 08 e8 0a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 53 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01
RSP: 002b:00007fff74ddd4e0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000006 RCX: 0000000000413561
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 0000000000000001 R08: ffffffffffffffff R09: ffffffffffffffff
R10: 00007fff74ddd5c0 R11: 0000000000000293 R12: 000000000075bf20
R13: 0000000000015b63 R14: 0000000000761720 R15: ffffffffffffffff
Modules linked in:
---[ end trace d8a3bcd59850b783 ]---
RIP: 0010:tls_sk_proto_close+0xe5/0x990 net/tls/tls_main.c:298
Code: 0f 85 3f 08 00 00 49 8b 84 24 c0 02 00 00 4d 8d 75 14 4c 89 f2 48 c1 ea 03 48 89 85 50 ff ff ff 48 b8 00 00 00 00 00 fc ff df <0f> b6 04 02 4c 89 f2 83 e2 07 38 d0 7f 08 84 c0 0f 85 2e 06 00 00
RSP: 0018:ffff888099b6fb90 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: dffffc0000000000 RCX: ffffffff862cc00b
RDX: 0000000000000002 RSI: ffffffff862cbd69 RDI: ffff888099df6fc0
RBP: ffff888099b6fc48 R08: ffff8880a44a2440 R09: ffffed10133bedb2
R10: ffffed10133bedb1 R11: ffff888099df6d8b R12: ffff888099df6d00
R13: 0000000000000000 R14: 0000000000000014 R15: 0000000000000001
FS:  0000555556678940(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000007126b4 CR3: 000000008bdee000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (246):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/09/01 23:26 upstream eea173097dfb bad3cce2 .config console log report syz ci-upstream-kasan-gce-selinux-root
2019/09/01 13:09 upstream eea173097dfb bad3cce2 .config console log report syz ci-upstream-kasan-gce-smack-root
2019/09/01 12:39 upstream eea173097dfb bad3cce2 .config console log report syz ci-upstream-kasan-gce-root
2019/08/30 22:41 upstream 6525771f58cb fd37b39e .config console log report syz ci-upstream-kasan-gce-root
2019/08/30 21:46 upstream 6525771f58cb fd37b39e .config console log report syz ci-upstream-kasan-gce-smack-root
2019/08/30 21:43 upstream 6525771f58cb fd37b39e .config console log report syz ci-upstream-kasan-gce-selinux-root
2019/08/30 01:19 upstream 6525771f58cb fd37b39e .config console log report syz ci-upstream-kasan-gce-selinux-root
2019/08/30 00:43 upstream 6525771f58cb fd37b39e .config console log report syz ci-upstream-kasan-gce-root
2019/08/30 00:42 upstream 6525771f58cb fd37b39e .config console log report syz ci-upstream-kasan-gce-smack-root
2019/08/29 12:14 upstream 6525771f58cb fd37b39e .config console log report syz ci-upstream-kasan-gce-smack-root
2019/08/29 12:03 upstream 6525771f58cb fd37b39e .config console log report syz ci-upstream-kasan-gce-root
2019/08/29 12:02 upstream 6525771f58cb fd37b39e .config console log report syz ci-upstream-kasan-gce-selinux-root
2019/08/28 02:17 upstream 6525771f58cb fd37b39e .config console log report syz ci-upstream-kasan-gce-selinux-root
2019/08/28 02:14 upstream 6525771f58cb fd37b39e .config console log report syz ci-upstream-kasan-gce-root
2019/08/28 02:14 upstream 6525771f58cb fd37b39e .config console log report syz ci-upstream-kasan-gce-smack-root
2019/08/28 00:47 upstream 6525771f58cb fd37b39e .config console log report syz ci-upstream-kasan-gce-selinux-root
2019/08/27 19:24 upstream a55aa89aab90 d21c5d9d .config console log report syz ci-upstream-kasan-gce-root
2019/08/27 19:17 upstream a55aa89aab90 d21c5d9d .config console log report syz ci-upstream-kasan-gce-smack-root
2019/08/27 18:48 upstream a55aa89aab90 d21c5d9d .config console log report syz ci-upstream-kasan-gce-selinux-root
2019/08/31 20:27 net-old 9e8312f5e160 fd37b39e .config console log report syz ci-upstream-net-this-kasan-gce
2019/08/30 21:44 net-old 9e8312f5e160 fd37b39e .config console log report syz ci-upstream-net-this-kasan-gce
2019/08/30 00:13 net-old 9e8312f5e160 fd37b39e .config console log report syz ci-upstream-net-this-kasan-gce
2019/08/29 11:29 net-old 9e8312f5e160 fd37b39e .config console log report syz ci-upstream-net-this-kasan-gce
2019/08/28 01:44 net-old 9e8312f5e160 fd37b39e .config console log report syz ci-upstream-net-this-kasan-gce
2019/08/27 19:18 net-old f53a7ad18959 d21c5d9d .config console log report syz ci-upstream-net-this-kasan-gce
2019/09/01 09:34 net-next-old ed6e8103ba72 bad3cce2 .config console log report syz ci-upstream-net-kasan-gce
2019/08/30 21:08 net-next-old d00ee466a07e fd37b39e .config console log report syz ci-upstream-net-kasan-gce
2019/08/30 00:42 net-next-old d00ee466a07e fd37b39e .config console log report syz ci-upstream-net-kasan-gce
2019/08/29 12:03 net-next-old d00ee466a07e fd37b39e .config console log report syz ci-upstream-net-kasan-gce
2019/08/28 03:41 net-next-old d00ee466a07e fd37b39e .config console log report syz ci-upstream-net-kasan-gce
2019/08/28 02:30 net-next-old d00ee466a07e fd37b39e .config console log report syz ci-upstream-net-kasan-gce
2019/08/30 22:06 linux-next ed2393ca0910 fd37b39e .config console log report syz ci-upstream-linux-next-kasan-gce-root
2019/08/30 00:43 linux-next ed2393ca0910 fd37b39e .config console log report syz ci-upstream-linux-next-kasan-gce-root
2019/08/29 13:33 linux-next ed2393ca0910 fd37b39e .config console log report syz ci-upstream-linux-next-kasan-gce-root
2019/08/28 06:27 linux-next ed2393ca0910 fd37b39e .config console log report syz ci-upstream-linux-next-kasan-gce-root
2019/08/28 05:04 linux-next ed2393ca0910 fd37b39e .config console log report syz ci-upstream-linux-next-kasan-gce-root
2019/09/05 22:37 upstream 3b47fd5ca9ea 040fda58 .config console log report ci-upstream-kasan-gce-root
2019/09/04 15:07 net-old e33b4325e60e 12381952 .config console log report ci-upstream-net-this-kasan-gce
2019/09/03 22:46 net-old e33b4325e60e 48448e71 .config console log report ci-upstream-net-this-kasan-gce
2019/09/03 17:53 net-old e33b4325e60e 48448e71 .config console log report ci-upstream-net-this-kasan-gce
2019/09/03 02:42 net-old e1e54ec7fb55 14544a56 .config console log report ci-upstream-net-this-kasan-gce
2019/09/02 22:00 net-old e1e54ec7fb55 14544a56 .config console log report ci-upstream-net-this-kasan-gce
2019/09/02 14:55 net-old dd7078f05e1b db7c31ca .config console log report ci-upstream-net-this-kasan-gce
2019/09/16 01:05 net-next-old a3d3c74da49c 32d59357 .config console log report ci-upstream-net-kasan-gce
2019/09/15 23:58 net-next-old a3d3c74da49c 32d59357 .config console log report ci-upstream-net-kasan-gce
2019/09/15 08:52 net-next-old 1ba569fc2250 32d59357 .config console log report ci-upstream-net-kasan-gce
2019/09/15 06:04 net-next-old 1ba569fc2250 32d59357 .config console log report ci-upstream-net-kasan-gce
2019/09/14 15:12 net-next-old 1ba569fc2250 32d59357 .config console log report ci-upstream-net-kasan-gce
2019/09/13 11:17 net-next-old 172ca8308b05 40fa42bc .config console log report ci-upstream-net-kasan-gce
2019/09/12 13:14 net-next-old c1609946b8b6 f4e53c10 .config console log report ci-upstream-net-kasan-gce
2019/09/12 10:33 net-next-old c1609946b8b6 f4e53c10 .config console log report ci-upstream-net-kasan-gce
2019/09/11 02:52 net-next-old 074be7fd99a2 a60cb4cd .config console log report ci-upstream-net-kasan-gce
2019/09/11 01:43 net-next-old 074be7fd99a2 a60cb4cd .config console log report ci-upstream-net-kasan-gce
2019/09/10 17:59 net-next-old db63864786c7 a60cb4cd .config console log report ci-upstream-net-kasan-gce
2019/09/10 16:08 net-next-old db63864786c7 a60cb4cd .config console log report ci-upstream-net-kasan-gce
2019/09/09 16:39 net-next-old 6703a605b5ab a60cb4cd .config console log report ci-upstream-net-kasan-gce
2019/09/09 14:28 net-next-old 6703a605b5ab a60cb4cd .config console log report ci-upstream-net-kasan-gce
2019/09/09 05:08 net-next-old 6703a605b5ab a60cb4cd .config console log report ci-upstream-net-kasan-gce
2019/09/09 02:10 net-next-old 6703a605b5ab a60cb4cd .config console log report ci-upstream-net-kasan-gce
2019/09/08 00:39 net-next-old 742ca7812bcc a60cb4cd .config console log report ci-upstream-net-kasan-gce
2019/09/06 12:58 net-next-old 0e5b36bc4c1f 040fda58 .config console log report ci-upstream-net-kasan-gce
2019/09/06 10:27 net-next-old 0e5b36bc4c1f 040fda58 .config console log report ci-upstream-net-kasan-gce
2019/09/06 06:34 net-next-old 0e5b36bc4c1f 040fda58 .config console log report ci-upstream-net-kasan-gce
2019/09/06 05:43 net-next-old 0e5b36bc4c1f 040fda58 .config console log report ci-upstream-net-kasan-gce
2019/09/06 02:17 net-next-old 0e5b36bc4c1f 040fda58 .config console log report ci-upstream-net-kasan-gce
2019/09/05 20:24 net-next-old 0e5b36bc4c1f 040fda58 .config console log report ci-upstream-net-kasan-gce
2019/09/05 14:07 net-next-old 0e5b36bc4c1f 040fda58 .config console log report ci-upstream-net-kasan-gce
2019/09/05 11:45 net-next-old 0d622143d174 040fda58 .config console log report ci-upstream-net-kasan-gce
2019/09/05 09:49 net-next-old 0d622143d174 040fda58 .config console log report ci-upstream-net-kasan-gce
2019/09/05 03:57 net-next-old 0d622143d174 040fda58 .config console log report ci-upstream-net-kasan-gce
2019/09/03 20:51 net-next-old 67538eb5c00f 48448e71 .config console log report ci-upstream-net-kasan-gce
2019/09/03 17:10 net-next-old 67538eb5c00f 48448e71 .config console log report ci-upstream-net-kasan-gce
2019/09/03 12:16 net-next-old 67538eb5c00f 48448e71 .config console log report ci-upstream-net-kasan-gce
2019/09/03 09:50 net-next-old 67538eb5c00f 14544a56 .config console log report ci-upstream-net-kasan-gce
2019/09/03 07:51 net-next-old a21cf11bc57f 14544a56 .config console log report ci-upstream-net-kasan-gce
2019/09/03 06:45 net-next-old a21cf11bc57f 14544a56 .config console log report ci-upstream-net-kasan-gce
2019/09/03 04:46 net-next-old a21cf11bc57f 14544a56 .config console log report ci-upstream-net-kasan-gce
2019/09/03 03:45 net-next-old a21cf11bc57f 14544a56 .config console log report ci-upstream-net-kasan-gce
2019/09/03 00:49 net-next-old a21cf11bc57f 14544a56 .config console log report ci-upstream-net-kasan-gce
2019/09/02 20:34 net-next-old a21cf11bc57f 14544a56 .config console log report ci-upstream-net-kasan-gce
2019/09/02 17:38 net-next-old 4bc61b0b1695 14544a56 .config console log report ci-upstream-net-kasan-gce
2019/09/02 13:44 net-next-old 4bc61b0b1695 db7c31ca .config console log report ci-upstream-net-kasan-gce
2019/09/02 11:47 net-next-old 4bc61b0b1695 db7c31ca .config console log report ci-upstream-net-kasan-gce
2019/09/02 10:47 net-next-old 4bc61b0b1695 db7c31ca .config console log report ci-upstream-net-kasan-gce
2019/09/09 19:41 linux-next 6d028043b55e a60cb4cd .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.