Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-62494

Research effect of gnu-unique flags on mongo_csfle.so

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Security 2022-01-24

      • build csfle without any gnu-unique flags, with the v3 GCC and the v4 gcc. Does the resulting binary contain any STB_GNU_UNIQUE symbols? If so, are they from the mongodb/third_party code, or are they from the toolchain C++ runtime?
      • If it does contain them from mongo/third_party, does building our sources with fno-gnu-unique eliminate them? Does linking with -Wl,-no-gnu-unique eliminate them?
      • If it does contain them from the toolchain C++ runtime, can Wl,-no-gnu-unique eliminate them by downgrading them from STB_GNU_UNIQUE to something else?
      • If we cannot eliminate them easily (e.g. the toolchain ones persist despite Wl,-no-gnu-unique, are there issues when dlopen’ing the csfle.so library in the context of another library that has STB_GNU_UNIQUE symbols that should be resolved to, say, the system C++ runtime?

      The above questions should be answered by using tools like nm and readelf for the first few, and LD_DEBUG for the latter.

            Assignee:
            sergey.galtsev@mongodb.com Sergey Galtsev (Inactive)
            Reporter:
            sergey.galtsev@mongodb.com Sergey Galtsev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: