mirror of
https://github.com/dynup/kpatch
synced 2025-03-08 11:47:47 +00:00
Reenable previously failing test gcc-static-local-var-5. Signed-off-by: Julien Thierry <jthierry@redhat.com>
47 lines
1.1 KiB
Diff
47 lines
1.1 KiB
Diff
diff --git a/kernel/audit.c b/kernel/audit.c
|
|
index e7478cb..ed2546a 100644
|
|
--- a/kernel/audit.c
|
|
+++ b/kernel/audit.c
|
|
@@ -325,6 +325,12 @@ void audit_panic(const char *message)
|
|
}
|
|
}
|
|
|
|
+void kpatch_audit_foo(void)
|
|
+{
|
|
+ if (!jiffies)
|
|
+ printk("kpatch audit foo\n");
|
|
+}
|
|
+
|
|
static inline int audit_rate_check(void)
|
|
{
|
|
static unsigned long last_check = 0;
|
|
@@ -335,6 +341,7 @@ static inline int audit_rate_check(void)
|
|
unsigned long elapsed;
|
|
int retval = 0;
|
|
|
|
+ kpatch_audit_foo();
|
|
if (!audit_rate_limit) return 1;
|
|
|
|
spin_lock_irqsave(&lock, flags);
|
|
@@ -354,6 +361,11 @@ static inline int audit_rate_check(void)
|
|
return retval;
|
|
}
|
|
|
|
+noinline void kpatch_audit_check(void)
|
|
+{
|
|
+ audit_rate_check();
|
|
+}
|
|
+
|
|
/**
|
|
* audit_log_lost - conditionally log lost audit message event
|
|
* @message: the message stating reason for lost audit message
|
|
@@ -400,6 +412,8 @@ static int audit_log_config_change(char *function_name, u32 new, u32 old,
|
|
struct audit_buffer *ab;
|
|
int rc = 0;
|
|
|
|
+ kpatch_audit_check();
|
|
+
|
|
ab = audit_log_start(NULL, GFP_KERNEL, AUDIT_CONFIG_CHANGE);
|
|
if (unlikely(!ab))
|
|
return rc;
|