syzbot


WARNING in tls_strp_done

Status: upstream: reported C repro on 2022/08/14 10:15
Reported-by: syzbot+abd45eb849b05194b1b6@syzkaller.appspotmail.com
Fix commit: 849f16bbfb68 tls: rx: react to strparser initialization errors
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 54d, last: 45d

Cause bisection: failed (bisect log)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
general protection fault in tls_strp_load_anchor_with_queue 2 50d 46d 0/24 closed as dup on 2022/08/19 01:29
Patch testing requests:
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):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2022/08/14 01:20 upstream 7ebfc85e2cd7 8dfcaa3d .config log report syz C WARNING in tls_strp_done
ci-upstream-kasan-gce-root 2022/08/14 00:55 upstream 7ebfc85e2cd7 8dfcaa3d .config log report syz C WARNING in tls_strp_done
ci-upstream-kasan-gce 2022/08/14 00:35 upstream 7ebfc85e2cd7 8dfcaa3d .config log report syz C WARNING in tls_strp_done
ci-upstream-kasan-gce-386 2022/08/14 02:59 upstream 7ebfc85e2cd7 8dfcaa3d .config log report syz C WARNING in tls_strp_done
ci-upstream-kasan-gce-386 2022/08/14 02:38 upstream 7ebfc85e2cd7 8dfcaa3d .config log report syz C WARNING in tls_strp_done
ci-upstream-net-this-kasan-gce 2022/08/14 01:43 net 777885673122 8dfcaa3d .config log report syz C WARNING in tls_strp_done
ci-upstream-net-this-kasan-gce 2022/08/14 01:22 net 777885673122 8dfcaa3d .config log report syz C WARNING in tls_strp_done
ci-upstream-net-this-kasan-gce 2022/08/10 10:28 net 4c46bb49460e c2a623d6 .config log report syz C WARNING in tls_strp_done
ci-upstream-net-kasan-gce 2022/08/14 01:42 net-next 7ebfc85e2cd7 8dfcaa3d .config log report syz C WARNING in tls_strp_done
ci-upstream-net-kasan-gce 2022/08/14 01:22 net-next 7ebfc85e2cd7 8dfcaa3d .config log report syz C WARNING in tls_strp_done
ci-upstream-kasan-gce 2022/08/15 12:09 upstream 7ebfc85e2cd7 8dfcaa3d .config log report info WARNING in tls_strp_done
ci-upstream-kasan-gce-root 2022/08/15 11:55 upstream 7ebfc85e2cd7 8dfcaa3d .config log report info WARNING in tls_strp_done
ci-upstream-kasan-gce 2022/08/13 14:39 upstream 7ebfc85e2cd7 8dfcaa3d .config log report info WARNING in tls_strp_done
ci-upstream-kasan-gce-386 2022/08/14 05:03 upstream 7ebfc85e2cd7 8dfcaa3d .config log report info WARNING in tls_strp_done
ci-upstream-net-this-kasan-gce 2022/08/12 17:15 net 7ebfc85e2cd7 402cd70d .config log report info WARNING in tls_strp_done
ci-upstream-net-this-kasan-gce 2022/08/12 02:59 net 94ce3b64c62d 787ed7e0 .config log report info WARNING in tls_strp_done
ci-upstream-net-this-kasan-gce 2022/08/10 10:11 net 4c46bb49460e c2a623d6 .config log report info WARNING in tls_strp_done
ci-upstream-net-kasan-gce 2022/08/19 05:31 net-next e34cfee65ec8 26a13b38 .config log report info WARNING in tls_strp_done
ci-upstream-net-kasan-gce 2022/08/15 12:19 net-next 7ebfc85e2cd7 8dfcaa3d .config log report info WARNING in tls_strp_done
ci-upstream-linux-next-kasan-gce-root 2022/08/16 16:32 linux-next 6c8f479764eb 7a7cb304 .config log report info WARNING in tls_strp_done
ci-upstream-linux-next-kasan-gce-root 2022/08/15 11:24 linux-next 6c8f479764eb 8dfcaa3d .config log report info WARNING in tls_strp_done
ci-upstream-linux-next-kasan-gce-root 2022/08/14 10:21 linux-next 6c8f479764eb 8dfcaa3d .config log report info WARNING in tls_strp_done
* Struck through repros no longer work on HEAD.