]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/d3n: fix valgrind invalid read during exit 63436/head
authorMark Kogan <mkogan@ibm.com>
Mon, 19 May 2025 14:52:42 +0000 (14:52 +0000)
committerMark Kogan <mkogan@ibm.com>
Thu, 22 May 2025 16:51:23 +0000 (16:51 +0000)
commitbc69d4122bc4311f75bcd72e102714e0b66b58b9
tree4ffbfb7b8a27b089f1453d4cff7b5b512ed42e97
parent6d3146bc3709ba82b67b8b47e5eb80bd5045cac3
rgw/d3n: fix valgrind invalid read during exit

The valgrind indication is a false positive in this case, is seems there is a race of memory read and free of the libaio and aio kernel threads which had not timer-d out yet during exit()

reducing the aio_idle_time timeout to mitigate

```
man aio_init
...
aio_idle_time
This field specifies the amount of time in seconds that a worker thread
should wait for further requests before terminating, after having
completed a previous request.   The
default value is 1.
...
```

Fixes: https://tracker.ceph.com/issues/64835
Signed-off-by: Mark Kogan <mkogan@ibm.com>
(cherry picked from commit 31fae3a9013f05c94ad4233dd51240e2f2b3c040)
src/rgw/driver/rados/rgw_d3n_datacache.cc