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

2020-09-16 Thread Mimi Zohar
On Wed, 2020-09-16 at 14:49 +0200, 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): > > Process A does: > >

[PATCH v2] 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 =

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

2020-09-16 Thread KP Singh
On Wed, Sep 16, 2020 at 6:00 PM Mimi Zohar wrote: > > On Wed, 2020-09-16 at 14:49 +0200, 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