Re: [PATCH v3] ima: Fix NULL pointer dereference in ima_file_hash

2020-09-16 Thread Mimi Zohar
On Wed, 2020-09-16 at 18:02 +, KP Singh wrote: > From: KP Singh > > ima_file_hash can be called when there is no iint->ima_hash available > even though the inode exists in the integrity cache. It is fairly > common for a file to not have a hash. (e.g. an mknodat, prior to the > file being

[PATCH v3] ima: Fix NULL pointer dereference in ima_file_hash

2020-09-16 Thread KP Singh
From: KP Singh ima_file_hash can be called when there is no iint->ima_hash available even though the inode exists in the integrity cache. It is fairly common for a file to not have a hash. (e.g. an mknodat, prior to the file being closed). Another example where this can happen (suggested by