reverie-rs / reverie

trace and intercept linux syscalls.
Other
14 stars 5 forks source link

memory corruption due to glibc dlmopen bugs #56

Open wangbj opened 5 years ago

wangbj commented 5 years ago

Even after patching get_nprocs in glibc (see commit 077f06a408739eabc4be8a2d7de1772c95ea4e24). It is still possible to get memory corruptions caused by mis-matching malloc/free from different linker namespaces. It should be possible to patch glibc, then again it might worth making reverie running tracee with different glibc versions other than system glibc. The difficult part is how can we resolve ld-linux.so to the new glibc as easy as possible.

glibc bugzilla links:

Bug 24776 Bug 24773

wangbj commented 4 years ago

reproducer: https://github.com/wangbj/dlns-test