11da177e4SLinus Torvalds /* 21da177e4SLinus Torvalds * linux/kernel/panic.c 31da177e4SLinus Torvalds * 41da177e4SLinus Torvalds * Copyright (C) 1991, 1992 Linus Torvalds 51da177e4SLinus Torvalds */ 61da177e4SLinus Torvalds 71da177e4SLinus Torvalds /* 81da177e4SLinus Torvalds * This function is used through-out the kernel (including mm and fs) 91da177e4SLinus Torvalds * to indicate a major problem. 101da177e4SLinus Torvalds */ 11657b3010SAndrew Morton #include <linux/debug_locks.h> 12c95dbf27SIngo Molnar #include <linux/interrupt.h> 1379b4cc5eSArjan van de Ven #include <linux/kallsyms.h> 14c95dbf27SIngo Molnar #include <linux/notifier.h> 15c95dbf27SIngo Molnar #include <linux/module.h> 16c95dbf27SIngo Molnar #include <linux/random.h> 17c95dbf27SIngo Molnar #include <linux/reboot.h> 18c95dbf27SIngo Molnar #include <linux/delay.h> 19c95dbf27SIngo Molnar #include <linux/kexec.h> 20c95dbf27SIngo Molnar #include <linux/sched.h> 21c95dbf27SIngo Molnar #include <linux/sysrq.h> 22c95dbf27SIngo Molnar #include <linux/init.h> 23c95dbf27SIngo Molnar #include <linux/nmi.h> 24bd89bb29SArjan van de Ven #include <linux/dmi.h> 251da177e4SLinus Torvalds 261da177e4SLinus Torvalds int panic_on_oops; 2725ddbb18SAndi Kleen static unsigned long tainted_mask; 28dd287796SAndrew Morton static int pause_on_oops; 29dd287796SAndrew Morton static int pause_on_oops_flag; 30dd287796SAndrew Morton static DEFINE_SPINLOCK(pause_on_oops_lock); 311da177e4SLinus Torvalds 32dd287796SAndrew Morton int panic_timeout; 331da177e4SLinus Torvalds 34e041c683SAlan Stern ATOMIC_NOTIFIER_HEAD(panic_notifier_list); 351da177e4SLinus Torvalds 361da177e4SLinus Torvalds EXPORT_SYMBOL(panic_notifier_list); 371da177e4SLinus Torvalds 381da177e4SLinus Torvalds static long no_blink(long time) 391da177e4SLinus Torvalds { 401da177e4SLinus Torvalds return 0; 411da177e4SLinus Torvalds } 421da177e4SLinus Torvalds 431da177e4SLinus Torvalds /* Returns how long it waited in ms */ 441da177e4SLinus Torvalds long (*panic_blink)(long time); 451da177e4SLinus Torvalds EXPORT_SYMBOL(panic_blink); 461da177e4SLinus Torvalds 471da177e4SLinus Torvalds /** 481da177e4SLinus Torvalds * panic - halt the system 491da177e4SLinus Torvalds * @fmt: The text string to print 501da177e4SLinus Torvalds * 511da177e4SLinus Torvalds * Display a message, then perform cleanups. 521da177e4SLinus Torvalds * 531da177e4SLinus Torvalds * This function never returns. 541da177e4SLinus Torvalds */ 551da177e4SLinus Torvalds NORET_TYPE void panic(const char * fmt, ...) 561da177e4SLinus Torvalds { 571da177e4SLinus Torvalds static char buf[1024]; 581da177e4SLinus Torvalds va_list args; 59c95dbf27SIngo Molnar long i; 601da177e4SLinus Torvalds 61dc009d92SEric W. Biederman /* 62c95dbf27SIngo Molnar * It's possible to come here directly from a panic-assertion and 63c95dbf27SIngo Molnar * not have preempt disabled. Some functions called from here want 64dc009d92SEric W. Biederman * preempt to be disabled. No point enabling it later though... 65dc009d92SEric W. Biederman */ 66dc009d92SEric W. Biederman preempt_disable(); 67dc009d92SEric W. Biederman 681da177e4SLinus Torvalds bust_spinlocks(1); 691da177e4SLinus Torvalds va_start(args, fmt); 701da177e4SLinus Torvalds vsnprintf(buf, sizeof(buf), fmt, args); 711da177e4SLinus Torvalds va_end(args); 721da177e4SLinus Torvalds printk(KERN_EMERG "Kernel panic - not syncing: %s\n",buf); 735cb27301SIngo Molnar #ifdef CONFIG_DEBUG_BUGVERBOSE 745cb27301SIngo Molnar dump_stack(); 755cb27301SIngo Molnar #endif 761da177e4SLinus Torvalds 77dc009d92SEric W. Biederman /* 78dc009d92SEric W. Biederman * If we have crashed and we have a crash kernel loaded let it handle 79dc009d92SEric W. Biederman * everything else. 80dc009d92SEric W. Biederman * Do we want to call this before we try to display a message? 81dc009d92SEric W. Biederman */ 826e274d14SAlexander Nyberg crash_kexec(NULL); 83dc009d92SEric W. Biederman 84dc009d92SEric W. Biederman /* 85dc009d92SEric W. Biederman * Note smp_send_stop is the usual smp shutdown function, which 86dc009d92SEric W. Biederman * unfortunately means it may not be hardened to work in a panic 87dc009d92SEric W. Biederman * situation. 88dc009d92SEric W. Biederman */ 891da177e4SLinus Torvalds smp_send_stop(); 901da177e4SLinus Torvalds 91e041c683SAlan Stern atomic_notifier_call_chain(&panic_notifier_list, 0, buf); 921da177e4SLinus Torvalds 93*d014e889SAaro Koskinen bust_spinlocks(0); 94*d014e889SAaro Koskinen 951da177e4SLinus Torvalds if (!panic_blink) 961da177e4SLinus Torvalds panic_blink = no_blink; 971da177e4SLinus Torvalds 98dc009d92SEric W. Biederman if (panic_timeout > 0) { 991da177e4SLinus Torvalds /* 1001da177e4SLinus Torvalds * Delay timeout seconds before rebooting the machine. 101c95dbf27SIngo Molnar * We can't use the "normal" timers since we just panicked. 1021da177e4SLinus Torvalds */ 1031da177e4SLinus Torvalds printk(KERN_EMERG "Rebooting in %d seconds..", panic_timeout); 104c95dbf27SIngo Molnar 1051da177e4SLinus Torvalds for (i = 0; i < panic_timeout*1000; ) { 1061da177e4SLinus Torvalds touch_nmi_watchdog(); 1071da177e4SLinus Torvalds i += panic_blink(i); 1081da177e4SLinus Torvalds mdelay(1); 1091da177e4SLinus Torvalds i++; 1101da177e4SLinus Torvalds } 111c95dbf27SIngo Molnar /* 112c95dbf27SIngo Molnar * This will not be a clean reboot, with everything 1132f048ea8SEric W. Biederman * shutting down. But if there is a chance of 1142f048ea8SEric W. Biederman * rebooting the system it will be rebooted. 1151da177e4SLinus Torvalds */ 1162f048ea8SEric W. Biederman emergency_restart(); 1171da177e4SLinus Torvalds } 1181da177e4SLinus Torvalds #ifdef __sparc__ 1191da177e4SLinus Torvalds { 1201da177e4SLinus Torvalds extern int stop_a_enabled; 121a271c241STom 'spot' Callaway /* Make sure the user can actually press Stop-A (L1-A) */ 1221da177e4SLinus Torvalds stop_a_enabled = 1; 123a271c241STom 'spot' Callaway printk(KERN_EMERG "Press Stop-A (L1-A) to return to the boot prom\n"); 1241da177e4SLinus Torvalds } 1251da177e4SLinus Torvalds #endif 126347a8dc3SMartin Schwidefsky #if defined(CONFIG_S390) 127c95dbf27SIngo Molnar { 128c95dbf27SIngo Molnar unsigned long caller; 129c95dbf27SIngo Molnar 130c95dbf27SIngo Molnar caller = (unsigned long)__builtin_return_address(0); 1311da177e4SLinus Torvalds disabled_wait(caller); 132c95dbf27SIngo Molnar } 1331da177e4SLinus Torvalds #endif 1341da177e4SLinus Torvalds local_irq_enable(); 1351da177e4SLinus Torvalds for (i = 0; ; ) { 136c22db941SJan Beulich touch_softlockup_watchdog(); 1371da177e4SLinus Torvalds i += panic_blink(i); 1381da177e4SLinus Torvalds mdelay(1); 1391da177e4SLinus Torvalds i++; 1401da177e4SLinus Torvalds } 1411da177e4SLinus Torvalds } 1421da177e4SLinus Torvalds 1431da177e4SLinus Torvalds EXPORT_SYMBOL(panic); 1441da177e4SLinus Torvalds 1451da177e4SLinus Torvalds 14625ddbb18SAndi Kleen struct tnt { 14725ddbb18SAndi Kleen u8 bit; 14825ddbb18SAndi Kleen char true; 14925ddbb18SAndi Kleen char false; 15025ddbb18SAndi Kleen }; 15125ddbb18SAndi Kleen 15225ddbb18SAndi Kleen static const struct tnt tnts[] = { 15325ddbb18SAndi Kleen { TAINT_PROPRIETARY_MODULE, 'P', 'G' }, 15425ddbb18SAndi Kleen { TAINT_FORCED_MODULE, 'F', ' ' }, 15525ddbb18SAndi Kleen { TAINT_UNSAFE_SMP, 'S', ' ' }, 15625ddbb18SAndi Kleen { TAINT_FORCED_RMMOD, 'R', ' ' }, 15725ddbb18SAndi Kleen { TAINT_MACHINE_CHECK, 'M', ' ' }, 15825ddbb18SAndi Kleen { TAINT_BAD_PAGE, 'B', ' ' }, 15925ddbb18SAndi Kleen { TAINT_USER, 'U', ' ' }, 16025ddbb18SAndi Kleen { TAINT_DIE, 'D', ' ' }, 16125ddbb18SAndi Kleen { TAINT_OVERRIDDEN_ACPI_TABLE, 'A', ' ' }, 16225ddbb18SAndi Kleen { TAINT_WARN, 'W', ' ' }, 16326e9a397SLinus Torvalds { TAINT_CRAP, 'C', ' ' }, 16425ddbb18SAndi Kleen }; 16525ddbb18SAndi Kleen 1661da177e4SLinus Torvalds /** 1671da177e4SLinus Torvalds * print_tainted - return a string to represent the kernel taint state. 1681da177e4SLinus Torvalds * 1691da177e4SLinus Torvalds * 'P' - Proprietary module has been loaded. 1701da177e4SLinus Torvalds * 'F' - Module has been forcibly loaded. 1711da177e4SLinus Torvalds * 'S' - SMP with CPUs not designed for SMP. 1721da177e4SLinus Torvalds * 'R' - User forced a module unload. 1731da177e4SLinus Torvalds * 'M' - System experienced a machine check exception. 1741da177e4SLinus Torvalds * 'B' - System has hit bad_page. 1751da177e4SLinus Torvalds * 'U' - Userspace-defined naughtiness. 176a8005992SArjan van de Ven * 'D' - Kernel has oopsed before 1771da177e4SLinus Torvalds * 'A' - ACPI table overridden. 1781da177e4SLinus Torvalds * 'W' - Taint on warning. 179061b1bd3SGreg Kroah-Hartman * 'C' - modules from drivers/staging are loaded. 1801da177e4SLinus Torvalds * 1811da177e4SLinus Torvalds * The string is overwritten by the next call to print_taint(). 1821da177e4SLinus Torvalds */ 1831da177e4SLinus Torvalds const char *print_tainted(void) 1841da177e4SLinus Torvalds { 18525ddbb18SAndi Kleen static char buf[ARRAY_SIZE(tnts) + sizeof("Tainted: ") + 1]; 18625ddbb18SAndi Kleen 18725ddbb18SAndi Kleen if (tainted_mask) { 18825ddbb18SAndi Kleen char *s; 18925ddbb18SAndi Kleen int i; 19025ddbb18SAndi Kleen 19125ddbb18SAndi Kleen s = buf + sprintf(buf, "Tainted: "); 19225ddbb18SAndi Kleen for (i = 0; i < ARRAY_SIZE(tnts); i++) { 19325ddbb18SAndi Kleen const struct tnt *t = &tnts[i]; 19425ddbb18SAndi Kleen *s++ = test_bit(t->bit, &tainted_mask) ? 19525ddbb18SAndi Kleen t->true : t->false; 1961da177e4SLinus Torvalds } 19725ddbb18SAndi Kleen *s = 0; 19825ddbb18SAndi Kleen } else 1991da177e4SLinus Torvalds snprintf(buf, sizeof(buf), "Not tainted"); 200c95dbf27SIngo Molnar 201c95dbf27SIngo Molnar return buf; 2021da177e4SLinus Torvalds } 2031da177e4SLinus Torvalds 20425ddbb18SAndi Kleen int test_taint(unsigned flag) 20525ddbb18SAndi Kleen { 20625ddbb18SAndi Kleen return test_bit(flag, &tainted_mask); 20725ddbb18SAndi Kleen } 20825ddbb18SAndi Kleen EXPORT_SYMBOL(test_taint); 20925ddbb18SAndi Kleen 21025ddbb18SAndi Kleen unsigned long get_taint(void) 21125ddbb18SAndi Kleen { 21225ddbb18SAndi Kleen return tainted_mask; 21325ddbb18SAndi Kleen } 21425ddbb18SAndi Kleen 2151da177e4SLinus Torvalds void add_taint(unsigned flag) 2161da177e4SLinus Torvalds { 2179eeba613SFrederic Weisbecker /* 2189eeba613SFrederic Weisbecker * Can't trust the integrity of the kernel anymore. 2199eeba613SFrederic Weisbecker * We don't call directly debug_locks_off() because the issue 2209eeba613SFrederic Weisbecker * is not necessarily serious enough to set oops_in_progress to 1 221574bbe78SFrederic Weisbecker * Also we want to keep up lockdep for staging development and 222574bbe78SFrederic Weisbecker * post-warning case. 2239eeba613SFrederic Weisbecker */ 224574bbe78SFrederic Weisbecker if (flag != TAINT_CRAP && flag != TAINT_WARN && __debug_locks_off()) 225b48ccb09SIngo Molnar printk(KERN_WARNING "Disabling lock debugging due to kernel taint\n"); 2269eeba613SFrederic Weisbecker 22725ddbb18SAndi Kleen set_bit(flag, &tainted_mask); 2281da177e4SLinus Torvalds } 2291da177e4SLinus Torvalds EXPORT_SYMBOL(add_taint); 230dd287796SAndrew Morton 231dd287796SAndrew Morton static void spin_msec(int msecs) 232dd287796SAndrew Morton { 233dd287796SAndrew Morton int i; 234dd287796SAndrew Morton 235dd287796SAndrew Morton for (i = 0; i < msecs; i++) { 236dd287796SAndrew Morton touch_nmi_watchdog(); 237dd287796SAndrew Morton mdelay(1); 238dd287796SAndrew Morton } 239dd287796SAndrew Morton } 240dd287796SAndrew Morton 241dd287796SAndrew Morton /* 242dd287796SAndrew Morton * It just happens that oops_enter() and oops_exit() are identically 243dd287796SAndrew Morton * implemented... 244dd287796SAndrew Morton */ 245dd287796SAndrew Morton static void do_oops_enter_exit(void) 246dd287796SAndrew Morton { 247dd287796SAndrew Morton unsigned long flags; 248dd287796SAndrew Morton static int spin_counter; 249dd287796SAndrew Morton 250dd287796SAndrew Morton if (!pause_on_oops) 251dd287796SAndrew Morton return; 252dd287796SAndrew Morton 253dd287796SAndrew Morton spin_lock_irqsave(&pause_on_oops_lock, flags); 254dd287796SAndrew Morton if (pause_on_oops_flag == 0) { 255dd287796SAndrew Morton /* This CPU may now print the oops message */ 256dd287796SAndrew Morton pause_on_oops_flag = 1; 257dd287796SAndrew Morton } else { 258dd287796SAndrew Morton /* We need to stall this CPU */ 259dd287796SAndrew Morton if (!spin_counter) { 260dd287796SAndrew Morton /* This CPU gets to do the counting */ 261dd287796SAndrew Morton spin_counter = pause_on_oops; 262dd287796SAndrew Morton do { 263dd287796SAndrew Morton spin_unlock(&pause_on_oops_lock); 264dd287796SAndrew Morton spin_msec(MSEC_PER_SEC); 265dd287796SAndrew Morton spin_lock(&pause_on_oops_lock); 266dd287796SAndrew Morton } while (--spin_counter); 267dd287796SAndrew Morton pause_on_oops_flag = 0; 268dd287796SAndrew Morton } else { 269dd287796SAndrew Morton /* This CPU waits for a different one */ 270dd287796SAndrew Morton while (spin_counter) { 271dd287796SAndrew Morton spin_unlock(&pause_on_oops_lock); 272dd287796SAndrew Morton spin_msec(1); 273dd287796SAndrew Morton spin_lock(&pause_on_oops_lock); 274dd287796SAndrew Morton } 275dd287796SAndrew Morton } 276dd287796SAndrew Morton } 277dd287796SAndrew Morton spin_unlock_irqrestore(&pause_on_oops_lock, flags); 278dd287796SAndrew Morton } 279dd287796SAndrew Morton 280dd287796SAndrew Morton /* 281c95dbf27SIngo Molnar * Return true if the calling CPU is allowed to print oops-related info. 282c95dbf27SIngo Molnar * This is a bit racy.. 283dd287796SAndrew Morton */ 284dd287796SAndrew Morton int oops_may_print(void) 285dd287796SAndrew Morton { 286dd287796SAndrew Morton return pause_on_oops_flag == 0; 287dd287796SAndrew Morton } 288dd287796SAndrew Morton 289dd287796SAndrew Morton /* 290dd287796SAndrew Morton * Called when the architecture enters its oops handler, before it prints 291c95dbf27SIngo Molnar * anything. If this is the first CPU to oops, and it's oopsing the first 292c95dbf27SIngo Molnar * time then let it proceed. 293dd287796SAndrew Morton * 294c95dbf27SIngo Molnar * This is all enabled by the pause_on_oops kernel boot option. We do all 295c95dbf27SIngo Molnar * this to ensure that oopses don't scroll off the screen. It has the 296c95dbf27SIngo Molnar * side-effect of preventing later-oopsing CPUs from mucking up the display, 297c95dbf27SIngo Molnar * too. 298dd287796SAndrew Morton * 299c95dbf27SIngo Molnar * It turns out that the CPU which is allowed to print ends up pausing for 300c95dbf27SIngo Molnar * the right duration, whereas all the other CPUs pause for twice as long: 301c95dbf27SIngo Molnar * once in oops_enter(), once in oops_exit(). 302dd287796SAndrew Morton */ 303dd287796SAndrew Morton void oops_enter(void) 304dd287796SAndrew Morton { 305bdff7870SThomas Gleixner tracing_off(); 306c95dbf27SIngo Molnar /* can't trust the integrity of the kernel anymore: */ 307c95dbf27SIngo Molnar debug_locks_off(); 308dd287796SAndrew Morton do_oops_enter_exit(); 309dd287796SAndrew Morton } 310dd287796SAndrew Morton 311dd287796SAndrew Morton /* 3122c3b20e9SArjan van de Ven * 64-bit random ID for oopses: 3132c3b20e9SArjan van de Ven */ 3142c3b20e9SArjan van de Ven static u64 oops_id; 3152c3b20e9SArjan van de Ven 3162c3b20e9SArjan van de Ven static int init_oops_id(void) 3172c3b20e9SArjan van de Ven { 3182c3b20e9SArjan van de Ven if (!oops_id) 3192c3b20e9SArjan van de Ven get_random_bytes(&oops_id, sizeof(oops_id)); 320d6624f99SArjan van de Ven else 321d6624f99SArjan van de Ven oops_id++; 3222c3b20e9SArjan van de Ven 3232c3b20e9SArjan van de Ven return 0; 3242c3b20e9SArjan van de Ven } 3252c3b20e9SArjan van de Ven late_initcall(init_oops_id); 3262c3b20e9SArjan van de Ven 32771c33911SArjan van de Ven static void print_oops_end_marker(void) 32871c33911SArjan van de Ven { 32971c33911SArjan van de Ven init_oops_id(); 33071c33911SArjan van de Ven printk(KERN_WARNING "---[ end trace %016llx ]---\n", 33171c33911SArjan van de Ven (unsigned long long)oops_id); 33271c33911SArjan van de Ven } 33371c33911SArjan van de Ven 3342c3b20e9SArjan van de Ven /* 335dd287796SAndrew Morton * Called when the architecture exits its oops handler, after printing 336dd287796SAndrew Morton * everything. 337dd287796SAndrew Morton */ 338dd287796SAndrew Morton void oops_exit(void) 339dd287796SAndrew Morton { 340dd287796SAndrew Morton do_oops_enter_exit(); 34171c33911SArjan van de Ven print_oops_end_marker(); 342dd287796SAndrew Morton } 3433162f751SArjan van de Ven 34479b4cc5eSArjan van de Ven #ifdef WANT_WARN_ON_SLOWPATH 3450f6f49a8SLinus Torvalds struct slowpath_args { 3460f6f49a8SLinus Torvalds const char *fmt; 347a8f18b90SArjan van de Ven va_list args; 3480f6f49a8SLinus Torvalds }; 3490f6f49a8SLinus Torvalds 3500f6f49a8SLinus Torvalds static void warn_slowpath_common(const char *file, int line, void *caller, struct slowpath_args *args) 3510f6f49a8SLinus Torvalds { 352bd89bb29SArjan van de Ven const char *board; 353bd89bb29SArjan van de Ven 354a8f18b90SArjan van de Ven printk(KERN_WARNING "------------[ cut here ]------------\n"); 3550f6f49a8SLinus Torvalds printk(KERN_WARNING "WARNING: at %s:%d %pS()\n", file, line, caller); 356bd89bb29SArjan van de Ven board = dmi_get_system_info(DMI_PRODUCT_NAME); 357bd89bb29SArjan van de Ven if (board) 358bd89bb29SArjan van de Ven printk(KERN_WARNING "Hardware name: %s\n", board); 35974853dbaSArjan van de Ven 3600f6f49a8SLinus Torvalds if (args) 3610f6f49a8SLinus Torvalds vprintk(args->fmt, args->args); 362a8f18b90SArjan van de Ven 363a8f18b90SArjan van de Ven print_modules(); 364a8f18b90SArjan van de Ven dump_stack(); 365a8f18b90SArjan van de Ven print_oops_end_marker(); 366a8f18b90SArjan van de Ven add_taint(TAINT_WARN); 367a8f18b90SArjan van de Ven } 3680f6f49a8SLinus Torvalds 3690f6f49a8SLinus Torvalds void warn_slowpath_fmt(const char *file, int line, const char *fmt, ...) 3700f6f49a8SLinus Torvalds { 3710f6f49a8SLinus Torvalds struct slowpath_args args; 3720f6f49a8SLinus Torvalds 3730f6f49a8SLinus Torvalds args.fmt = fmt; 3740f6f49a8SLinus Torvalds va_start(args.args, fmt); 3750f6f49a8SLinus Torvalds warn_slowpath_common(file, line, __builtin_return_address(0), &args); 3760f6f49a8SLinus Torvalds va_end(args.args); 3770f6f49a8SLinus Torvalds } 37857adc4d2SAndi Kleen EXPORT_SYMBOL(warn_slowpath_fmt); 37957adc4d2SAndi Kleen 38057adc4d2SAndi Kleen void warn_slowpath_null(const char *file, int line) 38157adc4d2SAndi Kleen { 3820f6f49a8SLinus Torvalds warn_slowpath_common(file, line, __builtin_return_address(0), NULL); 38357adc4d2SAndi Kleen } 38457adc4d2SAndi Kleen EXPORT_SYMBOL(warn_slowpath_null); 38579b4cc5eSArjan van de Ven #endif 38679b4cc5eSArjan van de Ven 3873162f751SArjan van de Ven #ifdef CONFIG_CC_STACKPROTECTOR 38854371a43SArjan van de Ven 3893162f751SArjan van de Ven /* 3903162f751SArjan van de Ven * Called when gcc's -fstack-protector feature is used, and 3913162f751SArjan van de Ven * gcc detects corruption of the on-stack canary value 3923162f751SArjan van de Ven */ 3933162f751SArjan van de Ven void __stack_chk_fail(void) 3943162f751SArjan van de Ven { 395517a92c4SIngo Molnar panic("stack-protector: Kernel stack is corrupted in: %p\n", 396517a92c4SIngo Molnar __builtin_return_address(0)); 3973162f751SArjan van de Ven } 3983162f751SArjan van de Ven EXPORT_SYMBOL(__stack_chk_fail); 39954371a43SArjan van de Ven 4003162f751SArjan van de Ven #endif 401f44dd164SRusty Russell 402f44dd164SRusty Russell core_param(panic, panic_timeout, int, 0644); 403f44dd164SRusty Russell core_param(pause_on_oops, pause_on_oops, int, 0644); 404