aboutsummaryrefslogtreecommitdiffstats
path: root/chapter01
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@mengyan1223.wang>2021-07-28 01:18:37 +0800
committerXi Ruoyao <xry111@mengyan1223.wang>2021-07-28 01:27:33 +0800
commitd1592b9d92d8e47dbcd0c7db014d119c3793a7dd (patch)
treeac1392cc175bc0a35ea47418525d8f821b69523b /chapter01
parent5287d521e911ff762ec8b4445cecfbacb042e6c8 (diff)
stripping: add libnss_*.so* into online_usrlib
Glibc loads these "NSS modules" (see man 5 nss) on startup. This is implemented with something like dlopen() so "ldd" won't show them up. So they should be considered "online" here. Without this addition, overwriting libnss_files-2.33.so reproducibly triggers a crash during jhalfs runs where stripping is enabled. In manual builds, it reproducibly triggers a crash exiting from chroot. After this change I reran stripping 5 times and there was no crash observed.
Diffstat (limited to 'chapter01')
-rw-r--r--chapter01/changelog.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index 1b17760f2..ab4b04b7e 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -44,6 +44,16 @@
-->
<listitem>
+ <para>2021-07-27</para>
+ <itemizedlist>
+ <listitem>
+ <para>[xry111] - Use workaround for Glibc NSS modules during
+ stripping, to prevent bash from crash.</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+
+ <listitem>
<para>2021-07-26</para>
<itemizedlist>
<listitem>