[PATCH] vfs: don't let do_last pass negative dentry to audit_inode

2012-07-25 Thread Jeff Layton
I can reliably reproduce the following panic by simply setting an audit rule on a recent 3.5.0+ kernel: BUG: unable to handle kernel NULL pointer dereference at 0040 IP: [] audit_copy_inode+0x10/0x90 PGD 7acd9067 PUD 7b8fb067 PMD 0 Oops: [#86] SMP Modules linked in: nfs

[PATCH] vfs: don't let do_last pass negative dentry to audit_inode

2012-07-25 Thread Jeff Layton
I can reliably reproduce the following panic by simply setting an audit rule on a recent 3.5.0+ kernel: BUG: unable to handle kernel NULL pointer dereference at 0040 IP: [810d1250] audit_copy_inode+0x10/0x90 PGD 7acd9067 PUD 7b8fb067 PMD 0 Oops: [#86] SMP Modules