syzbot


general protection fault in tls_sk_proto_close (3)

Status: fixed on 2023/02/24 13:50
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+29c3c12f3214b85ad081@syzkaller.appspotmail.com
Fix commit: 69135c572d1f net/tls: fix tls_sk_proto_close executed repeatedly
First crash: 1112d, last: 669d
Cause bisection: introduced by (bisect log) :
commit 997acaf6b4b59c6a9c259740312a69ea549cc684
Author: Mark Rutland <mark.rutland@arm.com>
Date: Mon Jan 11 15:37:07 2021 +0000

  lockdep: report broken irq restoration

Crash: WARNING in kvm_wait (log)
Repro: syz .config
  
Discussions (6)
Title Replies (including bot) Last reply
[PATCH 5.18 000/181] 5.18.8-rc1 review 202 (202) 2022/07/06 23:51
[PATCH 5.4 00/60] 5.4.202-rc1 review 73 (73) 2022/06/30 09:21
[PATCH 5.15 000/135] 5.15.51-rc1 review 145 (145) 2022/06/29 10:52
[PATCH 5.10 000/102] 5.10.127-rc1 review 109 (109) 2022/06/29 01:07
[PATCH net] net/tls: fix tls_sk_proto_close executed repeatedly 3 (3) 2022/06/20 18:18
[syzbot] general protection fault in tls_sk_proto_close (3) 0 (2) 2021/07/31 14:48
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 1677d 1696d 13/26 fixed on 2019/10/09 10:54
upstream general protection fault in tls_sk_proto_close syz done 260 1697d 1729d 12/26 fixed on 2019/08/27 17:15
linux-4.19 general protection fault in tls_sk_proto_close C error 2 938d 1145d 0/1 upstream: reported C repro on 2021/03/01 13:43
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2022/05/24 01:23 19m bisect fix net-old job log (0) log
2022/04/01 13:36 26m bisect fix net-old job log (0) log

Sample crash report:
nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based firewall rule not found. Use the iptables CT target to attach helpers instead.
nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based firewall rule not found. Use the iptables CT target to attach helpers instead.
general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
CPU: 0 PID: 3603 Comm: syz-executor192 Not tainted 5.18.0-syzkaller-04953-g6c465408a770 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:tls_sk_proto_close+0xd8/0xaf0 net/tls/tls_main.c:306
Code: 02 00 0f 85 16 09 00 00 48 8b 85 f0 02 00 00 4d 8d 6c 24 14 4c 89 ea 48 c1 ea 03 48 89 44 24 18 48 b8 00 00 00 00 00 fc ff df <0f> b6 04 02 4c 89 ea 83 e2 07 38 d0 7f 08 84 c0 0f 85 4f 07 00 00
RSP: 0018:ffffc90002f1fb70 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000002 RSI: ffffffff87fcf5c3 RDI: ffff888073958ef0
RBP: ffff888073958c00 R08: 0000000000000001 R09: 00000000fffffff0
R10: ffffffff87fcf851 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000014 R14: ffff88801c0d4108 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000005ded70 CR3: 000000007d88e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 tls_sk_proto_close+0x356/0xaf0 net/tls/tls_main.c:329
 inet_release+0x12e/0x280 net/ipv4/af_inet.c:428
 __sock_release+0xcd/0x280 net/socket.c:650
 sock_close+0x18/0x20 net/socket.c:1365
 __fput+0x277/0x9d0 fs/file_table.c:317
 task_work_run+0xdd/0x1a0 kernel/task_work.c:177
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0xaff/0x2a00 kernel/exit.c:795
 do_group_exit+0xd2/0x2f0 kernel/exit.c:925
 __do_sys_exit_group kernel/exit.c:936 [inline]
 __se_sys_exit_group kernel/exit.c:934 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:934
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7f1b6ebba7d9
Code: Unable to access opcode bytes at RIP 0x7f1b6ebba7af.
RSP: 002b:00007ffd7eb4d468 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007f1b6ec2e270 RCX: 00007f1b6ebba7d9
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffffffffffc0 R09: 0000000000000000
R10: 00007f1b6eb7e900 R11: 0000000000000246 R12: 00007f1b6ec2e270
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:tls_sk_proto_close+0xd8/0xaf0 net/tls/tls_main.c:306
Code: 02 00 0f 85 16 09 00 00 48 8b 85 f0 02 00 00 4d 8d 6c 24 14 4c 89 ea 48 c1 ea 03 48 89 44 24 18 48 b8 00 00 00 00 00 fc ff df <0f> b6 04 02 4c 89 ea 83 e2 07 38 d0 7f 08 84 c0 0f 85 4f 07 00 00
RSP: 0018:ffffc90002f1fb70 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000002 RSI: ffffffff87fcf5c3 RDI: ffff888073958ef0
RBP: ffff888073958c00 R08: 0000000000000001 R09: 00000000fffffff0
R10: ffffffff87fcf851 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000014 R14: ffff88801c0d4108 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000005ded70 CR3: 000000007d88e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	02 00                	add    (%rax),%al
   2:	0f 85 16 09 00 00    	jne    0x91e
   8:	48 8b 85 f0 02 00 00 	mov    0x2f0(%rbp),%rax
   f:	4d 8d 6c 24 14       	lea    0x14(%r12),%r13
  14:	4c 89 ea             	mov    %r13,%rdx
  17:	48 c1 ea 03          	shr    $0x3,%rdx
  1b:	48 89 44 24 18       	mov    %rax,0x18(%rsp)
  20:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  27:	fc ff df
* 2a:	0f b6 04 02          	movzbl (%rdx,%rax,1),%eax <-- trapping instruction
  2e:	4c 89 ea             	mov    %r13,%rdx
  31:	83 e2 07             	and    $0x7,%edx
  34:	38 d0                	cmp    %dl,%al
  36:	7f 08                	jg     0x40
  38:	84 c0                	test   %al,%al
  3a:	0f 85 4f 07 00 00    	jne    0x78f

Crashes (276):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/05/26 16:49 net-old 6c465408a770 3037caa9 .config strace log report syz C ci-upstream-net-this-kasan-gce general protection fault in tls_sk_proto_close
2021/12/14 07:38 net-old 884d2b845477 5d14b1ea .config console log report syz C ci-upstream-net-this-kasan-gce general protection fault in tls_sk_proto_close
2021/12/13 03:50 net-old 3748939bce3f 49ca1f59 .config console log report syz C ci-upstream-net-this-kasan-gce general protection fault in tls_sk_proto_close
2021/10/17 21:59 net-old fac3cb82a54a 0c5d9412 .config console log report syz C ci-upstream-net-this-kasan-gce general protection fault in tls_sk_proto_close
2021/09/04 18:42 net-old 57f780f1c433 d236a457 .config console log report syz C ci-upstream-net-this-kasan-gce general protection fault in tls_sk_proto_close
2021/08/10 18:42 net-old 09c7fd521879 6972b106 .config console log report syz C ci-upstream-net-this-kasan-gce general protection fault in tls_sk_proto_close
2021/07/31 14:47 net-old 8d67041228ac 6c236867 .config console log report syz C ci-upstream-net-this-kasan-gce general protection fault in tls_sk_proto_close
2022/05/26 14:25 net-next-old 7e062cda7d90 3037caa9 .config strace log report syz C ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/12/14 06:51 net-next-old a3c62a042237 5d14b1ea .config console log report syz C ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/12/13 03:20 net-next-old 8c8b7aa7fb0c 49ca1f59 .config console log report syz C ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/10/18 06:24 net-next-old 4e6e167bc049 0c5d9412 .config console log report syz C ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/09/04 19:20 net-next-old 29ce8f970107 d236a457 .config console log report syz C ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/08/10 18:13 net-next-old 4ef3960ea19c 6972b106 .config console log report syz C ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2022/05/26 13:57 linux-next b1d84fc09a96 3037caa9 .config strace log report syz C ci-upstream-linux-next-kasan-gce-root general protection fault in tls_sk_proto_close
2021/07/03 22:27 upstream 3dbdb38e2869 55aa55c2 .config console log report syz ci-upstream-kasan-gce general protection fault in tls_sk_proto_close
2021/09/12 17:22 net-old ce062a0adbfe 5ae8508a .config console log report syz ci-upstream-net-this-kasan-gce general protection fault in tls_sk_proto_close
2021/09/05 17:22 net-old 57f780f1c433 d236a457 .config console log report syz ci-upstream-net-this-kasan-gce general protection fault in tls_sk_proto_close
2021/09/03 04:41 net-old 57f780f1c433 15cea0a3 .config console log report syz ci-upstream-net-this-kasan-gce general protection fault in tls_sk_proto_close
2021/08/15 00:52 net-old 5f7735196390 2489ab88 .config console log report syz ci-upstream-net-this-kasan-gce general protection fault in tls_sk_proto_close
2021/07/21 13:31 net-old 09cfae9f13d5 1b201b48 .config console log report syz ci-upstream-net-this-kasan-gce general protection fault in tls_sk_proto_close
2021/09/12 16:46 net-next-old 626bf91a292e 5ae8508a .config console log report syz ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/09/05 16:36 net-next-old 29ce8f970107 d236a457 .config console log report syz ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/09/03 04:18 net-next-old 29ce8f970107 15cea0a3 .config console log report syz ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/08/15 02:17 net-next-old fda4e19d505d 2489ab88 .config console log report syz ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/08/05 00:16 net-next-old c2eecaa193ff b97d64c9 .config console log report syz ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/07/31 14:13 net-next-old 3e12361b6d23 6c236867 .config console log report syz ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/07/21 13:55 net-next-old 3389d3027fec 1b201b48 .config console log report syz ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/05/06 23:37 net-next-old 95aafe911db6 06585184 .config console log report syz ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/05/05 17:06 net-next-old 95aafe911db6 06c27ff5 .config console log report syz ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/05/05 16:24 net-next-old 95aafe911db6 06c27ff5 .config console log report syz ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/05/01 16:22 net-next-old 95aafe911db6 77e2b668 .config console log report syz ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/04/30 05:07 net-next-old 95aafe911db6 77e2b668 .config console log report syz ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/04/26 14:54 net-next-old 95aafe911db6 2a82f1b3 .config console log report syz ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/04/16 10:24 net-next-old c329e5afb42f c59079a6 .config console log report syz ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/04/12 01:48 net-next-old cbd312539284 bfeda1b1 .config console log report syz ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/04/03 03:37 net-next-old f3f409a9b7f5 6a81331a .config console log report syz ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/04/03 03:18 net-next-old f3f409a9b7f5 6a81331a .config console log report syz ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2022/06/18 13:50 upstream 4b35035bcf80 8f633d84 .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in tls_sk_proto_close
2022/06/16 02:39 upstream 979086f5e006 1719ee24 .config console log report info ci-upstream-kasan-gce-root general protection fault in tls_sk_proto_close
2022/06/15 09:58 upstream 018ab4fabddd 127d1faf .config console log report info ci-upstream-kasan-gce-root general protection fault in tls_sk_proto_close
2022/04/24 01:23 upstream 45ab9400e73f 131df97d .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in tls_sk_proto_close
2022/04/12 09:25 upstream ce522ba9ef7e af01ee7d .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in tls_sk_proto_close
2022/04/05 01:57 upstream 312310928417 5915c2cb .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in tls_sk_proto_close
2022/04/02 21:31 upstream 88e6c0207623 79a2a8fc .config console log report info ci-upstream-kasan-gce-root general protection fault in tls_sk_proto_close
2022/02/12 17:41 upstream 83e396641110 8b9ca619 .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in tls_sk_proto_close
2022/02/11 15:59 upstream f1baf68e1383 0b33604d .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in tls_sk_proto_close
2021/12/03 18:49 upstream 5f58da2befa5 c7c20675 .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in tls_sk_proto_close
2021/05/08 22:23 upstream ab159ac569fd bc5434be .config console log report info ci-qemu-upstream general protection fault in tls_sk_proto_close
2022/06/20 22:29 net-old 313c502fa3b3 8d15e28d .config console log report info ci-upstream-net-this-kasan-gce general protection fault in tls_sk_proto_close
2022/03/02 12:01 net-old 0b0e2ff10356 45a13a73 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in tls_sk_proto_close
2021/12/18 05:20 net-old 8ca4090fec02 44068e19 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in tls_sk_proto_close
2021/12/16 16:37 net-old ef8a0f6eab1c 8dd6a5e3 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in tls_sk_proto_close
2021/11/23 22:58 net-old 7b1b62bc1e6a 545ab074 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in tls_sk_proto_close
2021/11/10 10:12 net-old fceb07950a7a 55fa030c .config console log report info ci-upstream-net-this-kasan-gce general protection fault in tls_sk_proto_close
2022/06/15 11:16 net-next-old 6ac6dc746d70 127d1faf .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2022/06/11 00:47 net-next-old 6cbd05b2d07a 0d5abf15 .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2022/06/03 08:17 net-next-old 58f9d52ff689 02dddea8 .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2022/05/30 08:22 net-next-old 7e062cda7d90 a46af346 .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2022/03/02 02:40 net-next-old 1e385c08249e 45a13a73 .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2022/02/28 06:19 net-next-old b42a738e409b 45a13a73 .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2022/02/27 09:56 net-next-old 0cc70c6eecf1 45a13a73 .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2022/01/16 16:45 net-next-old fe8152b38d3a 723cfaf0 .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/12/13 05:29 net-next-old 8c8b7aa7fb0c 49ca1f59 .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/12/12 02:03 net-next-old 77ab714f0070 49ca1f59 .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/12/10 23:57 net-next-old e5d75fc20b92 49ca1f59 .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/12/08 20:41 net-next-old 150791442e7c a4a2a501 .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/12/08 05:21 net-next-old 1c5526968e27 0230ba3e .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/12/08 03:42 net-next-old 1c5526968e27 0230ba3e .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/12/07 21:33 net-next-old 1c5526968e27 0230ba3e .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/12/06 16:21 net-next-old ce83278f313c 579a8754 .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/12/06 10:26 net-next-old ce83278f313c a617004c .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/12/06 00:15 net-next-old ce83278f313c a617004c .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/12/05 07:28 net-next-old ce83278f313c a617004c .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/12/05 00:44 net-next-old ce83278f313c a617004c .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/12/04 18:06 net-next-old ce83278f313c a617004c .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/12/04 13:07 net-next-old bb14bfc7eb92 a617004c .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/12/01 23:30 net-next-old 10184da91666 61f86278 .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/11/28 05:30 net-next-old d40ce48cb3a6 63eeac02 .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/11/27 22:52 net-next-old d40ce48cb3a6 63eeac02 .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/11/16 01:46 net-next-old cb3ef7b00042 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/11/14 05:27 net-next-old 66f4beaa6c1d 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/11/12 15:03 net-next-old 5833291ab6de 75b04091 .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/11/11 23:55 net-next-old cc0356d6a02e 75b04091 .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/11/11 20:28 net-next-old cc0356d6a02e 75b04091 .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/11/11 12:17 net-next-old cc0356d6a02e 75b04091 .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/11/08 18:16 net-next-old cc0356d6a02e d29682f1 .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2021/04/03 01:48 net-next-old f3f409a9b7f5 6a81331a .config console log report info ci-upstream-net-kasan-gce general protection fault in tls_sk_proto_close
2022/05/26 13:32 linux-next b1d84fc09a96 3037caa9 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in tls_sk_proto_close
2022/02/13 05:06 linux-next ef6b35306dd8 8b9ca619 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in tls_sk_proto_close
2021/12/19 01:56 linux-next fbf252e09678 44068e19 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in tls_sk_proto_close
* Struck through repros no longer work on HEAD.