Linux-audit Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] introduce get_task_exe_file and use it to fix audit_exe_compare
@ 2016-08-22 20:51 Mateusz Guzik
  2016-08-22 20:51 ` [PATCH 1/2] mm: introduce get_task_exe_file Mateusz Guzik
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mateusz Guzik @ 2016-08-22 20:51 UTC (permalink / raw)
  To: Konstantin Khlebnikov, Richard Guy Briggs
  Cc: ebiederm, oleg, sgrubb, pmoore, eparis, luto, linux-audit,
	linux-kernel, Al Viro

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.

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        | 24 ++++++++++++++++++++++++
 4 files changed, 31 insertions(+), 9 deletions(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-08-23  8:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-22 20:51 [PATCH 0/2] introduce get_task_exe_file and use it to fix audit_exe_compare Mateusz Guzik
2016-08-22 20:51 ` [PATCH 1/2] mm: introduce get_task_exe_file Mateusz Guzik
2016-08-22 21:49   ` kbuild test robot
2016-08-22 20:51 ` [PATCH 2/2] audit: fix exe_file access in audit_exe_compare Mateusz Guzik
2016-08-23  8:34 ` [PATCH 0/2] introduce get_task_exe_file and use it to fix audit_exe_compare Konstantin Khlebnikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox