]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf: Change ldconfig auxcache magic number (bug 32231)
authorFlorian Weimer <fweimer@redhat.com>
Mon, 28 Oct 2024 13:45:30 +0000 (14:45 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 29 Oct 2024 09:00:32 +0000 (10:00 +0100)
In commit c628c2296392ed3bf2cb8d8470668e64fe53389f (elf: Remove
ldconfig kernel version check), the layout of auxcache entries
changed because the osversion field was removed from
struct aux_cache_file_entry.  However, AUX_CACHEMAGIC was not
changed, so existing files are still used, potentially leading
to unintended ldconfig behavior.  This commit changes AUX_CACHEMAGIC,
so that the file is regenerated.

Reported-by: DJ Delorie <dj@redhat.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
(cherry picked from commit 0a536f6e2f76e3ef581b3fd9af1e5cf4ddc7a5a2)

NEWS
elf/cache.c

diff --git a/NEWS b/NEWS
index a2adce11ffe18e963b5dec105d1531c86941d104..8feb39f1ba253cef87419ff6b0fdb780fbdf459b 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -59,6 +59,7 @@ The following bugs are resolved with this release:
   [31968] mremap implementation in C does not handle arguments correctly
   [32052] Name space violation in fortify wrappers
   [32137] libio: Attempt wide backup free only for non-legacy code
+  [32231] elf: Change ldconfig auxcache magic number
 \f
 Version 2.38
 
index 8149f889bab9f9cb32a50e349991ba821e4db0dd..5de69ec4ca4366abb8196a4ae0231cb20271d203 100644 (file)
@@ -823,7 +823,7 @@ struct aux_cache_entry
   struct aux_cache_entry *next;
 };
 
-#define AUX_CACHEMAGIC         "glibc-ld.so.auxcache-1.0"
+#define AUX_CACHEMAGIC         "glibc-ld.so.auxcache-2.0"
 
 struct aux_cache_file_entry
 {