public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Should EXIT_DEAD be visible to userspace ?
@ 2021-10-11 19:40 Dave Jones
  2021-10-11 20:33 ` Linus Torvalds
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Jones @ 2021-10-11 19:40 UTC (permalink / raw)
  To: Linux Kernel; +Cc: Linus Torvalds, Christian Brauner, Oleg Nesterov

One of our users reported a crash in some userspace tooling this
morning, which scrapes /proc/pid to gather stack traces, process states
etc of everything running at the time.

The crash occurred because it fell over an unexpected task state,
which was 'X'.   According to the procps man-pages, this state should
never be seen, but here it clearly was.

The kernel running at the time was kinda old (5.2) but I don't see much
change in the EXIT_DEAD space that would explain something that got
fixed subsequently.   It's also probably going to be difficult to
reproduce unfortunately.

So my question is, is procps wrong and code should expect to see X state
processes in proc ?  The code in question is being hardened to handle
unexpected inputs, but I'm curious if the kernel is leaking some state
that it shouldn't.

	Dave


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-12 10:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-11 19:40 Should EXIT_DEAD be visible to userspace ? Dave Jones
2021-10-11 20:33 ` Linus Torvalds
2021-10-12 10:43   ` Christian Brauner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox