Centos-kernel-stream-9/kernel
Andrew Halaney 5277972bb0 panic: Flush kernel log buffer at the end
JIRA: https://issues.redhat.com/browse/RHEL-3987
Upstream Status: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git/

commit db621f13961fb858c2545305b62a569ccf95314e
Author: John Ogness <john.ogness@linutronix.de>
Date:   Thu Dec 14 20:48:23 2023 +0000

    panic: Flush kernel log buffer at the end

    If the kernel crashes in a context where printk() calls always
    defer printing (such as in NMI or inside a printk_safe section)
    then the final panic messages will be deferred to irq_work. But
    if irq_work is not available, the messages will not get printed
    unless explicitly flushed. The result is that the final
    "end Kernel panic" banner does not get printed.

    Add one final flush after the last printk() call to make sure
    the final panic messages make it out as well.

    Signed-off-by: John Ogness <john.ogness@linutronix.de>
    Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>

Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
2024-05-09 11:26:24 -04:00
..
bpf Merge: CNB95: bpf: expose information about netdev xdp-metadata kfunc support 2024-05-08 20:17:31 +00:00
cgroup Merge: Scheduler: rhel9.5 updates 2024-05-08 20:13:47 +00:00
configs mm, slob: rename CONFIG_SLOB to CONFIG_SLOB_DEPRECATED 2024-04-09 09:42:54 -04:00
debug kdb: use srcu console list iterator 2024-05-09 11:25:20 -04:00
dma Reapply "dma-mapping: reject __GFP_COMP in dma_alloc_attrs" 2024-02-19 10:00:36 -08:00
entry entry: kmsan: introduce kmsan_unpoison_entry_regs() 2023-10-20 06:14:42 -04:00
events Merge: perf: Sync with upstream v6.8 2024-04-24 19:39:17 +00:00
futex futex: Prevent the reuse of stale pi_state 2024-03-27 10:12:24 -04:00
gcov
irq genirq, softirq: Use in_hardirq() instead of in_irq() 2024-04-05 09:49:13 -04:00
kcsan printk: export console trace point for kcsan/kasan/kfence/kmsan 2024-05-09 11:26:20 -04:00
livepatch Merge: livepatch: selected fixes for rhel-9.4 2023-11-13 10:15:36 +01:00
locking locking/rtmutex: Add a lockdep assert to catch potential nested blocking 2024-03-27 10:06:01 -04:00
power power: port block device access to file 2024-04-17 10:18:36 +08:00
printk printk: Avoid non-panic CPUs writing to ringbuffer 2024-05-09 11:26:24 -04:00
rcu Revert "printk: Bring back the RT bits." 2024-05-09 11:24:08 -04:00
sched Merge: Scheduler: rhel9.5 updates 2024-05-08 20:13:47 +00:00
time seqlock/latch: Provide raw_read_seqcount_latch_retry() 2024-05-09 11:26:21 -04:00
trace Merge: block: open block device as file 2024-04-29 14:05:40 +00:00
.gitignore
Kconfig.freezer
Kconfig.hz
Kconfig.locks
Kconfig.preempt
Makefile kernel: add platform_has() infrastructure 2024-03-20 09:42:37 -04:00
acct.c acct: use VMA iterator instead of linked list 2024-04-01 11:19:51 -04:00
async.c
audit.c audit: move trailing statements to next line 2023-12-08 13:36:23 -03:00
audit.h audit: correct audit_filter_inodes() definition 2023-12-08 13:36:03 -03:00
audit_fsnotify.c
audit_tree.c
audit_watch.c audit: don't WARN_ON_ONCE(!current->mm) in audit_exe_compare() 2023-11-21 10:44:01 +01:00
auditfilter.c audit: move trailing statements to next line 2023-12-08 13:36:23 -03:00
auditsc.c netfilter: nf_tables: Audit log rule reset 2023-12-08 13:39:15 -03:00
backtracetest.c
bounds.c mm: multi-gen LRU: minimal implementation 2023-10-20 06:13:45 -04:00
capability.c
cfi.c
compat.c
configs.c
context_tracking.c
cpu.c cpu/hotplug: Remove dependancy against cpu_primary_thread_mask 2024-02-06 10:17:15 -05:00
cpu_pm.c
crash_core.c mm, treewide: redefine MAX_ORDER sanely 2023-10-30 09:12:37 +01:00
crash_dump.c
cred.c
delayacct.c
dma.c
exec_domain.c
exit.c exit: Use READ_ONCE() for all oops/warn limit reads 2024-05-09 11:26:19 -04:00
extable.c sections: move and rename core_kernel_data() to is_kernel_core_data() 2024-03-20 09:43:21 -04:00
fail_function.c
fork.c mm: remove the vma linked list 2024-04-01 11:19:57 -04:00
freezer.c
gen_kheaders.sh
groups.c
hung_task.c Revert "printk: Bring back the RT bits." 2024-05-09 11:24:08 -04:00
iomem.c
irq_work.c
jump_label.c jump_label: make initial NOP patching the special case 2024-03-20 09:43:04 -04:00
kallsyms.c
kallsyms_internal.h
kcmp.c
kcov.c kcov: kmsan: unpoison area->list in kcov_remote_area_put() 2023-10-20 06:14:40 -04:00
kexec.c
kexec_core.c kexec_file: add kexec_file flag to control debug printing 2024-04-28 21:52:02 +08:00
kexec_elf.c
kexec_file.c kexec_file: print out debugging message if required 2024-04-28 21:54:52 +08:00
kexec_internal.h
kheaders.c
kmod.c
kprobes.c x86/kprobes: Fix arch_check_optimized_kprobe check within optimized_kprobe range 2024-03-20 09:42:59 -04:00
ksysfs.c
kthread.c
latencytop.c
module-internal.h
module.c Merge: treewide: Implement new Red Hat driver and device status infrastructure 2023-11-29 14:08:05 -05:00
module_signature.c
module_signing.c
notifier.c notifier: Add atomic_notifier_call_chain_is_empty() 2024-03-20 09:42:36 -04:00
nsproxy.c Revert "fs/exec: allow to unshare a time namespace on vfork+exec" 2023-10-20 06:13:08 -04:00
padata.c padata: Fix refcnt handling in padata_free_shell() 2023-12-06 16:23:46 -03:00
panic.c panic: Flush kernel log buffer at the end 2024-05-09 11:26:24 -04:00
params.c kobject: kset_uevent_ops: make filter() callback take a const * 2023-10-23 10:35:56 -05:00
pid.c
pid_namespace.c
platform-feature.c kernel: add platform_has() infrastructure 2024-03-20 09:42:37 -04:00
profile.c profile: setup_profiling_timer() is moslty not implemented 2024-03-20 09:42:39 -04:00
ptrace.c
range.c
reboot.c Revert "printk: Bring back the RT bits." 2024-05-09 11:24:08 -04:00
regset.c
relay.c
resource.c
resource_kunit.c
rh_messages.c kernel/rh_messages.c: Mark functions as possibly unused 2023-11-09 19:58:08 -05:00
rh_messages.h Deprecate qla4xxx in RHEL-9 2024-03-06 14:06:57 -08:00
rh_shadowman.c
rseq.c
scftorture.c
scs.c
seccomp.c
signal.c signal: Add proper comment about the preempt-disable in ptrace_stop(). 2023-11-06 12:29:40 +01:00
smp.c smp: don't declare nr_cpu_ids if NR_CPUS == 1 2024-03-20 09:42:41 -04:00
smpboot.c cpu/hotplug: Remove unused state functions 2024-02-06 10:17:13 -05:00
smpboot.h
softirq.c sched/core: introduce sched_core_idle_cpu() 2024-04-05 09:49:13 -04:00
stackleak.c
stacktrace.c
static_call.c
static_call_inline.c
stop_machine.c
sys.c
sys_ni.c futex: Add sys_futex_requeue() 2024-03-27 10:06:08 -04:00
sysctl-test.c
sysctl.c sysctl: fix proc_dobool() usability 2024-05-09 11:25:32 -04:00
task_work.c
taskstats.c
test_kprobes.c test_kprobes: Add recursed kprobe test case 2023-11-02 15:26:56 -06:00
torture.c
tracepoint.c
tsacct.c
ucount.c
uid16.c
uid16.h
umh.c freezer,umh: Clean up freezer/initrd interaction 2023-10-20 06:13:12 -04:00
up.c
user-return-notifier.c
user.c
user_namespace.c
usermode_driver.c
utsname.c
utsname_sysctl.c
watch_queue.c
watchdog.c Revert "printk: Bring back the RT bits." 2024-05-09 11:24:08 -04:00
watchdog_hld.c Revert "printk: Bring back the RT bits." 2024-05-09 11:24:08 -04:00
workqueue.c workqueue: Avoid using isolated cpus' timers on queue_delayed_work 2024-02-22 16:47:15 -03:00
workqueue_internal.h