Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Impala 2.7.0
-
None
Description
Breakpad uses .note.gnu.build-id to identify binaries and falls back to hashing the first page of the text section.
src/common/linux/file_id.cc#148
bool FileID::ElfFileIdentifierFromMappedFile(const void* base, wasteful_vector<uint8_t>& identifier) { // Look for a build id note first. if (FindElfBuildIDNote(base, identifier)) return true; // Fall back on hashing the first page of the text section. return HashElfTextSection(base, identifier); }
The latter can lead to collisions on large binaries like impalad. Therefore we should make sure we have .note.gnu.build-id in all binaries. More information can be found here: https://fedoraproject.org/wiki/Releases/FeatureBuildId