Centos-kernel-stream-9/kernel
Waiman Long 33208366c8 cpuidle: lib/bug: Disable rcu_is_watching() during WARN/BUG
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2169516
Conflicts: A merge conflict in adding include file
	   <linux/context_tracking.h> to kernel/panic.c due to missing
	   upstream commit 23b36fec7e14 ("panic: use error_report_end
	   tracepoint on warnings") and commit 8b05aa263361 ("panic:
	   Expose "warn_count" to sysfs").

commit 5a5d7e9badd2cb8065db171961bd30bd3595e4b6
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Thu, 26 Jan 2023 16:08:31 +0100

    cpuidle: lib/bug: Disable rcu_is_watching() during WARN/BUG

    In order to avoid WARN/BUG from generating nested or even recursive
    warnings, force rcu_is_watching() true during
    WARN/lockdep_rcu_suspicious().

    Notably things like unwinding the stack can trigger rcu_dereference()
    warnings, which then triggers more unwinding which then triggers more
    warnings etc..

    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    Link: https://lore.kernel.org/r/20230126151323.408156109@infradead.org

Signed-off-by: Waiman Long <longman@redhat.com>
2023-03-30 08:48:17 -04:00
..
bpf bpf: Zeroing allocated object from slab in bpf memory allocator 2023-03-06 14:54:39 +01:00
cgroup Merge: bpf, xdp: update to 6.1 2023-03-27 07:05:16 +02:00
configs
debug lockdown: also lock down previous kgdb use 2022-07-29 16:30:21 -04:00
dma dma-mapping: mark dma_supported static 2022-10-27 16:31:40 -07:00
entry context_tracking: Take NMI eqs entrypoints over RCU 2023-03-30 08:36:17 -04:00
events Merge: MM changes for RHEL 9.3 2023-03-29 12:09:11 +02:00
futex futex: Resend potentially swallowed owner death notification 2023-01-26 14:01:18 -05:00
gcov
irq genirq/msi, platform-msi: Ensure that MSI descriptors are unreferenced 2023-03-13 09:52:45 -04:00
kcsan arm64: Enable KCSAN 2022-07-08 14:27:30 -04:00
livepatch livepatch: Don't block removal of patches that are safe to unload 2022-12-05 12:18:16 -05:00
locking cpuidle: lib/bug: Disable rcu_is_watching() during WARN/BUG 2023-03-30 08:48:17 -04:00
power ACPI: s2idle: Add a new ->check() callback for platform_s2idle_ops 2023-01-06 07:40:17 -05:00
printk printk: avoid preempt_disable() for PREEMPT_RT 2023-02-27 13:46:09 +01:00
rcu rcu: Fix __this_cpu_read() lockdep warning in rcu_force_quiescent_state() 2023-03-30 08:48:16 -04:00
sched sched/debug: Show the registers of 'current' in dump_cpu_task() 2023-03-30 08:47:58 -04:00
time context_tracking: Take idle eqs entrypoints over RCU 2023-03-30 08:36:16 -04:00
trace context_tracking: Take NMI eqs entrypoints over RCU 2023-03-30 08:36:17 -04:00
.gitignore
Kconfig.freezer
Kconfig.hz
Kconfig.locks
Kconfig.preempt sched: Add support for lazy preemption 2023-02-27 13:46:09 +01:00
Makefile kprobes: Use rethook for kretprobe if possible 2022-10-25 14:58:08 +02:00
acct.c
async.c
audit.c audit: use time_after to compare time 2022-11-04 16:05:15 -04:00
audit.h audit: remove selinux_audit_rule_update() declaration 2022-11-04 16:05:31 -04:00
audit_fsnotify.c audit: fix potential double free on error path from fsnotify_add_inode_mark 2022-11-04 15:57:55 -04:00
audit_tree.c audit: use struct_size() helper in kmalloc() 2022-03-25 20:02:56 -04:00
audit_watch.c audit_init_parent(): constify path 2022-11-04 16:07:47 -04:00
auditfilter.c lsm: security_task_getsecid_subj() -> security_current_getsecid_subj() 2022-05-10 14:21:26 +02:00
auditsc.c audit: unify audit_filter_{uring(), inode_name(), syscall()} 2022-11-04 16:11:36 -04:00
backtracetest.c
bounds.c
capability.c xfs: don't generate selinux audit messages for capability testing 2022-07-20 11:42:39 +02:00
cfi.c context_tracking: Take IRQ eqs entrypoints over RCU 2023-03-30 08:36:16 -04:00
compat.c
configs.c
context_tracking.c MAINTAINERS: Add Paul as context tracking maintainer 2023-03-30 08:36:19 -04:00
cpu.c Merge: cpu/hotplug: Fix some cpuhp->target issues 2023-01-16 16:06:43 +00:00
cpu_pm.c context_tracking: Take IRQ eqs entrypoints over RCU 2023-03-30 08:36:16 -04:00
crash_core.c vmcoreinfo: add kallsyms_num_syms symbol 2022-11-16 03:47:03 -05:00
crash_dump.c
cred.c x86: Mark __invalid_creds() __noreturn 2022-10-27 14:27:58 -04:00
delayacct.c delayacct: track delays from write-protect copy 2023-03-24 11:19:12 -04:00
dma.c
exec_domain.c
exit.c Merge: BPF and XDP rebase to v5.18 2022-11-21 05:30:47 -05:00
extable.c context_tracking: Take NMI eqs entrypoints over RCU 2023-03-30 08:36:17 -04:00
fail_function.c
fork.c rcu-tasks: Add data structures for lightweight grace periods 2023-03-30 08:36:09 -04:00
freezer.c
gen_kheaders.sh
groups.c
hung_task.c hung_task: move hung_task sysctl interface to hung_task.c 2023-03-24 11:18:30 -04:00
iomem.c
irq_work.c
jump_label.c
kallsyms.c bpf: add a ksym BPF iterator 2023-01-05 15:46:37 +01:00
kallsyms_internal.h kallsyms: move declarations to internal header 2022-11-16 03:47:03 -05:00
kcmp.c
kcov.c
kexec.c panic, kexec: make __crash_kexec() NMI safe 2023-02-06 09:36:01 +00:00
kexec_core.c panic, kexec: make __crash_kexec() NMI safe 2023-02-06 09:36:01 +00:00
kexec_elf.c
kexec_file.c panic, kexec: make __crash_kexec() NMI safe 2023-02-06 09:36:01 +00:00
kexec_internal.h panic, kexec: make __crash_kexec() NMI safe 2023-02-06 09:36:01 +00:00
kheaders.c
kmod.c
kprobes.c kprobes: Add new KPROBE_FLAG_ON_FUNC_ENTRY kprobe flag 2023-03-06 14:54:18 +01:00
ksysfs.c sysfs: Add /sys/kernel/realtime entry 2023-02-27 13:46:10 +01:00
kthread.c uaccess: remove CONFIG_SET_FS 2022-10-12 07:27:45 -04:00
latencytop.c
module-internal.h
module.c Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
module_signature.c
module_signing.c
notifier.c notifier: Remove atomic_notifier_call_chain_robust() 2022-09-13 10:37:55 -04:00
nsproxy.c fs/exec: switch timens when a task gets a new mm 2023-01-11 10:43:02 +01:00
padata.c
panic.c cpuidle: lib/bug: Disable rcu_is_watching() during WARN/BUG 2023-03-30 08:48:17 -04:00
params.c kobject: remove kset from struct kset_uevent_ops callbacks 2022-06-14 16:04:15 -05:00
pid.c gfs2: Add glockfd debugfs file 2023-03-07 15:29:20 +01:00
pid_namespace.c
profile.c exit: Remove profile_handoff_task 2022-10-12 07:27:36 -04:00
ptrace.c Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
range.c
reboot.c printk: Bring back the RT bits. 2023-02-27 13:46:09 +01:00
regset.c
relay.c
resource.c PCI: Allow drivers to request exclusive config regions 2023-03-13 09:52:37 -04:00
resource_kunit.c
rh_messages.c Add taint flag for partner supported GPL modules 2023-01-20 14:07:53 +00:00
rh_shadowman.c kernel: Add redhat code 2022-01-27 09:03:54 -05:00
rh_taint.c
rseq.c
scftorture.c scftorture: Fix distribution of short handler delays 2022-08-30 17:22:06 -04:00
scs.c kasan, vmalloc: only tag normal vmalloc allocations 2022-10-12 07:28:00 -04:00
seccomp.c signal/seccomp: Refactor seccomp signal and coredump generation 2022-10-12 07:27:23 -04:00
signal.c signal: Don't disable preemption in ptrace_stop() on PREEMPT_RT. 2023-02-27 13:46:08 +01:00
smp.c sched/debug: Try trigger_single_cpu_backtrace(cpu) in dump_cpu_task() 2023-03-30 08:47:57 -04:00
smpboot.c
smpboot.h
softirq.c context_tracking: Take IRQ eqs entrypoints over RCU 2023-03-30 08:36:16 -04:00
stackleak.c
stacktrace.c uaccess: remove CONFIG_SET_FS 2022-10-12 07:27:45 -04:00
static_call.c KVM: x86: allow defining return-0 static calls 2022-05-30 16:48:59 +02:00
stop_machine.c sched: Fix missing prototype warnings 2022-09-08 11:25:07 -04:00
sys.c arm64/sme: Implement vector length configuration prctl()s 2023-01-28 11:34:52 -05:00
sys_ni.c futex: Implement sys_futex_waitv() 2022-03-10 16:55:08 -05:00
sysctl-test.c
sysctl.c mm: move page-writeback sysctls to their own file 2023-03-24 11:18:50 -04:00
task_work.c resume_user_mode: Move to resume_user_mode.h 2022-10-12 07:27:47 -04:00
taskstats.c Merge: CNB: genetlink: start to validate reserved header bytes 2023-03-29 12:09:18 +02:00
test_kprobes.c kprobes: Add a test case for stacktrace from kretprobe handler 2022-04-06 21:50:16 -04:00
torture.c torture: Wake up kthreads after storing task_struct pointer 2022-05-12 08:26:04 -04:00
tracepoint.c
tsacct.c taskstats: version 12 with thread group and exe info 2023-03-24 11:18:57 -04:00
ucount.c ucounts: Handle wrapping in is_ucounts_overlimit 2022-03-08 13:25:19 +01:00
uid16.c
uid16.h
umh.c kthread: Don't allocate kthread_struct for init and umh 2022-10-12 07:28:07 -04:00
up.c
user-return-notifier.c
user.c
user_namespace.c ucounts: Fix systemd LimitNPROC with private users regression 2022-03-08 13:40:22 +01:00
usermode_driver.c blob_to_mnt(): kern_unmount() is needed to undo kern_mount() 2022-11-30 12:47:05 +02:00
utsname.c
utsname_sysctl.c
watch_queue.c watch_queue: Fix missing locking in add_watch_to_object() 2022-08-26 13:59:33 +02:00
watchdog.c watchdog: move watchdog sysctl interface to watchdog.c 2023-03-24 11:18:31 -04:00
watchdog_hld.c printk: Bring back the RT bits. 2023-02-27 13:46:09 +01:00
workqueue.c workqueue: Avoid a false warning in unbind_workers() 2022-11-04 13:14:41 -04:00
workqueue_internal.h