Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

bpf: Fix comment for helper bpf_current_task_under_cgroup()

Fix the descriptions of the return values of helper bpf_current_task_under_cgroup().

Fixes: c6b5fb8690fa ("bpf: add documentation for eBPF helpers (42-50)")
Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20220310155335.1278783-1-hengqi.chen@gmail.com

authored by

Hengqi Chen and committed by
Daniel Borkmann
58617014 60695896

+4 -4
+2 -2
include/uapi/linux/bpf.h
··· 2302 2302 * Return 2303 2303 * The return value depends on the result of the test, and can be: 2304 2304 * 2305 - * * 0, if current task belongs to the cgroup2. 2306 - * * 1, if current task does not belong to the cgroup2. 2305 + * * 1, if current task belongs to the cgroup2. 2306 + * * 0, if current task does not belong to the cgroup2. 2307 2307 * * A negative error code, if an error occurred. 2308 2308 * 2309 2309 * long bpf_skb_change_tail(struct sk_buff *skb, u32 len, u64 flags)
+2 -2
tools/include/uapi/linux/bpf.h
··· 2302 2302 * Return 2303 2303 * The return value depends on the result of the test, and can be: 2304 2304 * 2305 - * * 0, if current task belongs to the cgroup2. 2306 - * * 1, if current task does not belong to the cgroup2. 2305 + * * 1, if current task belongs to the cgroup2. 2306 + * * 0, if current task does not belong to the cgroup2. 2307 2307 * * A negative error code, if an error occurred. 2308 2308 * 2309 2309 * long bpf_skb_change_tail(struct sk_buff *skb, u32 len, u64 flags)