<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>
<style data-premailer="ignore" type="text/css">
a { color: #1068bf; }
</style>
<style>img {
max-width: 100%; height: auto;
}
body {
font-size: 0.875rem;
}
body {
-webkit-text-shadow: rgba(255,255,255,0.01) 0 0 1px;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: inherit;
}
</style>
</head>
<body style='font-size: inherit; -webkit-text-shadow: rgba(255,255,255,0.01) 0 0 1px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";'>
<div class="content">
<p style="color: #777777;">
<a href="https://gitlab.com/gjasny" style="color: #1068bf;">Gregor Jasny</a>
<a href="https://gitlab.com/gnutls/gnutls/-/issues/1282#note_991427169" style="color: #1068bf;">commented</a>:
</p>
<div class="md" style="color: #303030; word-wrap: break-word;">
<p dir="auto" style="color: #303030; margin: 0 0 16px;" align="initial">I hit the same bug in Ubuntu 22.04 (<code style='font-size: 90%; color: #1f1f1f; word-wrap: break-word; background-color: #f0f0f0; border-radius: 4px; margin-top: 0; font-weight: inherit; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 2px 4px;'>3.7.3-4ubuntu1</code>) which is supposed to be fixed.</p>
<h1 dir="auto" style="font-size: 1.75em; font-weight: 600; padding-bottom: 0.3em; border-bottom-width: 1px; border-bottom-color: #eaeaea; border-bottom-style: solid; color: #303030; margin: 24px 0 16px;" align="initial">
<a id="user-content-environment" class="anchor" href="#environment" aria-hidden="true" style="color: #1068bf; margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>environment</h1>
<ul dir="auto" style="text-align: initial; list-style-type: disc; margin: 0 0 16px; padding: 0;">
<li style="margin-top: 0; line-height: 1.6em; margin-left: 25px; padding-left: 3px;">Ubuntu 22.04</li>
<li style="line-height: 1.6em; margin-left: 25px; padding-left: 3px;">libgnutls30:amd64 3.7.3-4ubuntu1</li>
</ul>
<h1 dir="auto" style="font-size: 1.75em; font-weight: 600; padding-bottom: 0.3em; border-bottom-width: 1px; border-bottom-color: #eaeaea; border-bottom-style: solid; color: #303030; margin: 24px 0 16px;" align="initial">
<a id="user-content-testcase" class="anchor" href="#testcase" aria-hidden="true" style="color: #1068bf; margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>testcase</h1>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true" style='display: block; font-size: 13px; color: #303030; line-height: 1.6em; overflow-x: auto; border-radius: 2px; position: relative; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; word-break: break-all; word-wrap: break-word; background-color: #fafafa; margin: 0 0 16px; padding: 12px; border: 1px solid #dbdbdb;'><code style='font-size: inherit; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: 4px; white-space: pre; margin-top: 0; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">gnutls-cli github.com:443</span></code></pre>
<copy-code></copy-code>
</div>
<h1 dir="auto" style="font-size: 1.75em; font-weight: 600; padding-bottom: 0.3em; border-bottom-width: 1px; border-bottom-color: #eaeaea; border-bottom-style: solid; color: #303030; margin: 24px 0 16px;" align="initial">
<a id="user-content-dmesg" class="anchor" href="#dmesg" aria-hidden="true" style="color: #1068bf; margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>dmesg</h1>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true" style='display: block; font-size: 13px; color: #303030; line-height: 1.6em; overflow-x: auto; border-radius: 2px; position: relative; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; word-break: break-all; word-wrap: break-word; background-color: #fafafa; margin: 0 0 16px; padding: 12px; border: 1px solid #dbdbdb;'><code style='font-size: inherit; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: 4px; white-space: pre; margin-top: 0; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">[20561.492164] traps: gnutls-cli[13879] trap invalid opcode ip:7f58f0bbc8b1 sp:7fffc5ac0500 error:0 in libgnutls.so.30.31.0[7f58f0a9b000+129000]</span></code></pre>
<copy-code></copy-code>
</div>
<h1 dir="auto" style="font-size: 1.75em; font-weight: 600; padding-bottom: 0.3em; border-bottom-width: 1px; border-bottom-color: #eaeaea; border-bottom-style: solid; color: #303030; margin: 24px 0 16px;" align="initial">
<a id="user-content-backtrace-with-ddebs-installed" class="anchor" href="#backtrace-with-ddebs-installed" aria-hidden="true" style="color: #1068bf; margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>backtrace (with ddebs installed)</h1>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true" style='display: block; font-size: 13px; color: #303030; line-height: 1.6em; overflow-x: auto; border-radius: 2px; position: relative; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; word-break: break-all; word-wrap: break-word; background-color: #fafafa; margin: 0 0 16px; padding: 12px; border: 1px solid #dbdbdb;'><code style='font-size: inherit; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: 4px; white-space: pre; margin-top: 0; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">#0 sha256_block_data_order_avx () at ../../../../lib/accelerated/x86/elf/sha256-ssse3-x86_64.s:3165</span>
<span id="LC2" class="line" lang="plaintext">#1 0x00007ffff7ee9782 in x86_sha256_update (ctx=0x7fffffff77e0, length=64, data=0x7fffffff7720 '\\' <repeats 64 times>, "\300w\377\377\377\177")</span>
<span id="LC3" class="line" lang="plaintext"> at accelerated/x86/../../../../lib/accelerated/x86/sha-x86-ssse3.c:164</span>
<span id="LC4" class="line" lang="plaintext">#2 0x00007ffff776ecc2 in nettle_hmac_set_key () from /lib/x86_64-linux-gnu/libnettle.so.8</span>
<span id="LC5" class="line" lang="plaintext">#3 0x00007ffff7ef1c1b in wrap_x86_hmac_fast (algo=<optimized out>, nonce=<optimized out>, nonce_size=<optimized out>, key=0x7ffff7f3f583, key_size=0, </span>
<span id="LC6" class="line" lang="plaintext"> text=0x7fffffff7b00, text_size=32, digest=0x555555608f18) at accelerated/x86/../../../../lib/accelerated/x86/hmac-x86-ssse3.c:294</span>
<span id="LC7" class="line" lang="plaintext">#4 0x00007ffff7e1d355 in _gnutls_mac_fast (algorithm=<optimized out>, key=<optimized out>, keylen=<optimized out>, text=<optimized out>, textlen=<optimized out>, </span>
<span id="LC8" class="line" lang="plaintext"> digest=<optimized out>) at ../../lib/hash_int.c:167</span>
<span id="LC9" class="line" lang="plaintext">#5 0x00007ffff7e58056 in _tls13_init_secret2 (prf=0x7ffff7fb21d0 <hash_algorithms.lto_priv+112>, psk=<optimized out>, psk_size=32, out=0x555555608f18)</span>
<span id="LC10" class="line" lang="plaintext"> at ../../lib/secrets.c:59</span>
<span id="LC11" class="line" lang="plaintext">#6 0x00007ffff7e10617 in _tls13_init_secret (psk=0x0, psk_size=0, session=0x555555607790) at ../../lib/secrets.c:35</span>
<span id="LC12" class="line" lang="plaintext">#7 read_server_hello (datalen=<optimized out>, </span>
<span id="LC13" class="line" lang="plaintext"> data=0x5555558c6470 "\003\003\325\312`\342\333\361p\270\331gC~߲&\211Q\035\006\262so2=+XR\230c`\367\213 \213\306Ċ\346\064\"!\343\v^\211\254niq\261\374\225\265\252b\033m\351UA\325X\213'{\023\001", session=0x555555607790) at ../../lib/handshake.c:2097</span>
<span id="LC14" class="line" lang="plaintext">#8 _gnutls_recv_handshake (session=0x555555607790, type=<optimized out>, optional=<optimized out>, buf=0x0) at ../../lib/handshake.c:1656</span>
<span id="LC15" class="line" lang="plaintext">#9 0x00007ffff7e18d4a in handshake_client (session=0x555555607790) at ../../lib/handshake.c:3072</span>
<span id="LC16" class="line" lang="plaintext">#10 gnutls_handshake (session=0x555555607790) at ../../lib/handshake.c:2871</span>
<span id="LC17" class="line" lang="plaintext">#11 0x00005555555651e7 in ?? ()</span>
<span id="LC18" class="line" lang="plaintext">#12 0x00005555555658d8 in ?? ()</span>
<span id="LC19" class="line" lang="plaintext">#13 0x000055555555de2c in ?? ()</span>
<span id="LC20" class="line" lang="plaintext">#14 0x00007ffff7addd90 in __libc_start_call_main (main=main@entry=0x55555555d5b0, argc=argc@entry=2, argv=argv@entry=0x7fffffffe458)</span>
<span id="LC21" class="line" lang="plaintext"> at ../sysdeps/nptl/libc_start_call_main.h:58</span>
<span id="LC22" class="line" lang="plaintext">#15 0x00007ffff7adde40 in __libc_start_main_impl (main=0x55555555d5b0, argc=2, argv=0x7fffffffe458, init=<optimized out>, fini=<optimized out>, </span>
<span id="LC23" class="line" lang="plaintext"> rtld_fini=<optimized out>, stack_end=0x7fffffffe448) at ../csu/libc-start.c:392</span>
<span id="LC24" class="line" lang="plaintext">#16 0x000055555555ff85 in ?? ()</span></code></pre>
<copy-code></copy-code>
</div>
<h1 dir="auto" style="font-size: 1.75em; font-weight: 600; padding-bottom: 0.3em; border-bottom-width: 1px; border-bottom-color: #eaeaea; border-bottom-style: solid; color: #303030; margin: 24px 0 16px;" align="initial">
<a id="user-content-disassembly" class="anchor" href="#disassembly" aria-hidden="true" style="color: #1068bf; margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>disassembly</h1>
<div class="gl-relative markdown-code-block js-markdown-code" style="margin-bottom: 0;">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true" style='display: block; font-size: 13px; color: #303030; line-height: 1.6em; overflow-x: auto; border-radius: 2px; position: relative; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; word-break: break-all; word-wrap: break-word; background-color: #fafafa; margin: 0 0 16px; padding: 12px; border: 1px solid #dbdbdb;'><code style='font-size: inherit; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: 4px; white-space: pre; margin-top: 0; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">Dump of assembler code for function sha256_block_data_order_avx:</span>
<span id="LC2" class="line" lang="plaintext"> 0x00007ffff7f1c880 <+0>: mov %rsp,%rax</span>
<span id="LC3" class="line" lang="plaintext"> 0x00007ffff7f1c883 <+3>: push %rbx</span>
<span id="LC4" class="line" lang="plaintext"> 0x00007ffff7f1c884 <+4>: push %rbp</span>
<span id="LC5" class="line" lang="plaintext"> 0x00007ffff7f1c885 <+5>: push %r12</span>
<span id="LC6" class="line" lang="plaintext"> 0x00007ffff7f1c887 <+7>: push %r13</span>
<span id="LC7" class="line" lang="plaintext"> 0x00007ffff7f1c889 <+9>: push %r14</span>
<span id="LC8" class="line" lang="plaintext"> 0x00007ffff7f1c88b <+11>: push %r15</span>
<span id="LC9" class="line" lang="plaintext"> 0x00007ffff7f1c88d <+13>: shl $0x4,%rdx</span>
<span id="LC10" class="line" lang="plaintext"> 0x00007ffff7f1c891 <+17>: sub $0x60,%rsp</span>
<span id="LC11" class="line" lang="plaintext"> 0x00007ffff7f1c895 <+21>: lea (%rsi,%rdx,4),%rdx</span>
<span id="LC12" class="line" lang="plaintext"> 0x00007ffff7f1c899 <+25>: and $0xffffffffffffffc0,%rsp</span>
<span id="LC13" class="line" lang="plaintext"> 0x00007ffff7f1c89d <+29>: mov %rdi,0x40(%rsp)</span>
<span id="LC14" class="line" lang="plaintext"> 0x00007ffff7f1c8a2 <+34>: mov %rsi,0x48(%rsp)</span>
<span id="LC15" class="line" lang="plaintext"> 0x00007ffff7f1c8a7 <+39>: mov %rdx,0x50(%rsp)</span>
<span id="LC16" class="line" lang="plaintext"> 0x00007ffff7f1c8ac <+44>: mov %rax,0x58(%rsp)</span>
<span id="LC17" class="line" lang="plaintext">=> 0x00007ffff7f1c8b1 <+49>: vzeroupper </span>
<span id="LC18" class="line" lang="plaintext"> 0x00007ffff7f1c8b4 <+52>: mov (%rdi),%eax</span>
<span id="LC19" class="line" lang="plaintext"> 0x00007ffff7f1c8b6 <+54>: mov 0x4(%rdi),%ebx</span>
<span id="LC20" class="line" lang="plaintext"> 0x00007ffff7f1c8b9 <+57>: mov 0x8(%rdi),%ecx</span></code></pre>
<copy-code></copy-code>
</div>
</div>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #666;">
—
<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1282#note_991427169" style="color: #1068bf;">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/-/sent_notifications/10e9d2e2cbdc0f5b72c3b6f00ef2434c/unsubscribe" style="color: #1068bf;">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/-/issues/1282#note_991427169"}}</script>
</p>
</div>
</body>
</html>