Skip to content

audit: refactors and fixes for potential deadlocks

Eiichi Tsukata audit lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 13 repliesIn review
  2. v14 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- wait_for_kauditd(): returns 0 if @audit_queue is not full
- Add another fix for deadlock caused by missing wake_up

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5audit: refactor queue full checkskernel/audit.c+11 -102 replies
2/5audit: account backlog waiting time in audit_receive()kernel/audit.c+26 -183 replies
3/5audit: convert DECLARE_WAITQUEUE to DEFINE_WAITkernel/audit.c+4 -41 reply
4/5audit: check if audit_queue is full after prepare_to_wait_exclusive()kernel/audit.c+10 -23 replies
5/5audit: do not use exclusive wait in audit_receive()kernel/audit.c+11 -64 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/5] audit: refactors and fixes for potential deadlocks

This patchset consists of the following refactors and fixes for potential deadlocks.

Patch1-3: Refactorings and a small fix preferable for following deadlock fixes
Patch4: Fix for deadlock caused by wait/wake_up race in @audit_queue full
Patch5: Fix for deadlock caused by missing wake_up

v1->v2:
- wait_for_kauditd(): returns 0 if @audit_queue is not full
- Add another fix for deadlock caused by missing wake_up

Eiichi Tsukata (5):
audit: refactor queue full checks
audit: account backlog waiting time in audit_receive()
audit: convert DECLARE_WAITQUEUE to DEFINE_WAIT
audit: check if audit_queue is full after prepare_to_wait_exclusive()
audit: do not use exclusive wait in audit_receive()

 kernel/audit.c | 78 ++++++++++++++++++++++++++++++++------------------
 1 file changed, 50 insertions(+), 28 deletions(-)
Signature · 1 line
2.40.0