From 4cbead658138d378a236d9e7da86d79693c5986b Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Wed, 10 Apr 2019 20:40:13 +0200 Subject: Added megumin.diff. Can be apllied to the linux kernel to add a Megumin to panic message. --- megumin.diff | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 megumin.diff diff --git a/megumin.diff b/megumin.diff new file mode 100644 index 0000000..1934f37 --- /dev/null +++ b/megumin.diff @@ -0,0 +1,87 @@ +diff --git a/kernel/panic.c b/kernel/panic.c +index 0ae0d7332f12..0a8ad8757ab6 100644 +--- a/kernel/panic.c ++++ b/kernel/panic.c +@@ -8,6 +8,7 @@ + * This function is used through-out the kernel (including mm and fs) + * to indicate a major problem. + */ ++ + #include + #include + #include +@@ -167,6 +168,58 @@ void panic(const char *fmt, ...) + int old_cpu, this_cpu; + bool _crash_kexec_post_notifiers = crash_kexec_post_notifiers; + ++ const char* megumin[] = { ++ " #=&&%%%%%%%%%%%%%%%%%%%%%%%%%%%&$ ", ++ " $&???????????%%%%%%%%%%%%%%%%%%%%%& ", ++ " &%///???????????????????%%%%???????%%$ ", ++ " $%////////////??????????????????????????& ", ++ " $%!!!!!!!!!!!!!////????????????????//////??$ ", ++ " $?