Re: [GIT][IMA] fix null pointer deref

From: Al Viro
Date: Sun Feb 07 2010 - 02:57:35 EST


On Sun, Feb 07, 2010 at 06:34:51PM +1100, James Morris wrote:
> Linus,
>
> Please pull this bugfix. I've verified that it fixes the null pointer
> deref.

NAK. In that form it's simply wrong; we should never get there with
NULL file->f_dentry->d_inode at all. This is papering over the real
bug; I'll post a saner fix shortly.

The real problem is BS hiding of ima_file_free() inside a hook, with
condition that kinda-sorta happens to avoid bogus call most of the
time.

ima_path_check() side is also of BUG_ON() variety (and isn't triggered).
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/