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

2020-09-16 Thread KP Singh
Somehow this patch does not seem to have been picked up by any of the mailing list archives and I am not sure if this was delivered to the lists. I will send a v2 and add Florent's Reviewed-by tag. On Wed, Sep 16, 2020 at 2:41 PM Florent Revest wrote: > > Reviewed-by: Florent Revest > > On Wed,

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

2020-09-16 Thread Florent Revest
Reviewed-by: Florent Revest On Wed, 2020-09-16 at 12:05 +, 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. > > An example where this can happen (suggested by Jann Horn): > >

[PATCH] 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. An example where this can happen (suggested by Jann Horn): Process A does: while(1) { unlink("/tmp/imafoo"); fd =