GNU bug report logs - #52671
glibc patch causes crash on failure to find path to executable

Previous Next

Package: guix;

Reported by: Ivan Kozlov <kanichos <at> yandex.ru>

Date: Sun, 19 Dec 2021 22:15:01 UTC

Severity: important

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 52671 in the body.
You can then email your comments to 52671 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#52671; Package guix. (Sun, 19 Dec 2021 22:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ivan Kozlov <kanichos <at> yandex.ru>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 19 Dec 2021 22:15:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ivan Kozlov <kanichos <at> yandex.ru>
To: bug-guix <at> gnu.org
Subject: glibc patch causes crash on failure to find path to executable
Date: Mon, 20 Dec 2021 01:14:38 +0300
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.




Information forwarded to bug-guix <at> gnu.org:
bug#52671; Package guix. (Mon, 20 Dec 2021 21:39:01 GMT) Full text and rfc822 format available.

Message #8 received at 52671 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Ivan Kozlov <kanichos <at> yandex.ru>
Cc: 52671 <at> debbugs.gnu.org
Subject: Re: bug#52671: glibc patch causes crash on failure to find path to
 executable
Date: Mon, 20 Dec 2021 22:38:23 +0100
Hi,

Ivan Kozlov <kanichos <at> yandex.ru> skribis:

> 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’.




Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 20 Dec 2021 21:39:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#52671; Package guix. (Wed, 12 Jan 2022 22:05:01 GMT) Full text and rfc822 format available.

Message #13 received at 52671 <at> debbugs.gnu.org (full text, mbox):

From: Ivan Kozlov <kanichos <at> yandex.ru>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 52671 <at> debbugs.gnu.org
Subject: Re:bug#52671: glibc patch causes crash on failure to find path to
 executable
Date: Thu, 13 Jan 2022 01:04:34 +0300
Just in case, http://debbugs.gnu.org/cgi/bugreport.cgi?bug=52693 addresses this.




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Sun, 29 Jan 2023 23:35:01 GMT) Full text and rfc822 format available.

Notification sent to Ivan Kozlov <kanichos <at> yandex.ru>:
bug acknowledged by developer. (Sun, 29 Jan 2023 23:35:02 GMT) Full text and rfc822 format available.

Message #18 received at 52671-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Ivan Kozlov <kanichos <at> yandex.ru>
Cc: 52693-done <at> debbugs.gnu.org, 52671-done <at> debbugs.gnu.org
Subject: Re: bug#52693: [PATCH] gnu: glibc: Handle failure to find $ORIGIN.
Date: Mon, 30 Jan 2023 00:34:40 +0100
Hi Ivan,

Ivan Kozlov <kanichos <at> yandex.ru> skribis:

> Fixes <https://issues.guix.gnu.org/52671>.
>
> * gnu/packages/patches/glibc-dl-cache.patch: Check pointer returned by '_dl_get_origin' for failure indication.

Somehow we forgot about this patch for a whole year, and it turns out I
stumbled upon the bug again just hours ago¹.

Now pushed to ‘core-updates’ as
edb8c09addd186d9538d43b12af74d6c7aeea082.

Thanks again, and apologies for the delay!

Ludo’.

¹ https://issues.guix.gnu.org/61156




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 27 Feb 2023 12:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 58 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.