On Sun, 26 Jan 2025 at 10:54, Oleg Nesterov <oleg@xxxxxxxxxx> wrote: > > I don't think we even need to detect the /proc/self/ or /proc/self-thread/ > case, next_tid() can just check same_thread_group, That was my thinking yes. If we exclude them from /proc/*/task entirely, I'd worry that it would hide it from some management tool and be used for nefarious purposes (even if they then show up elsewhere that the tool wouldn't look at). But as mentioned, maybe this is all more of a hack than what kvm now does. Linus