]> git.baikalelectronics.ru Git - kernel.git/commit
signal: Simplify and fix kdb_send_sig
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 17 Aug 2017 20:45:38 +0000 (15:45 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 4 Jan 2018 00:01:08 +0000 (18:01 -0600)
commit5bf7c156530b1d81dfa4c02fc82ee75d5b3181ac
tree4563f1383ab50d592b8c09ec451121d5fccfdd09
parent6ebfdc2edb3a84fa6b52ee806b0bc6b765b33b3e
signal: Simplify and fix kdb_send_sig

- Rename from kdb_send_sig_info to kdb_send_sig
  As there is no meaningful siginfo sent

- Use SEND_SIG_PRIV instead of generating a siginfo for a kdb
  signal.  The generated siginfo had a bogus rationale and was
  not correct in the face of pid namespaces.  SEND_SIG_PRIV
  is simpler and actually correct.

- As the code grabs siglock just send the signal with siglock
  held instead of dropping siglock and attempting to grab it again.

- Move the sig_valid test into kdb_kill where it can generate
  a good error message.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
kernel/debug/kdb/kdb_main.c
kernel/debug/kdb/kdb_private.h
kernel/signal.c