]> Git Repo - linux.git/commit - kernel/signal.c
pidfd: Add warning if exit_state is 0 during notification
authorJoel Fernandes (Google) <[email protected]>
Wed, 24 Jul 2019 16:48:16 +0000 (12:48 -0400)
committerChristian Brauner <[email protected]>
Mon, 29 Jul 2019 15:20:19 +0000 (17:20 +0200)
commit1caf7d50f46bd0388e38e653b146aa81700e8eb8
treef98d18c6f5c7a5233bcba6d4e9969cffa4e82f4c
parent3884ae44f41247e0ae41952d4fad46db86d2e0a8
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[email protected]/

Signed-off-by: Joel Fernandes (Google) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Brauner <[email protected]>
kernel/signal.c
This page took 0.051919 seconds and 4 git commands to generate.