glibc patch causes crash on failure to find path to executable

OpenSubmitted by Ivan Kozlov.
Details
2 participants
  • Ivan Kozlov
  • Ludovic Courtès
Owner
unassigned
Severity
important
I
I
Ivan Kozlov wrote on 19 Dec 2021 23:14
(address . bug-guix@gnu.org)
84771639950622@mail.yandex.ru
glibc-dl-cache.patch causes segmentation fault when _dl_get_origin fails (which should be harmless unless there is $ORIGIN in RUNPATH). I found this when running a dynamically linked executable as ‘init’, before /proc was mounted. There needs to be an origin != (char *)-1 check.
L
L
Ludovic Courtès wrote on 20 Dec 2021 22:38
(name . Ivan Kozlov)(address . kanichos@yandex.ru)(address . 52671@debbugs.gnu.org)
87y24fdkj4.fsf@gnu.org
Hi,

Ivan Kozlov <kanichos@yandex.ru> skribis:

Toggle quote (2 lines)
> glibc-dl-cache.patch causes segmentation fault when _dl_get_origin fails (which should be harmless unless there is $ORIGIN in RUNPATH). I found this when running a dynamically linked executable as ‘init’, before /proc was mounted. There needs to be an origin != (char *)-1 check.

Ouch. Would you like to send a patch against glibc-dl-cache.patch?

Thanks,
Ludo’.
L
L
Ludovic Courtès wrote on 20 Dec 2021 22:37
control message for bug #52671
(address . control@debbugs.gnu.org)
8735mnez4a.fsf@gnu.org
severity 52671 important
quit
I
I
Ivan Kozlov wrote on 12 Jan 23:04 +0100
Re:bug#52671: glibc patch causes crash on failure to find path to executable
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 52671@debbugs.gnu.org)
3379791642025074@iva1-e3ac85a63903.qloud-c.yandex.net
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send email to 52671@debbugs.gnu.org