Lines Matching +full:long +full:- +full:press +full:- +full:mode

1 // SPDX-License-Identifier: GPL-2.0-only
9 * This function is used through-out the kernel (including mm and fs)
57 static unsigned long tainted_mask =
64 unsigned long panic_on_taint;
75 unsigned long panic_print;
96 unsigned long tmptaint = get_taint(); in proc_taint()
100 return -EPERM; in proc_taint()
117 return -EINVAL; in proc_taint()
144 .mode = 0644,
152 .maxlen = sizeof(long),
153 .mode = 0644,
160 .mode = 0644,
167 .mode = 0644,
173 .maxlen = sizeof(unsigned long),
174 .mode = 0644,
181 .mode = 0644,
190 .mode = 0644,
199 .mode = 0644,
207 .mode = 0644,
248 static long no_blink(int state) in no_blink()
253 /* Returns how long it waited in ms */
254 long (*panic_blink)(int state);
258 * Stop ourself in panic -- architecture code may override this
279 * per-CPU features such as virtualization extensions.
386 /* Temporary allow non-panic CPUs to write their backtraces. */ in panic_trigger_all_cpu_backtrace()
399 * and then performs the secondary CPUs shutdown - we cannot have
422 * vpanic - halt the system
431 long i, i_next = 0, len; in vpanic()
455 * It's possible to come here directly from a panic-assertion and in vpanic()
479 if (len && buf[len - 1] == '\n') in vpanic()
480 buf[len - 1] = '\0'; in vpanic()
482 pr_emerg("Kernel panic - not syncing: %s\n", buf); in vpanic()
484 * Avoid nested stack-dumping if a panic occurs during oops processing in vpanic()
586 /* Make sure the user can actually press Stop-A (L1-A) */ in vpanic()
588 pr_emerg("Press Stop-A (L1-A) from sun keyboard or send break\n" in vpanic()
595 pr_emerg("---[ end Kernel panic - not syncing: %s ]---\n", buf); in vpanic()
639 * TAINT_FORCED_RMMOD could be a per-module flag but the module
681 char c = is_set ? t->c_true : t->c_false; in print_tainted_seq()
685 seq_buf_printf(s, "%s[%c]=%s", sep, c, t->desc); in print_tainted_seq()
710 * print_tainted - return a string to represent the kernel taint state.
712 * For individual taint flag meanings, see Documentation/admin-guide/sysctl/kernel.rst
723 * print_tainted_verbose - A more verbose version of print_tainted()
736 unsigned long get_taint(void) in get_taint()
747 * some notewortht-but-not-corrupting cases, it can be set to true.
779 unsigned long flags; in do_oops_enter_exit()
798 } while (--spin_counter); in do_oops_enter_exit()
813 * Return true if the calling CPU is allowed to print oops-related info.
828 * side-effect of preventing later-oopsing CPUs from mucking up the display,
832 * the right duration, whereas all the other CPUs pause for twice as long:
849 pr_warn("---[ end trace %016llx ]---\n", 0ULL); in print_oops_end_marker()
878 raw_smp_processor_id(), current->pid, file, line, in __warn()
882 raw_smp_processor_id(), current->pid, caller); in __warn()
886 #pragma GCC diagnostic ignored "-Wsuggest-attribute=format" in __warn()
889 vprintk(args->fmt, args->args); in __warn()
905 trace_error_report_end(ERROR_DETECTOR_WARN, (unsigned long)caller); in __warn()
958 memset(__start_once, 0, __end_once - __start_once); in clear_warn_once_set()
979 * Called when gcc's -fstack-protector feature is used, and
980 * gcc detects corruption of the on-stack canary value
984 unsigned long flags; in __stack_chk_fail()
989 panic("stack-protector: Kernel stack is corrupted in: %pB", in __stack_chk_fail()
1026 return -EINVAL; in oops_setup()
1038 return -EINVAL; in panic_on_taint_setup()
1042 return -EINVAL; in panic_on_taint_setup()
1044 /* make sure panic_on_taint doesn't hold out-of-range TAINT flags */ in panic_on_taint_setup()
1048 return -EINVAL; in panic_on_taint_setup()