Mai Zheng

60 papers A* 3A 8B 3Misc 4Journal 21Unranked 21
YearRankTypeTitle / Venue / Authors
2025 J jnl
CoRR
Tabassum Mahmud, Om Rameshwar Gatla, Duo Zhang, Carson Love, Ryan Bumann, Varun S. Girimaji, Mai Zheng
2025 J jnl
ACM Trans. Comput. Syst.
Tabassum Mahmud, Om Rameshwar Gatla, Duo Zhang, Carson Love, Ryan Bumann, Varun S. Girimaji, Mai Zheng
2025 A conf
IPDPS
Saisha Kamat, Mai Zheng, Bo Fang, Dong Dai
2025 J jnl
Comput. Networks
Taimoor Ul Islam, Joshua Ofori Boateng, Md Nadim, Guoying Zu, Mukaram Shahid, Xun Li, Tianyi Zhang, Salil Reddy, Wei Xu, Ataberk Atalar, Vincent Lee, Yung-Fu Chen, Evan Gossling, Elisabeth Permatasari, Christ Somiah, Owen Perrin, Zhibo Meng, Reshal Afzal, Sarath Babu, Mohammed Soliman, Ali Hussain, Daji Qiao, Mai Zheng, Ozdal Boyraz, Yong Guan, Anish Arora, Mohamed Y. Selim, Arsalan Ahmad, Myra B. Cohen, Mike Luby, Ranveer Chandra, James Gross, Kate Keahey, Hongwei Zhang
2025 J jnl
CoRR
Mai Zheng, Duo Zhang, Ahmed Dajani
2025 J jnl
CoRR
Chao Shi, Anthony Manschula, Tabassum Mahmud, Zeren Yang, Mai Zheng, Yong Chen, Jim Wayda, Matthew Wolf, Byungwoo Bang
2025 J jnl
CoRR
Qi Lin, Zhenyu Zhang, Viraj Thakkar, Zhenjie Sun, Mai Zheng, Zhichao Cao
2024 B conf
ICNP
Taimoor Ul Islam, Joshua Ofori Boateng, Md Nadim, Guoying Zu, Mukaram Shahid, Xun Li, Tianyi Zhang, Salil Reddy, Wei Xu, Ataberk Atalar, Vincent Lee, Evan Gossling, Elisabeth Permatasari, Zhibo Meng, Sarath Babu, Mohammed Soliman, Ali Hussain, Daji Qiao, Mai Zheng, Ozdal Boyraz, Yong Guan, Anish Arora, Mohamed Y. Selim, Arsalan Ahmad, Myra B. Cohen, Hongwei Zhang
2024 J jnl
CoRR
Taimoor Ul Islam, Joshua Ofori Boateng, Md Nadim, Guoying Zu, Mukaram Shahid, Xun Li, Tianyi Zhang, Salil Reddy, Wei Xu, Ataberk Atalar, Vincent Lee, Yung-Fu Chen, Evan Gosling, Elisabeth Permatasari, Christ Somiah, Zhibo Meng, Sarath Babu, Mohammed Soliman, Ali Hussain, Daji Qiao, Mai Zheng, Ozdal Boyraz, Yong Guan, Anish Arora, Mohamed Y. Selim, Arsalan Ahmad, Myra B. Cohen, Mike Luby, Ranveer Chandra, James Gross, Hongwei Zhang
2024 J jnl
IEEE Trans. Parallel Distributed Syst.
Runzhou Han, Mai Zheng, Suren Byna, Houjun Tang, Bin Dong, Dong Dai, Yong Chen, Dongkyun Kim, Joseph Hassoun, David Thorsley
2024 conf
HotStorage
Runzhou Han, Chao Shi, Tabassum Mahmud, Zeren Yang, Vladislav Esaulov, Lipeng Wan, Yong Chen, Jim Wayda, Matthew Wolf, Mai Zheng
2023 A* conf
MobiCom
Taimoor Ul Islam, Joshua Ofori Boateng, Guoying Zu, Mukaram Shahid, Md Nadim, Wei Xu, Tianyi Zhang, Salil Reddy, Xun Li, Ataberk Atalar, Yung-Fu Chen, Sarath Babu, Hongwei Zhang, Daji Qiao, Mai Zheng, Yong Guan, Ozdal Boyraz, Anish Arora, Mohamed Y. Selim, Myra B. Cohen
2023 A conf
FAST
Tabassum Mahmud, Om Rameshwar Gatla, Duo Zhang, Carson Love, Ryan Bumann, Mai Zheng
2023 J jnl
IEEE Trans. Computers
Jiang Zhou, Yong Chen, Mai Zheng, Weiping Wang
2023 A conf
IPDPS
Di Zhang, Chris Egersdoerfer, Tabassum Mahmud, Mai Zheng, Dong Dai
2023 A conf
IPDPS
Saisha Kamat, Abdullah Al Raqibul Islam, Mai Zheng, Dong Dai
2023 J jnl
CoRR
Runzhou Han, Mai Zheng, Suren Byna, Houjun Tang, Bin Dong, Dong Dai, Yong Chen, Dongkyun Kim, Joseph Hassoun, David Thorsley, Matthew Wolf
2023 J jnl
CoRR
Om Rameshwar Gatla, Duo Zhang, Wei Xu, Mai Zheng
2023 J jnl
ACM Trans. Storage
Om Rameshwar Gatla, Duo Zhang, Wei Xu, Mai Zheng
2023 conf
ASPLOS (4)
Benjamin Carver, Runzhou Han, Jingyuan Zhang, Mai Zheng, Yue Cheng
2023 J jnl
CoRR
Benjamin Carver, Runzhou Han, Jingyuan Zhang, Mai Zheng, Yue Cheng
2022 J jnl
ACM Trans. Storage
Runzhou Han, Om Rameshwar Gatla, Mai Zheng, Jinrui Cao, Di Zhang, Dong Dai, Yong Chen, Jonathan E. Cook
2022 J jnl
Concurr. Comput. Pract. Exp.
Chunxue Zuo, Fang Wang, Mai Zheng, Yuchong Hu, Dan Feng
2022 conf
NAS
Duo Zhang, Tabassum Mahmud, Om Rameshwar Gatla, Runzhou Han, Yong Chen, Mai Zheng
2022 A conf
HPDC
Runzhou Han, Suren Byna, Houjun Tang, Bin Dong, Mai Zheng
2022 conf
HotStorage
Tabassum Mahmud, Duo Zhang, Om Rameshwar Gatla, Mai Zheng
2022 conf
WiNTECH
Mukaram Shahid, Sarath Babu, Hongwei Zhang, Daji Qiao, Yong Guan, Joshua Ofori Boateng, Taimoor Ul Islam, Guoying Zu, Ahmed E. Kamal, Mai Zheng
2021 Misc conf
SYSTOR
Duo Zhang, Om Rameshwar Gatla, Wei Xu, Mai Zheng
2021 conf
WiNTECH
Hongwei Zhang, Yong Guan, Ahmed E. Kamal, Daji Qiao, Mai Zheng, Anish Arora, Ozdal Boyraz, Brian Cox, Thomas Daniels, Matthew J. Darr, Doug Jacobson, Ashfaq Khokhar, Sang Wu Kim, James Koltes, Jia Liu, Mike Luby, Larysa Nadolny, Joshua M. Peschel, Patrick S. Schnable, Anuj Sharma, Arun Somani, Lie Tang
2021 conf
HotStorage
Di Zhang, Dong Dai, Runzhou Han, Mai Zheng
2020 conf
PDSW@SC
Runzhou Han, Duo Zhang, Mai Zheng
2020 J jnl
CoRR
Duo Zhang, Om Rameshwar Gatla, Runzhou Han, Mai Zheng
2020 conf
HotStorage
Duo Zhang, Om Rameshwar Gatla, Runzhou Han, Mai Zheng
2019 Misc conf
MSST
Dong Dai, Om Rameshwar Gatla, Mai Zheng
2019 conf
USENIX ATC
Erci Xu, Mai Zheng, Feng Qin, Yikang Xu, Jiesheng Wu
2019 J jnl
CoRR
Viacheslav Dubeyko, Om Rameshwar Gatla, Mai Zheng
2018 conf
PEARC
Yehia Arafa, Atanu Barai, Mai Zheng, Abdel-Hameed A. Badawy
2018 conf
HPEC
Yehia Arafa, Atanu Barai, Mai Zheng, Abdel-Hameed A. Badawy
2018 A conf
ICS
Jinrui Cao, Om Rameshwar Gatla, Mai Zheng, Dong Dai, Vidya Eswarappa, Yan Mu, Yong Chen
2018 A conf
FAST
Om Rameshwar Gatla, Muhammad Hameed, Mai Zheng, Viacheslav Dubeyko, Adam Manzanares, Filip Blagojevic, Cyril Guyot, Robert Mateescu
2018 J jnl
ACM Trans. Storage
Om Rameshwar Gatla, Mai Zheng, Muhammad Hameed, Viacheslav Dubeyko, Adam Manzanares, Filip Blagojevic, Cyril Guyot, Robert Mateescu
2018 conf
PDSW-DISCS@SC
Erci Xu, Mai Zheng, Feng Qin, Jiesheng Wu, Yikang Xu
2017 Misc conf
ICNC
Yiliang Shi, Danny V. Murillo, Simeng Wang, Jinrui Cao, Mai Zheng
2017 J jnl
ACM Trans. Comput. Syst.
Mai Zheng, Joseph A. Tucek, Feng Qin, Mark Lillibridge, Bill W. Zhao, Elizabeth S. Yang
2017 conf
ICAC
Li Li, Yunhao Bai, Xiaorui Wang, Mai Zheng, Feng Qin
2017 conf
IGSC
Li Li, Yunhao Bai, Xiaorui Wang, Mai Zheng, Feng Qin
2017 conf
HotStorage
Om Rameshwar Gatla, Mai Zheng
2017 conf
IGSC
Li Li, Bruce Beitman, Mai Zheng, Xiaorui Wang, Feng Qin
2016 conf
PDSW-DISCS@SC
Jinrui Cao, Simeng Wang, Dong Dai, Mai Zheng, Yong Chen
2016 J jnl
Knowl. Based Syst.
Yongsheng Hao, Lina Wang, Mai Zheng
2016 conf
NAS
Simeng Wang, Jinrui Cao, Danny V. Murillo, Yiliang Shi, Mai Zheng
2014 J jnl
IEEE Trans. Parallel Distributed Syst.
Mai Zheng, Vignesh T. Ravi, Feng Qin, Gagan Agrawal
2014 A* conf
OSDI
Mai Zheng, Joseph A. Tucek, Dachuan Huang, Feng Qin, Mark Lillibridge, Elizabeth S. Yang, Bill W. Zhao, Shashank Singh
2013 B conf
MASCOTS
Dachuan Huang, Xuechen Zhang, Wei Shi, Mai Zheng, Song Jiang, Feng Qin
2013 A conf
FAST
Mai Zheng, Joseph A. Tucek, Feng Qin, Mark Lillibridge
2012 Misc conf
HiPC
Mai Zheng, Vignesh T. Ravi, Wenjing Ma, Feng Qin, Gagan Agrawal
2012 conf
WCRE
Dawei Qi, William N. Sumner, Feng Qin, Mai Zheng, Xiangyu Zhang, Abhik Roychoudhury
2011 A* conf
ASPLOS
Qi Gao, Wenbin Zhang, Zhezhe Chen, Mai Zheng, Feng Qin
2011 B conf
PPoPP
Mai Zheng, Vignesh T. Ravi, Feng Qin, Gagan Agrawal
2008 conf
ISVC (2)
Mai Zheng, Xiaolin Chen, Li Guo
tests/unit/conftest.py
← Index tests/unit/conftest.py python
"""
Unit test configuration.

Replaces the redb.extractors package with a minimal stub so that
``from redb.extractors.database_exporters import ...`` works without
pulling in the heavy __init__.py import chain (pefile, elftools,
signify, magic, etc.).

Also stubs out redb.settings so that Elasticsearch / ClickHouse
clients are never actually created during unit tests.

Additionally installs binaryninja stubs for decompiler unit tests.

Stubs heavy third-party packages (pefile, magic, psutil, etc.) so that
redb.workers, redb.queries, redb.ingestor, and redb.s3_utils can all
be imported and patched in unit tests without requiring the real packages.
"""
import sys
import types
from pathlib import Path
from unittest.mock import MagicMock

# ---------------------------------------------------------------------------
# 0. Install binaryninja stubs FIRST — must happen before any decompiler
#    module is imported (triggered by __init__.py chain).
# ---------------------------------------------------------------------------
from tests.unit.conftest_binja_stubs import install_binja_stubs as _install_binja_stubs
_install_binja_stubs()

# ---------------------------------------------------------------------------
# 1. Stub external packages required by database_exporters.py itself,
#    the decompiler chain, and the workers/ingestor modules.
# ---------------------------------------------------------------------------
_heavy_deps = [
    # Database / networking
    "elasticsearch", "clickhouse_connect", "dotenv",
    # Binary analysis — top-level packages
    "pefile", "magic", "machofile",
    # Archive handling
    "py7zr", "pyzipper",
    # File type detection
    "magika",
    # System monitoring
    "psutil",
    # S3 / MinIO (submodule paths needed for `from minio.error import S3Error`)
    "minio", "minio.error",
    # YARA
    "yara_x",
    # Binary parsing — elftools tree
    "elftools", "elftools.elf", "elftools.elf.elffile",
    "elftools.common", "elftools.common.exceptions",
    # Code signing — signify tree
    "signify", "signify.fingerprinter", "signify.authenticode",
    # LIEF
    "lief",
    # Fuzzy hashing
    "ppdeep",
    # .NET analysis
    "dotnetfile",
    # Crypto / ASN.1
    "asn1crypto", "asn1crypto.cms", "asn1crypto.pem", "asn1crypto.x509", "asn1crypto.core",
    # Hashing
    "xxhash", "blake3", "mmh3", "numpy",
    # APK analysis
    "androguard", "androguard.core", "androguard.core.apk",
    "androguard.core.dex", "androguard.core.api_specific_resources",
    "androguard.misc",
    "permhash",
]
for _mod in _heavy_deps:
    if _mod not in sys.modules:
        try:
            __import__(_mod)
        except (ImportError, ModuleNotFoundError):
            sys.modules[_mod] = MagicMock()

# Stub urllib3 with a real Warning subclass (warnings.filterwarnings needs a class)
if "urllib3" not in sys.modules or isinstance(sys.modules.get("urllib3"), MagicMock):
    try:
        import urllib3  # noqa: F401
    except (ImportError, ModuleNotFoundError):
        _urllib3_mod = types.ModuleType("urllib3")
        _urllib3_exc = types.ModuleType("urllib3.exceptions")

        class _InsecureRequestWarning(UserWarning):
            pass

        _urllib3_exc.InsecureRequestWarning = _InsecureRequestWarning
        _urllib3_mod.exceptions = _urllib3_exc
        sys.modules["urllib3"] = _urllib3_mod
        sys.modules["urllib3.exceptions"] = _urllib3_exc

# Provide a functional ppdeep stub (tests call ppdeep.hash() and expect a string).
# Must overwrite the MagicMock that the loop above may have installed.
_ppdeep_existing = sys.modules.get("ppdeep")
if _ppdeep_existing is None or isinstance(_ppdeep_existing, MagicMock):
    _ppdeep_mod = types.ModuleType("ppdeep")
    _ppdeep_mod.__name__ = "ppdeep"

    def _ppdeep_hash(data):
        """Fake ssdeep hash — returns a deterministic placeholder."""
        if isinstance(data, str):
            data = data.encode("utf-8")
        if len(data) < 50:
            return None
        import hashlib
        h = hashlib.md5(data).hexdigest()
        return f"3:{h[:16]}:{h[16:]}"

    _ppdeep_mod.hash = _ppdeep_hash
    sys.modules["ppdeep"] = _ppdeep_mod

# Stub mmh3 if the C extension is not available
_mmh3_existing = sys.modules.get("mmh3")
if _mmh3_existing is None or isinstance(_mmh3_existing, MagicMock):
    _mmh3_mod = types.ModuleType("mmh3")
    _mmh3_mod.__name__ = "mmh3"

    def _mmh3_hash(data, seed=0):
        """Fake MurmurHash3 — deterministic hash using built-in hashlib."""
        import hashlib
        if isinstance(data, str):
            data = data.encode("utf-8")
        seed_bytes = (seed & 0xFFFFFFFF).to_bytes(8, "little")
        h = hashlib.md5(data + seed_bytes).digest()
        return int.from_bytes(h[:4], "little", signed=True)

    _mmh3_mod.hash = _mmh3_hash
    sys.modules["mmh3"] = _mmh3_mod

# Stub tlsh if the C extension is not available
if "tlsh" not in sys.modules:
    try:
        import tlsh as _real_tlsh  # noqa: F401
    except (ImportError, ModuleNotFoundError):
        _tlsh_mock = types.ModuleType("tlsh")
        _tlsh_mock.__name__ = "tlsh"

        def _tlsh_hash(data):
            """Fake TLSH hash — returns a deterministic placeholder.

            Returns empty string for data < 50 bytes or data with very
            low entropy (e.g. repeating patterns), mimicking the real
            TLSH library's "TNULL" behaviour.
            """
            if isinstance(data, str):
                data = data.encode("utf-8")
            if len(data) < 50:
                return ""
            # Real TLSH returns "" for low-entropy input
            if len(set(data)) < 8:
                return ""
            import hashlib
            return "T1" + hashlib.sha256(data).hexdigest()[:70].upper()

        _tlsh_mock.hash = _tlsh_hash
        sys.modules["tlsh"] = _tlsh_mock

# ---------------------------------------------------------------------------
# 2. Stub redb.settings (package) so module-level code never runs
# ---------------------------------------------------------------------------
_settings_mock = MagicMock()
_settings_mock.__name__ = "redb.settings"
sys.modules["redb.settings"] = _settings_mock
sys.modules["redb.settings.elasticsearch"] = MagicMock()
sys.modules["redb.settings.clickhouse"] = MagicMock()

# ---------------------------------------------------------------------------
# 3. Replace redb.extractors with a minimal package that does NOT eagerly
#    import every extractor (and their heavy deps).  Sub-module imports
#    like ``from redb.extractors.database_exporters import ...`` still work
#    because __path__ points to the real package directory.
# ---------------------------------------------------------------------------
_repo_root = Path(__file__).resolve().parents[2]
_extractors_pkg = types.ModuleType("redb.extractors")
_extractors_pkg.__path__ = [str(_repo_root / "redb" / "extractors")]
_extractors_pkg.__package__ = "redb.extractors"
sys.modules["redb.extractors"] = _extractors_pkg

# ---------------------------------------------------------------------------
# 4. Force-import redb submodules so that @patch('redb.workers.xxx'),
#    @patch('redb.queries.xxx'), etc. can resolve at decoration time.
#    This works because all heavy deps are already stubbed above.
# ---------------------------------------------------------------------------
import redb.logging_utils   # noqa: F401, E402
import redb.s3_utils         # noqa: F401, E402
import redb.queries          # noqa: F401, E402
import redb.workers          # noqa: F401, E402
import redb.ingestor         # noqa: F401, E402