syzbot


WARNING in tls_strp_done

Status: fixed on 2023/02/24 13:50
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+abd45eb849b05194b1b6@syzkaller.appspotmail.com
Fix commit: 849f16bbfb68 tls: rx: react to strparser initialization errors
First crash: 793d, last: 784d
Cause bisection: failed (error log, bisect log)
  
Duplicate bugs (1)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
general protection fault in tls_strp_load_anchor_with_queue net 2 790d 785d 0/28 closed as dup on 2022/08/19 01:29
Discussions (2)
Title Replies (including bot) Last reply
[PATCH net] tls: rx: react to strparser initialization errors 2 (2) 2022/08/17 09:30
[syzbot] WARNING in tls_strp_done 0 (1) 2022/08/14 10:15
Last patch testing requests (1)
Created Duration User Patch Repo Result
2022/08/14 12:45 18m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 7ebfc85e2cd7 OK log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3611 at kernel/workqueue.c:3066 __flush_work+0x926/0xb10 kernel/workqueue.c:3066
Modules linked in:
CPU: 0 PID: 3611 Comm: syz-executor165 Not tainted 5.19.0-syzkaller-13930-g7ebfc85e2cd7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
RIP: 0010:__flush_work+0x926/0xb10 kernel/workqueue.c:3066
Code: 00 48 c7 c6 0b 12 4f 81 48 c7 c7 40 92 f8 8b e8 30 61 10 00 e9 66 fc ff ff e8 d6 f4 2c 00 0f 0b e9 5a fc ff ff e8 ca f4 2c 00 <0f> 0b 45 31 f6 e9 4b fc ff ff e8 0b 4c 79 00 e9 3a fb ff ff e8 b1
RSP: 0018:ffffc900038bf948 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888020f0a8f0 RCX: 0000000000000000
RDX: ffff88801bd50000 RSI: ffffffff814f1246 RDI: 0000000000000001
RBP: ffffc900038bfae0 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: dffffc0000000000
R13: 1ffff92000717f5f R14: 0000000000000001 R15: ffff888020f0a908
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555559cb5d0 CR3: 000000000bc8e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __cancel_work_timer+0x3f9/0x570 kernel/workqueue.c:3162
 tls_strp_done+0x66/0x230 net/tls/tls_strp.c:478
 tls_sk_proto_close+0x40d/0xaf0 net/tls/tls_main.c:328
 inet_release+0x12e/0x270 net/ipv4/af_inet.c:428
 inet6_release+0x4c/0x70 net/ipv6/af_inet6.c:482
 __sock_release+0xcd/0x280 net/socket.c:650
 sock_close+0x18/0x20 net/socket.c:1365
 __fput+0x277/0x9d0 fs/file_table.c:320
 task_work_run+0xdd/0x1a0 kernel/task_work.c:177
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0xad5/0x29b0 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+0x63/0xcd
RIP: 0033:0x7f0b52a2fdf9
Code: Unable to access opcode bytes at RIP 0x7f0b52a2fdcf.
RSP: 002b:00007fffd86d4c68 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007f0b52aa43f0 RCX: 00007f0b52a2fdf9
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffffffffffc0 R09: 0000000000000001
R10: 00000000200004c0 R11: 0000000000000246 R12: 00007f0b52aa43f0
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
 </TASK>

Crashes (22):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/14 01:20 upstream 7ebfc85e2cd7 8dfcaa3d .config strace log report syz C ci-upstream-kasan-gce WARNING in tls_strp_done
2022/08/14 00:55 upstream 7ebfc85e2cd7 8dfcaa3d .config strace log report syz C ci-upstream-kasan-gce-root WARNING in tls_strp_done
2022/08/14 00:35 upstream 7ebfc85e2cd7 8dfcaa3d .config strace log report syz C ci-upstream-kasan-gce WARNING in tls_strp_done
2022/08/14 02:59 upstream 7ebfc85e2cd7 8dfcaa3d .config console log report syz C ci-upstream-kasan-gce-386 WARNING in tls_strp_done
2022/08/14 02:38 upstream 7ebfc85e2cd7 8dfcaa3d .config console log report syz C ci-upstream-kasan-gce-386 WARNING in tls_strp_done
2022/08/14 01:43 net-old 777885673122 8dfcaa3d .config strace log report syz C ci-upstream-net-this-kasan-gce WARNING in tls_strp_done
2022/08/14 01:22 net-old 777885673122 8dfcaa3d .config strace log report syz C ci-upstream-net-this-kasan-gce WARNING in tls_strp_done
2022/08/10 10:28 net-old 4c46bb49460e c2a623d6 .config strace log report syz C ci-upstream-net-this-kasan-gce WARNING in tls_strp_done
2022/08/14 01:42 net-next-old 7ebfc85e2cd7 8dfcaa3d .config strace log report syz C ci-upstream-net-kasan-gce WARNING in tls_strp_done
2022/08/14 01:22 net-next-old 7ebfc85e2cd7 8dfcaa3d .config strace log report syz C ci-upstream-net-kasan-gce WARNING in tls_strp_done
2022/08/15 12:09 upstream 7ebfc85e2cd7 8dfcaa3d .config console log report info ci-upstream-kasan-gce WARNING in tls_strp_done
2022/08/15 11:55 upstream 7ebfc85e2cd7 8dfcaa3d .config console log report info ci-upstream-kasan-gce-root WARNING in tls_strp_done
2022/08/13 14:39 upstream 7ebfc85e2cd7 8dfcaa3d .config console log report info ci-upstream-kasan-gce WARNING in tls_strp_done
2022/08/14 05:03 upstream 7ebfc85e2cd7 8dfcaa3d .config console log report info ci-upstream-kasan-gce-386 WARNING in tls_strp_done
2022/08/12 17:15 net-old 7ebfc85e2cd7 402cd70d .config console log report info ci-upstream-net-this-kasan-gce WARNING in tls_strp_done
2022/08/12 02:59 net-old 94ce3b64c62d 787ed7e0 .config console log report info ci-upstream-net-this-kasan-gce WARNING in tls_strp_done
2022/08/10 10:11 net-old 4c46bb49460e c2a623d6 .config console log report info ci-upstream-net-this-kasan-gce WARNING in tls_strp_done
2022/08/19 05:31 net-next-old e34cfee65ec8 26a13b38 .config console log report info ci-upstream-net-kasan-gce WARNING in tls_strp_done
2022/08/15 12:19 net-next-old 7ebfc85e2cd7 8dfcaa3d .config console log report info ci-upstream-net-kasan-gce WARNING in tls_strp_done
2022/08/16 16:32 linux-next 6c8f479764eb 7a7cb304 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in tls_strp_done
2022/08/15 11:24 linux-next 6c8f479764eb 8dfcaa3d .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in tls_strp_done
2022/08/14 10:21 linux-next 6c8f479764eb 8dfcaa3d .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in tls_strp_done
* Struck through repros no longer work on HEAD.