Linux error ETXTBSY for mapped .so files
https://nullprogram.com/blog/2014/12/23/
https://lwn.net/Articles/866493/
https://tritium.legal/blog/update
https://news.ycombinator.com/item?id=45555749
https://unix.stackexchange.com/questions/74165/how-to-upgrade-shared-library-without-crash
!!!
https://samuel.karp.dev/blog/2019/04/a-runc-container-escape/
--- habr exe
https://habr.com/ru/articles/1036444/
А как загружаемая библиотека (libXXX.so) попадает в память? И почему программу нельзя перезаписать "cp prog.new prog" - будет ошибка ETXTBSY, а библиотеку .so можно, но даже если новая и старая версии библиотеки совпадают, всё падает?
--- manydl
manydl.c is a program to show that Linux is capable of dlopen-ing many plugins (typically, several hundred thousands or many millions). It works by generating some pseudo-random C file, compiling it into a plugin, which is later dlopen-ed, and repeat.
Комментариев нет:
Отправить комментарий