[PATCH v3] fork: check exit_signal passed in clone3() call
From: Eugene Syromiatnikov
Date: Wed Sep 11 2019 - 13:46:03 EST
As was agreed, clone3 should fail if the provided exit_signal
value fails valid_signal() check, hence the new version.
Changees since v2:
- Rewrite the check to check exit_signal against valid_signal().
Changes since v1:
- Check changed to comparison against negated CSIGNAL to address
the bug reported by Oleg.
- Added a comment to _do_fork that exit_signal has to be checked
by the caller.
Eugene Syromiatnikov (1):
fork: check exit_signal passed in clone3() call
kernel/fork.c | 11 +++++++++++
1 file changed, 11 insertions(+)