]> git.baikalelectronics.ru Git - kernel.git/commit
pidfd: Add warning if exit_state is 0 during notification
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Wed, 24 Jul 2019 16:48:16 +0000 (12:48 -0400)
committerChristian Brauner <christian@brauner.io>
Mon, 29 Jul 2019 15:20:19 +0000 (17:20 +0200)
commitdc9d04d538706cb93b75837b60406b662fcfca9b
treef98d18c6f5c7a5233bcba6d4e9969cffa4e82f4c
parent198d3d9e1a29d3d2994294dd7b660bc2f554e410
pidfd: Add warning if exit_state is 0 during notification

Previously a condition got missed where the pidfd waiters are awakened
before the exit_state gets set. This can result in a missed notification
[1] and the polling thread waiting forever.

It is fixed now, however it would be nice to avoid this kind of issue
going unnoticed in the future. So just add a warning to catch it in the
future.

/* References */
[1]: https://lore.kernel.org/lkml/20190717172100.261204-1-joel@joelfernandes.org/

Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Link: https://lore.kernel.org/r/20190724164816.201099-1-joel@joelfernandes.org
Signed-off-by: Christian Brauner <christian@brauner.io>
kernel/signal.c