mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 11:03:37 +00:00
Currently when traversing all tasks, the next tid is always increased by one. This may result in visiting the same task multiple times in a pid namespace. This patch fixed the issue by seting the next tid as pid_nr_ns(pid, ns) + 1, similar to funciton next_tgid(). Signed-off-by: Yonghong Song <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Cc: Rik van Riel <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]