<!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>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<p class="details" style="font-style: italic; color: #666;">
<a href="https://gitlab.com/jpalus">Jan Palus</a> created an issue: <a href="https://gitlab.com/gnutls/gnutls/-/issues/1314">#1314</a>
</p>
<div></div>
<h2 dir="auto">
<a id="user-content-description-of-problem" class="anchor" href="#description-of-problem" aria-hidden="true"></a>Description of problem:</h2>
<p dir="auto"><code>task sync</code> reports <code>Malformed message</code> after upgrade of gnutls with <code>ktls</code> support. Works fine after unloading <code>tls</code> module. The other side is <code>taskd</code> with gnutls 3.7.2. Debug output suggests EAGAIN might not be handled somewhere?</p>
<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="border-radius: 2px; margin: 0 0 8px; padding: 8px 12px; border: 1px solid #dbdbdb;"><code><span id="LC1" class="line" lang="plaintext">$ task sync</span>
<span id="LC2" class="line" lang="plaintext">gnutls[2]: Enabled GnuTLS 3.7.3 logging...</span>
<span id="LC3" class="line" lang="plaintext">gnutls[2]: getrandom random generator was selected</span>
<span id="LC4" class="line" lang="plaintext">gnutls[2]: Aarch64 SHA1 was detected</span>
<span id="LC5" class="line" lang="plaintext">gnutls[2]: Aarch64 SHA2 was detected</span>
<span id="LC6" class="line" lang="plaintext">gnutls[2]: Aarch64 AES was detected</span>
<span id="LC7" class="line" lang="plaintext">gnutls[2]: Aarch64 PMULL was detected</span>
<span id="LC8" class="line" lang="plaintext">gnutls[2]: cfg: unable to access: /etc/gnutls/config: 2</span>
<span id="LC9" class="line" lang="plaintext">c: INFO Server certificate will be verified.</span>
<span id="LC10" class="line" lang="plaintext">c: 2 added 6 protocols, 29 ciphersuites, 19 sig algos and 10 groups into priority list</span>
<span id="LC11" class="line" lang="plaintext">c: 2 Keeping ciphersuite 13.02 (GNUTLS_AES_256_GCM_SHA384)</span>
<span id="LC12" class="line" lang="plaintext">c: 2 Keeping ciphersuite 13.03 (GNUTLS_CHACHA20_POLY1305_SHA256)</span>
<span id="LC13" class="line" lang="plaintext">c: 2 Keeping ciphersuite 13.01 (GNUTLS_AES_128_GCM_SHA256)</span>
<span id="LC14" class="line" lang="plaintext">c: 2 Keeping ciphersuite 13.04 (GNUTLS_AES_128_CCM_SHA256)</span>
<span id="LC15" class="line" lang="plaintext">c: 2 Keeping ciphersuite c0.2c (GNUTLS_ECDHE_ECDSA_AES_256_GCM_SHA384)</span>
<span id="LC16" class="line" lang="plaintext">c: 2 Keeping ciphersuite cc.a9 (GNUTLS_ECDHE_ECDSA_CHACHA20_POLY1305)</span>
<span id="LC17" class="line" lang="plaintext">c: 2 Keeping ciphersuite c0.ad (GNUTLS_ECDHE_ECDSA_AES_256_CCM)</span>
<span id="LC18" class="line" lang="plaintext">c: 2 Keeping ciphersuite c0.0a (GNUTLS_ECDHE_ECDSA_AES_256_CBC_SHA1)</span>
<span id="LC19" class="line" lang="plaintext">c: 2 Keeping ciphersuite c0.2b (GNUTLS_ECDHE_ECDSA_AES_128_GCM_SHA256)</span>
<span id="LC20" class="line" lang="plaintext">c: 2 Keeping ciphersuite c0.ac (GNUTLS_ECDHE_ECDSA_AES_128_CCM)</span>
<span id="LC21" class="line" lang="plaintext">c: 2 Keeping ciphersuite c0.09 (GNUTLS_ECDHE_ECDSA_AES_128_CBC_SHA1)</span>
<span id="LC22" class="line" lang="plaintext">c: 2 Keeping ciphersuite c0.30 (GNUTLS_ECDHE_RSA_AES_256_GCM_SHA384)</span>
<span id="LC23" class="line" lang="plaintext">c: 2 Keeping ciphersuite cc.a8 (GNUTLS_ECDHE_RSA_CHACHA20_POLY1305)</span>
<span id="LC24" class="line" lang="plaintext">c: 2 Keeping ciphersuite c0.14 (GNUTLS_ECDHE_RSA_AES_256_CBC_SHA1)</span>
<span id="LC25" class="line" lang="plaintext">c: 2 Keeping ciphersuite c0.2f (GNUTLS_ECDHE_RSA_AES_128_GCM_SHA256)</span>
<span id="LC26" class="line" lang="plaintext">c: 2 Keeping ciphersuite c0.13 (GNUTLS_ECDHE_RSA_AES_128_CBC_SHA1)</span>
<span id="LC27" class="line" lang="plaintext">c: 2 Keeping ciphersuite 00.9d (GNUTLS_RSA_AES_256_GCM_SHA384)</span>
<span id="LC28" class="line" lang="plaintext">c: 2 Keeping ciphersuite c0.9d (GNUTLS_RSA_AES_256_CCM)</span>
<span id="LC29" class="line" lang="plaintext">c: 2 Keeping ciphersuite 00.35 (GNUTLS_RSA_AES_256_CBC_SHA1)</span>
<span id="LC30" class="line" lang="plaintext">c: 2 Keeping ciphersuite 00.9c (GNUTLS_RSA_AES_128_GCM_SHA256)</span>
<span id="LC31" class="line" lang="plaintext">c: 2 Keeping ciphersuite c0.9c (GNUTLS_RSA_AES_128_CCM)</span>
<span id="LC32" class="line" lang="plaintext">c: 2 Keeping ciphersuite 00.2f (GNUTLS_RSA_AES_128_CBC_SHA1)</span>
<span id="LC33" class="line" lang="plaintext">c: 2 Keeping ciphersuite 00.9f (GNUTLS_DHE_RSA_AES_256_GCM_SHA384)</span>
<span id="LC34" class="line" lang="plaintext">c: 2 Keeping ciphersuite cc.aa (GNUTLS_DHE_RSA_CHACHA20_POLY1305)</span>
<span id="LC35" class="line" lang="plaintext">c: 2 Keeping ciphersuite c0.9f (GNUTLS_DHE_RSA_AES_256_CCM)</span>
<span id="LC36" class="line" lang="plaintext">c: 2 Keeping ciphersuite 00.39 (GNUTLS_DHE_RSA_AES_256_CBC_SHA1)</span>
<span id="LC37" class="line" lang="plaintext">c: 2 Keeping ciphersuite 00.9e (GNUTLS_DHE_RSA_AES_128_GCM_SHA256)</span>
<span id="LC38" class="line" lang="plaintext">c: 2 Keeping ciphersuite c0.9e (GNUTLS_DHE_RSA_AES_128_CCM)</span>
<span id="LC39" class="line" lang="plaintext">c: 2 Keeping ciphersuite 00.33 (GNUTLS_DHE_RSA_AES_128_CBC_SHA1)</span>
<span id="LC40" class="line" lang="plaintext">c: 2 Advertizing version 3.4</span>
<span id="LC41" class="line" lang="plaintext">c: 2 Advertizing version 3.3</span>
<span id="LC42" class="line" lang="plaintext">c: 2 Advertizing version 3.2</span>
<span id="LC43" class="line" lang="plaintext">c: 2 Advertizing version 3.1</span>
<span id="LC44" class="line" lang="plaintext">c: 2 HSK[0x10463750]: sent server name: 'xxxxxxxxxxxx'</span>
<span id="LC45" class="line" lang="plaintext">c: 2 EXT[0x10463750]: client generated SECP256R1 shared key</span>
<span id="LC46" class="line" lang="plaintext">c: INFO Handshake was completed: (TLS1.3)-(ECDHE-SECP256R1)-(RSA-PSS-RSAE-SHA256)-(AES-256-GCM)</span>
<span id="LC47" class="line" lang="plaintext">c: INFO Sending 'XXXXclient: task 2.6.1</span>
<span id="LC48" class="line" lang="plaintext">key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</span>
<span id="LC49" class="line" lang="plaintext">org: xxx</span>
<span id="LC50" class="line" lang="plaintext">protocol: v1</span>
<span id="LC51" class="line" lang="plaintext">type: sync</span>
<span id="LC52" class="line" lang="plaintext">user: xxxxxxxxx</span>
<span id="LC53" class="line" lang="plaintext"></span>
<span id="LC54" class="line" lang="plaintext">xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</span>
<span id="LC55" class="line" lang="plaintext"></span>
<span id="LC56" class="line" lang="plaintext"></span>
<span id="LC57" class="line" lang="plaintext">' (4294967268 bytes)</span>
<span id="LC58" class="line" lang="plaintext">c: INFO expecting 0 bytes.</span>
<span id="LC59" class="line" lang="plaintext">c: WARNING Resource temporarily unavailable, try again.</span>
<span id="LC60" class="line" lang="plaintext">c: INFO Receiving 'XXXX' (-56 bytes)</span>
<span id="LC61" class="line" lang="plaintext">Syncing with xxxxxxxxxxxx:xxxxx</span>
<span id="LC62" class="line" lang="plaintext"></span>
<span id="LC63" class="line" lang="plaintext">Malformed message</span>
<span id="LC64" class="line" lang="plaintext">Sync failed.  Could not connect to the Taskserver.</span></code></pre>
<copy-code></copy-code>
</div>
<h2 dir="auto">
<a id="user-content-version-of-gnutls-used" class="anchor" href="#version-of-gnutls-used" aria-hidden="true"></a>Version of gnutls used:</h2>
<p dir="auto">3.7.3</p>
<h2 dir="auto">
<a id="user-content-distributor-of-gnutls-eg-ubuntu-fedora-rhel" class="anchor" href="#distributor-of-gnutls-eg-ubuntu-fedora-rhel" aria-hidden="true"></a>Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)</h2>
<p dir="auto">PLD</p>

</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/1314">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/9cb096bd8cf242f752300578ed3fd373/unsubscribe">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/1314"}}</script>


</p>
</div>
</body>
</html>