Centos-kernel-stream-9/kernel
Jaroslav Kysela fd1bc08d50 ptrace: Convert ptrace_attach() to use lock guards
JIRA: https://issues.redhat.com/browse/RHEL-27515

commit 5431fdd2c181dd2eac218e45b44deb2925fa48f0
Author: Peter Zijlstra <peterz@infradead.org>
Date: Sun Sep 17 13:24:21 2023 +0200

    ptrace: Convert ptrace_attach() to use lock guards

    Created as testing for the conditional guard infrastructure.
    Specifically this makes use of the following form:

      scoped_cond_guard (mutex_intr, return -ERESTARTNOINTR,
    		     &task->signal->cred_guard_mutex) {
        ...
      }
      ...
      return 0;

    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: Oleg Nesterov <oleg@redhat.com>
    Link: https://lkml.kernel.org/r/20231102110706.568467727%40infradead.org

Signed-off-by: Jaroslav Kysela <jkysela@redhat.com>
2024-07-08 20:54:16 +02:00
..
bpf Merge: bpf: backports from upstream [phase 1] 2024-06-27 14:03:36 +00:00
cgroup cgroup/cpuset: Make cpuset.cpus.exclusive independent of cpuset.cpus 2024-06-21 09:53:50 -04:00
configs mm/slob: remove CONFIG_SLOB 2024-04-30 07:00:17 -04:00
debug module: Move kdb module related code out of main kdb code 2024-06-17 14:17:13 -04:00
dma swiotlb: initialise restricted pool list_head when SWIOTLB_DYNAMIC=y 2024-05-13 08:19:53 -07:00
entry entry: kmsan: introduce kmsan_unpoison_entry_regs() 2023-10-20 06:14:42 -04:00
events perf/bpf: Fix duplicate type check 2024-06-25 10:47:19 +02:00
futex Revert "Revert "Merge: cgroup: Backport upstream cgroup commits up to v6.8"" 2024-05-18 21:38:20 -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 kallsyms: Delete an unused parameter related to {module_}kallsyms_on_each_symbol() 2024-06-17 14:17:23 -04:00
locking locktorture: Increase Hamming distance between call_rcu_chain and rcu_call_chains 2024-05-22 19:52:16 -04:00
module modules: wait do_free_init correctly 2024-06-17 14:17:30 -04:00
power Merge: cgroup/cpuset: Relax restrictions on usage of cpuset.cpus.exclusive 2024-06-27 13:57:22 +00:00
printk printk: nbcon: move locked_port flag to struct uart_port 2024-05-09 11:26:27 -04:00
rcu rcu: Restrict access to RCU CPU stall notifiers 2024-05-31 10:56:18 -04:00
sched Merge: sched/topology: Optimize topology_span_sane() 2024-06-18 13:41:06 +00:00
time tick/nohz: unexport __init-annotated tick_nohz_full_setup() 2024-06-17 14:17:28 -04:00
trace Revert BPF token-related functionality 2024-06-25 11:07:29 +02:00
.gitignore
Kconfig.freezer
Kconfig.hz
Kconfig.locks
Kconfig.preempt
Makefile kallsyms: move kallsyms_show_value() out of kallsyms.c 2024-06-17 14:17:27 -04:00
acct.c acct: use VMA iterator instead of linked list 2024-04-01 11:19:51 -04:00
async.c async: Use a dedicated unbound workqueue with raised min_active 2024-05-03 13:39:32 -04:00
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 backtracetest: Convert from tasklet to BH workqueue 2024-06-18 17:26:55 -03:00
bounds.c bounds: Use the right number of bits for power-of-two CONFIG_NR_CPUS 2024-05-20 16:15:24 -04:00
capability.c
cfi.c cfi: Remove CONFIG_CFI_CLANG_SHADOW 2024-06-17 14:17:20 -04:00
compat.c
configs.c
context_tracking.c context_tracking: Fix noinstr vs KASAN 2024-04-29 14:32:59 -04:00
cpu.c cgroup/cpuset: Make cpuset hotplug processing synchronous 2024-06-21 09:53:49 -04:00
cpu_pm.c
crash_core.c Merge: Rebase kexec/kdump to upstream kernel v6.5 2024-05-27 13:52:25 +00:00
crash_dump.c
cred.c
delayacct.c
dma.c
exec_domain.c
exit.c Revert "Revert "Merge: cgroup: Backport upstream cgroup commits up to v6.8"" 2024-05-18 21:38:20 -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 Merge: fork: defer linking file vma until vma is fully initialized 2024-06-17 12:51:50 +00:00
freezer.c Revert "Revert "Merge: cgroup: Backport upstream cgroup commits up to v6.8"" 2024-05-18 21:38:20 -04:00
gen_kheaders.sh
groups.c
hung_task.c Revert "Revert "Merge: cgroup: Backport upstream cgroup commits up to v6.8"" 2024-05-18 21:38:20 -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: Fix kallsyms_selftest failure 2024-06-17 14:17:28 -04:00
kallsyms_internal.h kallsyms: Reduce the memory occupied by kallsyms_seqs_of_names[] 2024-06-17 14:17:21 -04:00
kallsyms_selftest.c kallsyms: Fix kallsyms_selftest failure 2024-06-17 14:17:28 -04:00
kallsyms_selftest.h kallsyms: Add self-test facility 2024-06-17 14:17:22 -04:00
kcmp.c
kcov.c mm: replace vma->vm_flags direct modifications with modifier calls 2024-04-29 14:33:17 -04:00
kexec.c kexec: introduce sysctl parameters kexec_load_limit_* 2024-05-15 10:32:32 +08:00
kexec_core.c kexec: enable kexec_crash_size to support two crash kernel regions 2024-05-15 10:32:32 +08:00
kexec_elf.c
kexec_file.c kexec: support purgatories with .text.hot sections 2024-05-15 10:32:32 +08:00
kexec_internal.h
kheaders.c
kprobes.c x86/kprobes: Fix arch_check_optimized_kprobe check within optimized_kprobe range 2024-03-20 09:42:59 -04:00
ksyms_common.c kallsyms: make kallsyms_show_value() as generic function 2024-06-17 14:17:28 -04:00
ksysfs.c
kthread.c treewide: Drop WARN_ON_FUNCTION_MISMATCH 2024-05-03 13:39:22 -04:00
latencytop.c
module_signature.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 crypto: pcrypt - Fix hungtask for PADATA_RESET 2024-05-29 13:20:49 +08:00
panic.c Revert "kernel/panic.c: Move the location of bust_spinlocks to prevent hanging." 2024-06-21 11:17:34 -04:00
params.c params: Introduce the param_unknown_fn type 2024-06-17 14:17:29 -04:00
pid.c memfd: replace ratcheting feature from vm.memfd_noexec with hierarchy 2024-06-10 12:10:40 -04:00
pid_namespace.c memfd: replace ratcheting feature from vm.memfd_noexec with hierarchy 2024-06-10 12:10:40 -04:00
pid_sysctl.h memfd: replace ratcheting feature from vm.memfd_noexec with hierarchy 2024-06-10 12:10:40 -04:00
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 ptrace: Convert ptrace_attach() to use lock guards 2024-07-08 20:54:16 +02:00
range.c
reboot.c Revert "printk: Bring back the RT bits." 2024-05-09 11:24:08 -04:00
regset.c
relay.c mm: replace vma->vm_flags direct modifications with modifier calls 2024-04-29 14:33:17 -04:00
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 redhat: deprecate bnx2xx drivers in rhel-9.5 2024-06-21 11:38:19 -04:00
rh_shadowman.c
rseq.c
scftorture.c
scs.c
seccomp.c
signal.c Revert "Revert "Merge: cgroup: Backport upstream cgroup commits up to v6.8"" 2024-05-18 21:38:20 -04:00
smp.c trace,smp: Add tracepoints for scheduling remotelly called functions 2024-06-17 12:58:33 -03:00
smpboot.c cpu/hotplug: Remove unused state functions 2024-02-06 10:17:13 -05:00
smpboot.h
softirq.c Merge: workqueue: Backport workqueue commits to v6.9 2024-06-13 13:07:43 +00:00
stackleak.c
stacktrace.c
static_call.c
static_call_inline.c
stop_machine.c
sys.c mm: add a NO_INHERIT flag to the PR_SET_MDWE prctl 2024-04-30 17:51:24 -06:00
sys_ni.c futex: Add sys_futex_requeue() 2024-03-27 10:06:08 -04:00
sysctl-test.c
sysctl.c mm: page_alloc: move sysctls into it own fils 2024-06-07 13:14:12 -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 torture: Print out torture module parameters 2024-05-22 19:52:15 -04:00
tracepoint.c
tsacct.c
ucount.c
uid16.c
uid16.h
umh.c Revert "Revert "Merge: cgroup: Backport upstream cgroup commits up to v6.8"" 2024-05-18 21:38:20 -04:00
up.c
user-return-notifier.c
user.c
user_namespace.c
usermode_driver.c
utsname.c
utsname_sysctl.c
watch_queue.c kernel: watch_queue: copy user-array safely 2024-05-23 05:14:57 -04:00
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: Drain BH work items on hot-unplugged CPUs 2024-05-03 13:39:33 -04:00
workqueue_internal.h workqueue: Drop the special locking rule for worker->flags and worker_pool->flags 2024-05-03 13:39:25 -04:00