]> git.lttng.org Git - lttng-ust.git/commit
Fix: Update `get_mempolicy` check to handle `EPERM` master
authorKienan Stewart <kstewart@efficios.com>
Fri, 22 Nov 2024 14:38:09 +0000 (09:38 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 25 Nov 2024 16:17:55 +0000 (11:17 -0500)
commita6a42d4fcf48abb9f6ea6331cb6208e279366a28
tree5b50bac190b6692fd3c04af2fd52a4c7c57d6a10
parent270321d89d7e218e90ba5ebcda2bceb3ffe3a2f7
Fix: Update `get_mempolicy` check to handle `EPERM`

See libnuma commit 0ab9c7a0d857bea1724139c48e2e58ed6a81647f:

    commit 0ab9c7a0d857bea1724139c48e2e58ed6a81647f
    Author: filimonov <1549571+filimonov@users.noreply.github.com>
    Date:   Mon Oct 21 18:45:02 2024 +0200

        Make numa_available respect EPERM

        Make numa_available respect EPERM

        In the Docker environment, usage of `get_mempolicy` is restricted by seccomp security profiles:
        https://docs.docker.com/engine/security/seccomp/ (unless `CAP_SYS_NICE` is set).

        But `numa_available` used to ignore EPERM and return 'true', i.e., available. This led to further code attempting other API calls, which resulted in "operation not permitted" errors printed to stderr.

        See details in:
        https://github.com/ClickHouse/ClickHouse/issues/68747#issuecomment-2426210768

Change-Id: I5169f54ac7622754e33e7c67ee1d813876de44b9
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/common/counter/shm.c
src/common/ringbuffer/shm.c
This page took 0.028836 seconds and 4 git commands to generate.