Blame SOURCES/0483-Initialize-grub_file_filters_-all-enabled.patch

f96e0b
From 80528f8d6ff44a0e2cd043cd0ba11e06aac8aea2 Mon Sep 17 00:00:00 2001
f96e0b
From: Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
f96e0b
Date: Wed, 12 Jun 2013 23:25:30 -0500
f96e0b
Subject: [PATCH 483/483] Initialize grub_file_filters_{all,enabled}
f96e0b
f96e0b
Without this we see an error on ppc during startup:
f96e0b
f96e0b
Elapsed time since release of system processors: 220520 mins 17 secs
f96e0b
DEFAULT CATCH!, exception-handler=fff00300
f96e0b
at   %SRR0: 0000000000010d1c   %SRR1: 0000000000003002
f96e0b
Open Firmware exception handler entered from non-OF code
f96e0b
 
f96e0b
Client's Fix Pt Regs:
f96e0b
00 000000000000b3a4 0000000001a3ff00 0000000000000000 000000000021ac50
f96e0b
04 000000000021a810 0000000000001240 00000000002195c0 000000000021ab30
f96e0b
08 000000000002195e 0000000065313237 0000000000000000 0000000001a3ff50
f96e0b
0c 0000000000000124 0000000000000000 0000000000000000 0000000000000000
f96e0b
10 0000000000000000 0000000000000000 0000000000000000 0000000000000000
f96e0b
14 0000000000c00000 0000000000000008 0000000000000000 0000000000000000
f96e0b
18 0000000000000000 0000000000000000 000000000021ab40 000000000020f8be
f96e0b
1c 000000000021aa40 000000000021ac50 0000000000000000 000000000021ac50
f96e0b
f96e0b
Special Regs:
f96e0b
%IV: 00000300     %CR: 40000044    %XER: 00000000  %DSISR: 40000000
f96e0b
%SRR0: 0000000000010d1c   %SRR1: 0000000000003002
f96e0b
%LR: 000000000000b3a4    %CTR: 000000000000b378
f96e0b
%DAR: 000000006531323f
f96e0b
Virtual PID = 0
f96e0b
ofdbg
f96e0b
0 > 
f96e0b
f96e0b
This doesn't appear to be the root cause of the problem; these should be
f96e0b
initalized by calls to grub_file_filter_register() called from various
f96e0b
GRUB_MOD_INIT() functions.  Nevertheless, right now it fixes the symptom.
f96e0b
f96e0b
---
f96e0b
 grub-core/kern/file.c | 4 ++--
f96e0b
 1 file changed, 2 insertions(+), 2 deletions(-)
f96e0b
f96e0b
diff --git a/grub-core/kern/file.c b/grub-core/kern/file.c
f96e0b
index 6426668..f10d958 100644
f96e0b
--- a/grub-core/kern/file.c
f96e0b
+++ b/grub-core/kern/file.c
f96e0b
@@ -28,8 +28,8 @@
f96e0b
 
f96e0b
 void (*EXPORT_VAR (grub_grubnet_fini)) (void);
f96e0b
 
f96e0b
-grub_file_filter_t grub_file_filters_all[GRUB_FILE_FILTER_MAX];
f96e0b
-grub_file_filter_t grub_file_filters_enabled[GRUB_FILE_FILTER_MAX];
f96e0b
+grub_file_filter_t grub_file_filters_all[GRUB_FILE_FILTER_MAX] = {NULL, NULL, NULL, NULL};
f96e0b
+grub_file_filter_t grub_file_filters_enabled[GRUB_FILE_FILTER_MAX] = {NULL, NULL, NULL, NULL};
f96e0b
 
f96e0b
 /* Get the device part of the filename NAME. It is enclosed by parentheses.  */
f96e0b
 char *
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b