diff options
author | Jakub Sitnicki <[email protected]> | 2020-05-31 10:28:39 +0200 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2020-06-01 15:21:03 -0700 |
commit | 0c047ecbb7bab4c1d2136f5f04bb47a66a9a12b8 (patch) | |
tree | 0efdb4ab26c8013322151d42e1eaf31968ce0ed4 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 7f045a49fee04b5662cbdeaf0838f9322ae8c63a (diff) |
bpf, cgroup: Return ENOLINK for auto-detached links on update
Failure to update a bpf_link because it has been auto-detached by a dying
cgroup currently results in EINVAL error, even though the arguments passed
to bpf() syscall are not wrong.
bpf_links attaching to netns in this case will return ENOLINK, which
carries the message that the link is no longer attached to anything.
Change cgroup bpf_links to do the same to keep the uAPI errors consistent.
Fixes: 0c991ebc8c69 ("bpf: Implement bpf_prog replacement for an active bpf_cgroup_link")
Suggested-by: Lorenz Bauer <[email protected]>
Signed-off-by: Jakub Sitnicki <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions