diff options
| author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-05-20 13:09:20 +0200 |
|---|---|---|
| committer | Sander Vrijders <sander@ouroboros.rocks> | 2026-05-22 08:13:33 +0200 |
| commit | ac994f2456681bada8371d6cb379467313acddfa (patch) | |
| tree | 0324b4ddcb94580658b9e3287cd8f2483a7df404 /src/ipcpd/unicast/psched.c | |
| parent | 1566d9b6e273510b376adaa1ce920152a089132f (diff) | |
| download | ouroboros-ac994f2456681bada8371d6cb379467313acddfa.tar.gz ouroboros-ac994f2456681bada8371d6cb379467313acddfa.zip | |
lib: Fix underrun in activity timer
The inactivity timers are updated under rdlock with atomics on the
time stamp. Inactivity is measured by comparison between the act stamp
against the thread's own current time (now_ns). A different thread
could already have updated the act stamp, causing undderun in the
signed comparison and causing a false-positive on the inactive test.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd/unicast/psched.c')
0 files changed, 0 insertions, 0 deletions
