[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1650657951425.jpg (139 KB, 1200x900)
139 KB
139 KB JPG
previous: >>108039753

#define __NR_shmctl                31
#define __NR_shmdt 67

https://man7.org/linux/man-pages/man2/shmctl.2.html
https://man7.org/linux/man-pages/man2/shmdt.2.html

our first day of combined syscalls (aside from the first day)! we'll see how this goes. but hopefully this will keep any interest a little more concentrated, and will let us skip the boring days somewhat.
the most interesting section of the manpage, at least to me personally, is this:
>The caller must ensure that a segment is eventually destroyed; otherwise its pages that were faulted in will remain in memory or swap.
talk about a nightmare leak scenario. if i'm reading this correctly (and please correct me if i'm wrong), it's totally possible to leak kernel resources with this. so good luck to those who never reboot their machines...
that seemed a bit strange to me, so i went and looked it up, and it looks like there's a configurable answer: https://docs.kernel.org/admin-guide/sysctl/kernel.html#shm-rmid-forced
so that's good, at least

relevant resources:
man man

man 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/
>>
This is very interesting, thank you OP.
>>
>>108049573
>depending on what libraries you're working with
makes sense, I use libraries quite sparingly. Which ones are you thinking of?
>31 and 67
I sure hope you've started making a master document of previous syscalls;)

but unfortunately as yesterday, I have nothing to add.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.