]> git.baikalelectronics.ru Git - kernel.git/commit
audit: fix endless wait in audit_log_start()
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Tue, 24 Sep 2013 22:27:42 +0000 (15:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 25 Sep 2013 00:00:26 +0000 (17:00 -0700)
commit57753f85148f871096d8cf8c637eafddd852eae9
treefbf7742d632b870070632cf73f41663ba815576e
parent0cc01b924606132d1bd4e2b49fc2a34026fb2a51
audit: fix endless wait in audit_log_start()

After commit 68a7389830b4 ("kernel/audit.c: avoid negative sleep
durations") audit emitters will block forever if userspace daemon cannot
handle backlog.

After the timeout the waiting loop turns into busy loop and runs until
daemon dies or returns back to work.  This is a minimal patch for that
bug.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Luiz Capitulino <lcapitulino@redhat.com>
Cc: Richard Guy Briggs <rgb@redhat.com>
Cc: Eric Paris <eparis@redhat.com>
Cc: Chuck Anderson <chuck.anderson@oracle.com>
Cc: Dan Duval <dan.duval@oracle.com>
Cc: Dave Kleikamp <dave.kleikamp@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/audit.c