arch_ptrace...permit_entry(9)
β¨ arch_ptrace...permit_entry β¨
okay bestie, welcome to the Kernel API Manual π this one's a lil' kernel hook page and it's honestly shorter than my attention span, so let's go π«Ά
πΈ NAME πΈ
arch_ptrace_report_syscall_permit_entry β the architecture-specific wrapper for ptrace_report_syscall_permit_entry() π
like, it's the "your CPU family gets to have opinions" version of that function, iykyk.
π¦ SYNOPSIS π¦
bool arch_ptrace_report_syscall_permit_entry (struct pt_regs *regs );
that's it. one function, returns a bool, takes one pointer. she's lowkey minimal π
π ARGUMENTS π
regsβ pointer to the register state at syscall entry. literally the snapshot of where the syscall walked in at π
β DESCRIPTION β
so this function gets invoked from syscall_trace_enter, and its whole job is to wrap ptrace_report_syscall_permit_entry β¨
and why, you ask? because it lets each architecture have its own ptrace_report_syscall_permit_entry implementation. main character energy for every arch, no cap π₯
and if the architecture doesn't define one? no stress π§ it just falls back to ptrace_report_syscall_permit_entry. yes, the original says "falls back to to" with the double to and I'm keeping it because I respect the source text π (that's a faithful reproduction, not me being sloppy, fr fr)
π SEE ALSO π
- Kernel file
./include/linux/entry-common.hπ syscall_enter_from_user_mode_work(9)enter_from_user_mode_randomize_stack(9)syscall_enter_from_user_mode_randomize_stack(9)arch_ptrace_report_syscall_exit(9)syscall_exit_work(9)syscall_exit_to_user_mode_work(9)syscall_exit_to_user_mode(9)
(and yes, enter_from_user_mode_randomize_stack(9) and syscall_enter_from_user_mode_randomize_stack(9) sit next to each other and they're both iconic and both staying π
not me almost merging them, absolutely not)
aaaaand that's the whole page, bestie π¦π this gem lives in the source ./include/linux, dated October 2026, and it's filed under arch_ptrace...permit_entry(9) in the kernel docs β¨ go forth and trace those syscalls, you've got this ππΈπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms