Bug 549750

Summary: audit rule with directory auditing crashes the kernel
Product: Red Hat Enterprise Linux 5 Reporter: Steve Grubb <sgrubb>
Component: kernelAssignee: Alexander Viro <aviro>
Status: CLOSED ERRATA QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: high Docs Contact:
Priority: high    
Version: 5.4   
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-30 07:10:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
fix (combination of two mainline commits) none

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