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

35 lines
909 B
Diff
Raw Normal View History

2020-03-06 11:44:27 +00:00
From faa87d948486f3da759dc841ad7e5d983e94691a Mon Sep 17 00:00:00 2001
From: Thomas Gleixner <tglx@linutronix.de>
Date: Tue, 14 Jul 2015 14:26:34 +0200
2020-03-28 12:59:50 +00:00
Subject: [PATCH 226/326] panic: skip get_random_bytes for RT_FULL in
2019-04-08 23:49:20 +00:00
init_oops_id
2020-03-28 12:59:50 +00:00
Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patches-4.19.106-rt45.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>
---
2019-04-08 23:49:20 +00:00
kernel/panic.c | 2 ++
1 file changed, 2 insertions(+)
2019-04-08 23:49:20 +00:00
diff --git a/kernel/panic.c b/kernel/panic.c
2020-01-03 23:36:11 +00:00
index 8138a676fb7d..fa114be5c30f 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
2019-11-25 00:04:39 +00:00
@@ -480,9 +480,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;
2020-01-03 23:36:11 +00:00
--
2020-02-21 18:07:43 +00:00
2.25.0
2020-01-03 23:36:11 +00:00