syzbot


general protection fault in tls_sk_proto_close (3)
Status: upstream: reported C repro on 2021/05/17 11:28
Reported-by: syzbot+29c3c12f3214b85ad081@syzkaller.appspotmail.com
First crash: 420d, last: 2d06h

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
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) syz error 246 985d 1004d 14/22 fixed on 2019/10/09 10:54
upstream general protection fault in tls_sk_proto_close syz done 260 1005d 1037d 13/22 fixed on 2019/08/27 17:15
linux-4.19 general protection fault in tls_sk_proto_close C error 2 246d 453d 0/1 upstream: reported C repro on 2021/03/01 13:43

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

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-net-this-kasan-gce 2022/05/24 01:43 net 7fb0269720d7 5d14b1ea .config log report syz C
ci-upstream-net-this-kasan-gce 2022/04/01 14:03 net 37391cc843eb 5d14b1ea .config log report syz C
Crashes (260):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-net-this-kasan-gce 2022/05/26 16:49 net 6c465408a770 3037caa9 .config log report syz C general protection fault in tls_sk_proto_close
ci-upstream-net-this-kasan-gce 2021/12/14 07:38 net 884d2b845477 5d14b1ea .config log report syz C general protection fault in tls_sk_proto_close
ci-upstream-net-this-kasan-gce 2021/12/13 03:50 net 3748939bce3f 49ca1f59 .config log report syz C general protection fault in tls_sk_proto_close
ci-upstream-net-this-kasan-gce 2021/10/17 21:59 net fac3cb82a54a 0c5d9412 .config log report syz C general protection fault in tls_sk_proto_close
ci-upstream-net-this-kasan-gce 2021/09/04 18:42 net 57f780f1c433 d236a457 .config log report syz C general protection fault in tls_sk_proto_close
ci-upstream-net-this-kasan-gce 2021/08/10 18:42 net 09c7fd521879 6972b106 .config log report syz C general protection fault in tls_sk_proto_close
ci-upstream-net-this-kasan-gce 2021/07/31 14:47 net 8d67041228ac 6c236867 .config log report syz C general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2022/05/26 14:25 net-next 7e062cda7d90 3037caa9 .config log report syz C general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/12/14 06:51 net-next a3c62a042237 5d14b1ea .config log report syz C general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/12/13 03:20 net-next 8c8b7aa7fb0c 49ca1f59 .config log report syz C general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/10/18 06:24 net-next 4e6e167bc049 0c5d9412 .config log report syz C general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/09/04 19:20 net-next 29ce8f970107 d236a457 .config log report syz C general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/08/10 18:13 net-next 4ef3960ea19c 6972b106 .config log report syz C general protection fault in tls_sk_proto_close
ci-upstream-linux-next-kasan-gce-root 2022/05/26 13:57 linux-next b1d84fc09a96 3037caa9 .config log report syz C general protection fault in tls_sk_proto_close
ci-upstream-kasan-gce 2021/07/03 22:27 upstream 3dbdb38e2869 55aa55c2 .config log report syz general protection fault in tls_sk_proto_close
ci-upstream-net-this-kasan-gce 2021/09/12 17:22 net ce062a0adbfe 5ae8508a .config log report syz general protection fault in tls_sk_proto_close
ci-upstream-net-this-kasan-gce 2021/09/05 17:22 net 57f780f1c433 d236a457 .config log report syz general protection fault in tls_sk_proto_close
ci-upstream-net-this-kasan-gce 2021/09/03 04:41 net 57f780f1c433 15cea0a3 .config log report syz general protection fault in tls_sk_proto_close
ci-upstream-net-this-kasan-gce 2021/08/15 00:52 net 5f7735196390 2489ab88 .config log report syz general protection fault in tls_sk_proto_close
ci-upstream-net-this-kasan-gce 2021/07/21 13:31 net 09cfae9f13d5 1b201b48 .config log report syz general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/09/12 16:46 net-next 626bf91a292e 5ae8508a .config log report syz general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/09/05 16:36 net-next 29ce8f970107 d236a457 .config log report syz general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/09/03 04:18 net-next 29ce8f970107 15cea0a3 .config log report syz general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/08/15 02:17 net-next fda4e19d505d 2489ab88 .config log report syz general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/08/05 00:16 net-next c2eecaa193ff b97d64c9 .config log report syz general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/07/31 14:13 net-next 3e12361b6d23 6c236867 .config log report syz general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/07/21 13:55 net-next 3389d3027fec 1b201b48 .config log report syz general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/05/06 23:37 net-next 95aafe911db6 06585184 .config log report syz general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/05/05 17:06 net-next 95aafe911db6 06c27ff5 .config log report syz general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/05/05 16:24 net-next 95aafe911db6 06c27ff5 .config log report syz general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/05/01 16:22 net-next 95aafe911db6 77e2b668 .config log report syz general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/04/30 05:07 net-next 95aafe911db6 77e2b668 .config log report syz general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/04/26 14:54 net-next 95aafe911db6 2a82f1b3 .config log report syz general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/04/16 10:24 net-next c329e5afb42f c59079a6 .config log report syz general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/04/12 01:48 net-next cbd312539284 bfeda1b1 .config log report syz general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/04/03 03:37 net-next f3f409a9b7f5 6a81331a .config log report syz general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/04/03 03:18 net-next f3f409a9b7f5 6a81331a .config log report syz general protection fault in tls_sk_proto_close
ci-upstream-kasan-gce-smack-root 2022/04/24 01:23 upstream 45ab9400e73f 131df97d .config log report info general protection fault in tls_sk_proto_close
ci-upstream-kasan-gce-selinux-root 2022/04/12 09:25 upstream ce522ba9ef7e af01ee7d .config log report info general protection fault in tls_sk_proto_close
ci-upstream-kasan-gce-smack-root 2022/04/05 01:57 upstream 312310928417 5915c2cb .config log report info general protection fault in tls_sk_proto_close
ci-upstream-kasan-gce-root 2022/04/02 21:31 upstream 88e6c0207623 79a2a8fc .config log report info general protection fault in tls_sk_proto_close
ci-upstream-kasan-gce-selinux-root 2022/02/12 17:41 upstream 83e396641110 8b9ca619 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-kasan-gce-smack-root 2022/02/11 15:59 upstream f1baf68e1383 0b33604d .config log report info general protection fault in tls_sk_proto_close
ci-upstream-kasan-gce-selinux-root 2021/12/03 18:49 upstream 5f58da2befa5 c7c20675 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-kasan-gce-selinux-root 2021/11/05 07:59 upstream d4439a1189f9 4c1be0be .config log report info general protection fault in tls_sk_proto_close
ci-upstream-kasan-gce-selinux-root 2021/10/04 06:46 upstream 9e1ff307c779 db0f5787 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-kasan-gce-smack-root 2021/09/12 11:57 upstream 78e709522d2c 5ae8508a .config log report info general protection fault in tls_sk_proto_close
ci-upstream-kasan-gce-root 2021/08/05 22:11 upstream 902e7f373fff d2d6e680 .config log report info general protection fault in tls_sk_proto_close
ci-qemu-upstream 2021/05/08 22:23 upstream ab159ac569fd bc5434be .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-this-kasan-gce 2022/03/02 12:01 net 0b0e2ff10356 45a13a73 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-this-kasan-gce 2021/12/18 05:20 net 8ca4090fec02 44068e19 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-this-kasan-gce 2021/12/16 16:37 net ef8a0f6eab1c 8dd6a5e3 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-this-kasan-gce 2021/11/23 22:58 net 7b1b62bc1e6a 545ab074 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-this-kasan-gce 2021/11/10 10:12 net fceb07950a7a 55fa030c .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-this-kasan-gce 2021/11/02 06:53 net 6b278c0cb378 098b5d53 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-this-kasan-gce 2021/10/20 02:56 net 04ee2752a5a9 466b7db1 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-this-kasan-gce 2021/09/21 23:41 net 3e95cfa24e24 169724fe .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2022/03/02 02:40 net-next 1e385c08249e 45a13a73 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2022/02/28 06:19 net-next b42a738e409b 45a13a73 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2022/02/27 09:56 net-next 0cc70c6eecf1 45a13a73 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2022/01/16 16:45 net-next fe8152b38d3a 723cfaf0 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/12/13 05:29 net-next 8c8b7aa7fb0c 49ca1f59 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/12/12 02:03 net-next 77ab714f0070 49ca1f59 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/12/10 23:57 net-next e5d75fc20b92 49ca1f59 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/12/08 20:41 net-next 150791442e7c a4a2a501 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/12/08 05:21 net-next 1c5526968e27 0230ba3e .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/12/08 03:42 net-next 1c5526968e27 0230ba3e .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/12/07 21:33 net-next 1c5526968e27 0230ba3e .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/12/06 16:21 net-next ce83278f313c 579a8754 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/12/06 10:26 net-next ce83278f313c a617004c .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/12/06 00:15 net-next ce83278f313c a617004c .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/12/05 07:28 net-next ce83278f313c a617004c .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/12/05 00:44 net-next ce83278f313c a617004c .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/12/04 18:06 net-next ce83278f313c a617004c .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/12/04 13:07 net-next bb14bfc7eb92 a617004c .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/12/01 23:30 net-next 10184da91666 61f86278 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/11/28 05:30 net-next d40ce48cb3a6 63eeac02 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/11/27 22:52 net-next d40ce48cb3a6 63eeac02 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/11/16 01:46 net-next cb3ef7b00042 83f5c9b5 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/11/14 05:27 net-next 66f4beaa6c1d 83f5c9b5 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/11/12 15:03 net-next 5833291ab6de 75b04091 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/11/11 23:55 net-next cc0356d6a02e 75b04091 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/11/11 20:28 net-next cc0356d6a02e 75b04091 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/11/11 12:17 net-next cc0356d6a02e 75b04091 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/11/08 18:16 net-next cc0356d6a02e d29682f1 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/11/08 03:20 net-next cc0356d6a02e 4c1be0be .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/11/08 00:57 net-next cc0356d6a02e 4c1be0be .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/11/04 05:01 net-next cc0356d6a02e 4c1be0be .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/11/01 00:21 net-next ae0393500e3b 098b5d53 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/10/22 22:19 net-next 016c89460d34 282f03fb .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/10/15 18:06 net-next 40088915f547 0c5d9412 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/10/04 21:33 net-next 9ac936276f86 ce697b49 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/10/02 07:21 net-next 20ab39d13e2e db0f5787 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-net-kasan-gce 2021/04/03 01:48 net-next f3f409a9b7f5 6a81331a .config log report info general protection fault in tls_sk_proto_close
ci-upstream-linux-next-kasan-gce-root 2022/05/26 13:32 linux-next b1d84fc09a96 3037caa9 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-linux-next-kasan-gce-root 2022/02/13 05:06 linux-next ef6b35306dd8 8b9ca619 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-linux-next-kasan-gce-root 2021/12/19 01:56 linux-next fbf252e09678 44068e19 .config log report info general protection fault in tls_sk_proto_close
ci-upstream-linux-next-kasan-gce-root 2021/10/31 13:39 linux-next bdcc9f6a5682 098b5d53 .config log report info general protection fault in tls_sk_proto_close