Bug 549750 - audit rule with directory auditing crashes the kernel
Summary: audit rule with directory auditing crashes the kernel
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel
Version: 5.4
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Alexander Viro
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-22 15:06 UTC by Steve Grubb
Modified: 2010-03-30 07:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-30 07:10:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
fix (combination of two mainline commits) (1.58 KB, patch)
2009-12-22 15:53 UTC, Alexander Viro
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2010:0178 0 normal SHIPPED_LIVE Important: Red Hat Enterprise Linux 5.5 kernel security and bug fix update 2010-03-29 12:18:21 UTC

Description Steve Grubb 2009-12-22 15:06:06 UTC
Description of problem:
When a user does auditctl -R audit.rules which unloads and then loads rules that includes something like "-F dir=/var/log/audit" or "-F dir=/lib", the kernel will Oops.

How reproducible:
Always

Comment 1 RHEL Program Management 2009-12-22 15:11:38 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 2 Alexander Viro 2009-12-22 15:51:16 UTC
Reproducer:

(while true; do ls -l /bin; done) >/dev/null &
while true; do auditctl -w /var/log -p a -k ACCESS_LOGS; auditctl -D; done

preferably with slab debugging turned on.

Comment 3 Alexander Viro 2009-12-22 15:53:58 UTC
Created attachment 379850 [details]
fix (combination of two mainline commits)

... and here's the fix

Comment 10 errata-xmlrpc 2010-03-30 07:10:29 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2010-0178.html


Note You need to log in before you can comment on or make changes to this bug.