<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ouroboros, branch 0.21.3</title>
<subtitle>Ouroboros main repository</subtitle>
<id>https://ouroboros.rocks/cgit/ouroboros/atom?h=0.21.3</id>
<link rel='self' href='https://ouroboros.rocks/cgit/ouroboros/atom?h=0.21.3'/>
<link rel='alternate' type='text/html' href='https://ouroboros.rocks/cgit/ouroboros/'/>
<updated>2024-03-01T07:32:16+00:00</updated>
<entry>
<title>irmd: Fix parsing arguments in configfile</title>
<updated>2024-03-01T07:32:16+00:00</updated>
<author>
<name>Dimitri Staessens</name>
<email>dimitri@ouroboros.rocks</email>
</author>
<published>2024-02-26T15:32:35+00:00</published>
<link rel='alternate' type='text/html' href='https://ouroboros.rocks/cgit/ouroboros/commit/?id=afa421a0396a18c7b40d50e8774ba1d8335754d3'/>
<id>urn:sha1:afa421a0396a18c7b40d50e8774ba1d8335754d3</id>
<content type='text'>
The argc counter was improperly reset before building the arguments
list.

Signed-off-by: Dimitri Staessens &lt;dimitri@ouroboros.rocks&gt;
Signed-off-by: Sander Vrijders &lt;sander@ouroboros.rocks&gt;
</content>
</entry>
<entry>
<title>lib: Rename CACEP to CEP and set conngmr timeout</title>
<updated>2024-02-26T08:00:09+00:00</updated>
<author>
<name>Dimitri Staessens</name>
<email>dimitri@ouroboros.rocks</email>
</author>
<published>2024-02-25T11:00:11+00:00</published>
<link rel='alternate' type='text/html' href='https://ouroboros.rocks/cgit/ouroboros/commit/?id=bb617311f4fc4ece5bf963d3f445e73e09a9cdaa'/>
<id>urn:sha1:bb617311f4fc4ece5bf963d3f445e73e09a9cdaa</id>
<content type='text'>
The Common Application Connection Establishment Protocol (CACEP) is a
RINA construct associated with the Common Distributed Application
Protocol (CDAP). We dropped CDAP as O7s sees connection establishment
as common to all applications (though it can be a nop). The wiki
already refers to this as (O7s) Connection Establishment Protocol
(CEP).

The connection manager will now timeout waiting for CEP messages to
avoid hanging forever, configurable at build time via
CONNMGR_RCV_TIMEOUT.

Signed-off-by: Dimitri Staessens &lt;dimitri@ouroboros.rocks&gt;
Signed-off-by: Sander Vrijders &lt;sander@ouroboros.rocks&gt;
</content>
</entry>
<entry>
<title>irmd: Fix handling destroy during wait timeouts</title>
<updated>2024-02-26T07:59:15+00:00</updated>
<author>
<name>Dimitri Staessens</name>
<email>dimitri@ouroboros.rocks</email>
</author>
<published>2024-02-24T16:14:12+00:00</published>
<link rel='alternate' type='text/html' href='https://ouroboros.rocks/cgit/ouroboros/commit/?id=7c523eb8167116176eb43d2f9380e0179a6275b0'/>
<id>urn:sha1:7c523eb8167116176eb43d2f9380e0179a6275b0</id>
<content type='text'>
The object must be refreshed from the list to see if it wasn't yet
destroyed if the wait times out.

Signed-off-by: Dimitri Staessens &lt;dimitri@ouroboros.rocks&gt;
Signed-off-by: Sander Vrijders &lt;sander@ouroboros.rocks&gt;
</content>
</entry>
<entry>
<title>irmd: Fix wrong hash length when getting ipcpd</title>
<updated>2024-02-26T07:59:15+00:00</updated>
<author>
<name>Dimitri Staessens</name>
<email>dimitri@ouroboros.rocks</email>
</author>
<published>2024-02-24T16:13:06+00:00</published>
<link rel='alternate' type='text/html' href='https://ouroboros.rocks/cgit/ouroboros/commit/?id=12c3298335c48fcdd1551c1474f9afe07e9a067f'/>
<id>urn:sha1:12c3298335c48fcdd1551c1474f9afe07e9a067f</id>
<content type='text'>
The get_ipcpd_by_dst function was returning the hash length of the
last IPCP in the list instead of the length of the actual hash.

Signed-off-by: Dimitri Staessens &lt;dimitri@ouroboros.rocks&gt;
Signed-off-by: Sander Vrijders &lt;sander@ouroboros.rocks&gt;
</content>
</entry>
<entry>
<title>irmd: Fix memleak on cancel</title>
<updated>2024-02-26T07:59:15+00:00</updated>
<author>
<name>Dimitri Staessens</name>
<email>dimitri@ouroboros.rocks</email>
</author>
<published>2024-02-24T11:52:20+00:00</published>
<link rel='alternate' type='text/html' href='https://ouroboros.rocks/cgit/ouroboros/commit/?id=82aec24db65fd3bf06f60a8952c1b0b3dfd05ec4'/>
<id>urn:sha1:82aec24db65fd3bf06f60a8952c1b0b3dfd05ec4</id>
<content type='text'>
If the mainloop is cancelled during a write, the response buffer
leaks.

The IRMd now warns about failed writes only when the error is not
EPIPE, as EPIPE is expected to happen with timed out requests.

Signed-off-by: Dimitri Staessens &lt;dimitri@ouroboros.rocks&gt;
Signed-off-by: Sander Vrijders &lt;sander@ouroboros.rocks&gt;
</content>
</entry>
<entry>
<title>ipcpd: Mitigate race in wait_req_arr and wait_resp</title>
<updated>2024-02-26T07:59:15+00:00</updated>
<author>
<name>Dimitri Staessens</name>
<email>dimitri@ouroboros.rocks</email>
</author>
<published>2024-02-24T11:35:22+00:00</published>
<link rel='alternate' type='text/html' href='https://ouroboros.rocks/cgit/ouroboros/commit/?id=b5888ad746fd03d483196a2cb3711bb0fe63d82d'/>
<id>urn:sha1:b5888ad746fd03d483196a2cb3711bb0fe63d82d</id>
<content type='text'>
The wait_flow_req_arr and wait_flow_resp functions are there to ensure
the responses of the IRMd to flow allocation requests arrive in the
correct order. These functions use a mutex: alloc_lock.

After these functions return, the IPCP will switch to it's own
(usually read-write) lock. In the local IPCP, this leaves room for a
race where the state of the flow is accessed in alloc_resp before it
is updated in wait_flow_req_arr. This race is only visible in the
local IPCP, as the other IPCP have to send information between these
calls, but it is theoretically possible when using any IPCP for local
IPC. In the ipcpd-local, it happens ~0.01% to ~0.03% of flow allocations.

This mitigates the problem in the ipcpd-local by adding a 1ms wait to
the flow allocation if this race is detected.

Signed-off-by: Dimitri Staessens &lt;dimitri@ouroboros.rocks&gt;
Signed-off-by: Sander Vrijders &lt;sander@ouroboros.rocks&gt;
</content>
</entry>
<entry>
<title>irmd: Fix flow deallocation timeout</title>
<updated>2024-02-26T07:59:15+00:00</updated>
<author>
<name>Dimitri Staessens</name>
<email>dimitri@ouroboros.rocks</email>
</author>
<published>2024-02-23T18:38:17+00:00</published>
<link rel='alternate' type='text/html' href='https://ouroboros.rocks/cgit/ouroboros/commit/?id=dc56c2211424567d9a249f3630505d92f026428e'/>
<id>urn:sha1:dc56c2211424567d9a249f3630505d92f026428e</id>
<content type='text'>
The timeout was set to a value calculated as abstime for a cond_wait
instead of a timeout, causing flows to linger in the IPCP.

Signed-off-by: Dimitri Staessens &lt;dimitri@ouroboros.rocks&gt;
Signed-off-by: Sander Vrijders &lt;sander@ouroboros.rocks&gt;
</content>
</entry>
<entry>
<title>irmd: Always use reg_destroy_proc</title>
<updated>2024-02-23T15:41:38+00:00</updated>
<author>
<name>Dimitri Staessens</name>
<email>dimitri@ouroboros.rocks</email>
</author>
<published>2024-02-23T12:27:38+00:00</published>
<link rel='alternate' type='text/html' href='https://ouroboros.rocks/cgit/ouroboros/commit/?id=b65e5c1d45c8bfc38b3745cb28ac9074b1c1bdc1'/>
<id>urn:sha1:b65e5c1d45c8bfc38b3745cb28ac9074b1c1bdc1</id>
<content type='text'>
Destroying a process will now always be done with reg_destroy_proc,
regardless of whether it was an IPCP or spawned. This makes it easier
to keep the registry consistent and avoid races.

Also improves some logs and updates some default settings.

Signed-off-by: Dimitri Staessens &lt;dimitri@ouroboros.rocks&gt;
Signed-off-by: Sander Vrijders &lt;sander@ouroboros.rocks&gt;
</content>
</entry>
<entry>
<title>ipcpd: Add build option to use pid as address</title>
<updated>2024-02-23T15:41:38+00:00</updated>
<author>
<name>Dimitri Staessens</name>
<email>dimitri@ouroboros.rocks</email>
</author>
<published>2024-02-23T09:40:30+00:00</published>
<link rel='alternate' type='text/html' href='https://ouroboros.rocks/cgit/ouroboros/commit/?id=b7baa89fbaa04ceb3227d4d43089d8e6a5326b65'/>
<id>urn:sha1:b7baa89fbaa04ceb3227d4d43089d8e6a5326b65</id>
<content type='text'>
This adds a build option IPCP_DEBUG_LOCAL that will use the pid as the
DT name (address) in the unicast IPCP, which is handy for integration
testing and debugging.

Signed-off-by: Dimitri Staessens &lt;dimitri@ouroboros.rocks&gt;
Signed-off-by: Sander Vrijders &lt;sander@ouroboros.rocks&gt;
</content>
</entry>
<entry>
<title>ipcpd: Clean up connection when cancelling connect</title>
<updated>2024-02-23T15:41:37+00:00</updated>
<author>
<name>Dimitri Staessens</name>
<email>dimitri@ouroboros.rocks</email>
</author>
<published>2024-02-23T09:38:06+00:00</published>
<link rel='alternate' type='text/html' href='https://ouroboros.rocks/cgit/ouroboros/commit/?id=f796e85856382b6beba5c108d74ecf9baf8bb773'/>
<id>urn:sha1:f796e85856382b6beba5c108d74ecf9baf8bb773</id>
<content type='text'>
The connection element was not free'd on shutdown during a connect
operation.

Signed-off-by: Dimitri Staessens &lt;dimitri@ouroboros.rocks&gt;
Signed-off-by: Sander Vrijders &lt;sander@ouroboros.rocks&gt;
</content>
</entry>
</feed>
