Bug 434158 - [AUDIT] printk ratelimiting can cause a regression (panic)
Summary: [AUDIT] printk ratelimiting can cause a regression (panic)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel
Version: 5.2
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Eric Paris
QA Contact: Martin Jenner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-02-22 14:50 UTC by Eric Paris
Modified: 2008-05-21 15:10 UTC (History)
2 users (show)

Fixed In Version: RHBA-2008-0314
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-05-21 15:10:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2008:0314 0 normal SHIPPED_LIVE Updated kernel packages for Red Hat Enterprise Linux 5.2 2008-05-20 18:43:34 UTC

Description Eric Paris 2008-02-22 14:50:32 UTC
BZ 428701

Introduced rate limiting into the audit code for its use of printk.  This code
makes it very easy to panic the box assuming the user chose to panic on audit
failure.  The most likely scenario?  Load more than about 12 rules and try to
reboot.  auditd shuts down before the rules are unloaded so the audit system
switches to using printk.  We emit a message for every rule loaded so we emit
more than 10 messages (the printk ratelimit default burst) thus we lose a
message.  If the user selected to panic on lost message the box will panic!

I submitted an RFC upstream:
http://www.mail-archive.com/linux-audit@redhat.com/msg01940.html

and hopefully noone will object....

Comment 2 Steve Grubb 2008-03-03 15:58:41 UTC
Patch was accepted into mainline kernel as: commit
b29ee87e9b441e72454efd1be56aa1a05ffb2f58

Comment 5 Don Zickus 2008-04-02 16:09:27 UTC
in kernel-2.6.18-88.el5
You can download this test kernel from http://people.redhat.com/dzickus/el5

Comment 8 errata-xmlrpc 2008-05-21 15:10:34 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 the 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/RHBA-2008-0314.html



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