Skip to content

introduce get_task_exe_file and use it to fix audit_exe_compare

Mateusz Guzik linux-audit lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 6 repliesIn review
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

* removed an unused 'out' label which crept in

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm: introduce get_task_exe_filefs/proc/base.c include/linux/mm.h kernel/fork.c+25 -62 replies
2/2audit: fix exe_file access in audit_exe_comparekernel/audit_watch.c+5 -30 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKonstantin KhlebnikovOleg NesterovRichard Guy Briggs
SeriesA-b
1/2A-b A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCHv2 0/2] introduce get_task_exe_file and use it to fix audit_exe_compare

audit_exe_compare directly accesses mm->exe_file without making sure the object is stable. Fixing it using current primitives results in partially duplicating what proc_exe_link is doing.

As such, introduce a trivial helper which can be used in both places and fix the func.

Changes since v1:
* removed an unused 'out' label which crept in

Mateusz Guzik (2):
mm: introduce get_task_exe_file
audit: fix exe_file access in audit_exe_compare

 fs/proc/base.c       |  7 +------
 include/linux/mm.h   |  1 +
 kernel/audit_watch.c |  8 +++++---
 kernel/fork.c        | 23 +++++++++++++++++++++++
 4 files changed, 30 insertions(+), 9 deletions(-)
Signature · 1 line
1.8.3.1