audit.63 kernel.
David Woodhouse
dwmw2 at infradead.org
Mon Jun 20 18:37:10 UTC 2005
On Mon, 2005-06-20 at 13:42 -0400, Rob Myers wrote:
> Jun 20 13:23:12 localhost kernel: kernel BUG at
> include/asm/spinlock.h:109!
Trying to unlock a spinlock which isn't locked. Which is hardly
surprising. Will fix in audit.64 build which is just starting...
@@ -1262,8 +1306,10 @@ void auditfs_attach_wdata(struct inode *
winfo = kmalloc(sizeof(struct audit_watch_info), GFP_KERNEL);
if (!winfo)
goto auditfs_attach_wdata_fail;
- if (mask && (watch->w_perms && !(watch->w_perms&mask)))
+ if (mask && (watch->w_perms && !(watch->w_perms&mask))) {
+ spin_lock(&auditfs_lock);
continue;
+ }
winfo->watch = audit_watch_get(watch);
hlist_add_head(&winfo->node, &ax->watches);
spin_lock(&auditfs_lock);
--
dwmw2
More information about the Linux-audit
mailing list