Thread #108613877
File: 1768315495791687.png (29.6 KB)
29.6 KB PNG
previous: >>108609319#define __NR_prctl 157
#define __NR_arch_prctl 158
https://man7.org/linux/man-pages/man2/prctl.2.html
https://man7.org/linux/man-pages/man2/arch_prctl.2.html
tl;dr:
manage your process state
this is one of my all-time favorite syscalls. it's SO powerful. if you want to do anything even moderately interesting to your process, then you are beholden to this syscall. i might honestly just try to keep this thread bumped until the weekend and then answer questions about specific arguments, if people have them. you're definitely going to want to look at the "see also" section for this one. it's basically dozens of syscalls bundled into one
have you ever used any of these features, anon? in what circumstances?
relevant resources:man manman syscalls
https://man7.org/linux/man-pages/
https://linux.die.net/man/
https://elixir.bootlin.com/linux/
https://elixir.bootlin.com/musl/
https://elixir.bootlin.com/glibc/
16 RepliesView Thread
>>
>>
>>
>>
>>
>>
>>108614531
>>108614562
>>108616136
yaaayyyyyy >w< it's a party!!!
>>
>>
>>
>>
>>108617744
https://elixir.bootlin.com/musl/v1.2.6/source/arch/x86_64/syscall_arch .h
like so
>>
What's the point of arch_prctl when prctl exists and is already used for arch-specific stuff?
>>108617744
Like so: >>108570543
>>
>>
>>108617638
>but theyre blue instead of green
https://www.youtube.com/watch?v=68ugkg9RePc
>>
>>