<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/net/tls.c, branch linux-5.7.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.7.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.7.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2019-12-15T03:53:53Z</updated>
<entry>
<title>selftests: net: tls: remove recv_rcvbuf test</title>
<updated>2019-12-15T03:53:53Z</updated>
<author>
<name>Thadeu Lima de Souza Cascardo</name>
</author>
<published>2019-12-13T10:39:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6dd504b0fd1039c6e5d391e97cf5c4ee592aefcb'/>
<id>urn:sha1:6dd504b0fd1039c6e5d391e97cf5c4ee592aefcb</id>
<content type='text'>
This test only works when [1] is applied, which was rejected.

Basically, the errors are reported and cleared. In this particular case of
tls sockets, following reads will block.

The test case was originally submitted with the rejected patch, but, then,
was included as part of a different patchset, possibly by mistake.

[1] https://lore.kernel.org/netdev/20191007035323.4360-2-jakub.kicinski@netronome.com/#t

Thanks Paolo Pisati for pointing out the original patchset where this
appeared.

Fixes: 65190f77424d (selftests/tls: add a test for fragmented messages)
Reported-by: Paolo Pisati &lt;paolo.pisati@canonical.com&gt;
Signed-off-by: Thadeu Lima de Souza Cascardo &lt;cascardo@canonical.com&gt;
Signed-off-by: Jakub Kicinski &lt;jakub.kicinski@netronome.com&gt;
</content>
</entry>
<entry>
<title>net/tls: Fix return values to avoid ENOTSUPP</title>
<updated>2019-12-07T04:15:39Z</updated>
<author>
<name>Valentin Vidic</name>
</author>
<published>2019-12-05T06:41:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4a5cdc604b9cf645e6fa24d8d9f055955c3c8516'/>
<id>urn:sha1:4a5cdc604b9cf645e6fa24d8d9f055955c3c8516</id>
<content type='text'>
ENOTSUPP is not available in userspace, for example:

  setsockopt failed, 524, Unknown error 524

Signed-off-by: Valentin Vidic &lt;vvidic@valentin-vidic.from.hr&gt;
Acked-by: Jakub Kicinski &lt;jakub.kicinski@netronome.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests/tls: add a test for fragmented messages</title>
<updated>2019-11-29T06:40:29Z</updated>
<author>
<name>Jakub Kicinski</name>
</author>
<published>2019-11-27T20:16:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=65190f77424d7b82c4aad7326c9cce6bd91a2fcc'/>
<id>urn:sha1:65190f77424d7b82c4aad7326c9cce6bd91a2fcc</id>
<content type='text'>
Add a sendmsg test with very fragmented messages. This should
fill up sk_msg and test the boundary conditions.

Signed-off-by: Jakub Kicinski &lt;jakub.kicinski@netronome.com&gt;
Reviewed-by: Simon Horman &lt;simon.horman@netronome.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests/tls: add test for concurrent recv and send</title>
<updated>2019-11-07T01:33:32Z</updated>
<author>
<name>Jakub Kicinski</name>
</author>
<published>2019-11-05T22:24:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=41098af59d8d753aa8d3bb4310cc4ecb61fc82c7'/>
<id>urn:sha1:41098af59d8d753aa8d3bb4310cc4ecb61fc82c7</id>
<content type='text'>
Add a test which spawns 16 threads and performs concurrent
send and recv calls on the same socket.

Signed-off-by: Jakub Kicinski &lt;jakub.kicinski@netronome.com&gt;
Reviewed-by: Simon Horman &lt;simon.horman@netronome.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests/tls: add a litmus test for the socket reuse through shutdown</title>
<updated>2019-08-05T20:15:30Z</updated>
<author>
<name>Jakub Kicinski</name>
</author>
<published>2019-08-01T21:36:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cd114d2e81f632104b3f1e804104060b97337410'/>
<id>urn:sha1:cd114d2e81f632104b3f1e804104060b97337410</id>
<content type='text'>
Make sure that shutdown never works, and at the same time document how
I tested to came to the conclusion that currently reuse is not possible.

Signed-off-by: Jakub Kicinski &lt;jakub.kicinski@netronome.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests/tls: fix TLS tests with CONFIG_TLS=n</title>
<updated>2019-07-31T22:53:36Z</updated>
<author>
<name>Jakub Kicinski</name>
</author>
<published>2019-07-29T23:08:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e29903c49990376e5e928b20f658cdf7c29bf1eb'/>
<id>urn:sha1:e29903c49990376e5e928b20f658cdf7c29bf1eb</id>
<content type='text'>
Build bot reports some recent TLS tests are failing
with CONFIG_TLS=n. Correct the expected return code
and skip TLS installation if not supported.

Tested with CONFIG_TLS=n and CONFIG_TLS=m.

Reported-by: kernel test robot &lt;rong.a.chen@intel.com&gt;
Fixes: cf32526c8842 ("selftests/tls: add a test for ULP but no keys")
Fixes: 65d41fb317c6 ("selftests/tls: add a bidirectional test")
Signed-off-by: Jakub Kicinski &lt;jakub.kicinski@netronome.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests/tls: add shutdown tests</title>
<updated>2019-07-22T14:04:17Z</updated>
<author>
<name>Jakub Kicinski</name>
</author>
<published>2019-07-19T17:29:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d4d34185e710750ad748a0f0a73e8cdac7480bfc'/>
<id>urn:sha1:d4d34185e710750ad748a0f0a73e8cdac7480bfc</id>
<content type='text'>
Add test for killing the connection via shutdown.

Signed-off-by: Jakub Kicinski &lt;jakub.kicinski@netronome.com&gt;
Reviewed-by: Dirk van der Merwe &lt;dirk.vandermerwe@netronome.com&gt;
Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
</content>
</entry>
<entry>
<title>selftests/tls: close the socket with open record</title>
<updated>2019-07-22T14:04:17Z</updated>
<author>
<name>Jakub Kicinski</name>
</author>
<published>2019-07-19T17:29:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8051bb7f2cbf68ec1289753616703791dd004b5c'/>
<id>urn:sha1:8051bb7f2cbf68ec1289753616703791dd004b5c</id>
<content type='text'>
Add test which sends some data with MSG_MORE and then
closes the socket (never calling send without MSG_MORE).
This should make sure we clean up open records correctly.

Signed-off-by: Jakub Kicinski &lt;jakub.kicinski@netronome.com&gt;
Reviewed-by: Dirk van der Merwe &lt;dirk.vandermerwe@netronome.com&gt;
Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
</content>
</entry>
<entry>
<title>selftests/tls: add a bidirectional test</title>
<updated>2019-07-22T14:04:17Z</updated>
<author>
<name>Jakub Kicinski</name>
</author>
<published>2019-07-19T17:29:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=65d41fb317c62b7c8663a134e88eaee439f270d6'/>
<id>urn:sha1:65d41fb317c62b7c8663a134e88eaee439f270d6</id>
<content type='text'>
Add a simple test which installs the TLS state for both directions,
sends and receives data on both sockets.

Signed-off-by: Jakub Kicinski &lt;jakub.kicinski@netronome.com&gt;
Reviewed-by: Dirk van der Merwe &lt;dirk.vandermerwe@netronome.com&gt;
Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
</content>
</entry>
<entry>
<title>selftests/tls: test error codes around TLS ULP installation</title>
<updated>2019-07-22T14:04:17Z</updated>
<author>
<name>Jakub Kicinski</name>
</author>
<published>2019-07-19T17:29:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=78b5dc3d68dcb1d18d805e8f4e565f19ed6d976a'/>
<id>urn:sha1:78b5dc3d68dcb1d18d805e8f4e565f19ed6d976a</id>
<content type='text'>
Test the error codes returned when TCP connection is not
in ESTABLISHED state.

Signed-off-by: Jakub Kicinski &lt;jakub.kicinski@netronome.com&gt;
Reviewed-by: Dirk van der Merwe &lt;dirk.vandermerwe@netronome.com&gt;
Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
</content>
</entry>
</feed>
