linux/debian/patches-rt/0228-panic-skip-get_random_...

35 lines
908 B
Diff

From a5584c410beb3104139873c7f81a0225da6bc302 Mon Sep 17 00:00:00 2001
From: Thomas Gleixner <tglx@linutronix.de>
Date: Tue, 14 Jul 2015 14:26:34 +0200
Subject: [PATCH 228/266] panic: skip get_random_bytes for RT_FULL in
init_oops_id
Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patches-4.19.31-rt18.tar.xz
Disable on -RT. If this is invoked from irq-context we will have problems
to acquire the sleeping lock.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
kernel/panic.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/panic.c b/kernel/panic.c
index 6a6df23acd1a..8f0a896e8428 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -479,9 +479,11 @@ static u64 oops_id;
static int init_oops_id(void)
{
+#ifndef CONFIG_PREEMPT_RT_FULL
if (!oops_id)
get_random_bytes(&oops_id, sizeof(oops_id));
else
+#endif
oops_id++;
return 0;
--
2.20.1