[PATCHv2 2/2] audit: fix exe_file access in audit_exe_compare

2016-08-23 Thread Mateusz Guzik
Prior to the change the function would blindly deference mm, exe_file and exe_file->f_inode, each of which could have been NULL or freed. Use get_task_exe_file to safely obtain stable exe_file. Signed-off-by: Mateusz Guzik Acked-by: Konstantin Khlebnikov

[PATCHv2 2/2] audit: fix exe_file access in audit_exe_compare

2016-08-23 Thread Mateusz Guzik
Prior to the change the function would blindly deference mm, exe_file and exe_file->f_inode, each of which could have been NULL or freed. Use get_task_exe_file to safely obtain stable exe_file. Signed-off-by: Mateusz Guzik Acked-by: Konstantin Khlebnikov --- kernel/audit_watch.c | 8 +---