{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,25]],"date-time":"2026-07-25T17:01:27Z","timestamp":1784998887112,"version":"3.55.0"},"reference-count":56,"publisher":"Association for Computing Machinery (ACM)","issue":"3","license":[{"start":{"date-parts":[[2026,7,25]],"date-time":"2026-07-25T00:00:00Z","timestamp":1784937600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0\/legalcode"}],"funder":[{"DOI":"10.13039\/100007567","name":"City University of Hong Kong","doi-asserted-by":"publisher","award":["9220148, and 9610598"],"award-info":[{"award-number":["9220148, and 9610598"]}],"id":[{"id":"10.13039\/100007567","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/100000083","name":"Directorate for Computer and Information Science and Engineering","doi-asserted-by":"publisher","award":["2105006"],"award-info":[{"award-number":["2105006"]}],"id":[{"id":"10.13039\/100000083","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/100007567","name":"Hong Kong RGC GRF","doi-asserted-by":"publisher","award":["11216925"],"award-info":[{"award-number":["11216925"]}],"id":[{"id":"10.13039\/100007567","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Storage"],"published-print":{"date-parts":[[2026,8,31]]},"abstract":"<jats:p>Persistent Memory (PM) technologies provide fast, byte-addressable access to durable storage but face crash consistency challenges, motivating extensive work of testing and verification of PM programs. Central to PM testing tools is the specification of program properties for object persistence order and atomicity. Prior work on PM property inference has focused on ordering properties and offers limited support for reasoning about atomicity. This article explores a class of important atomicity properties between the container-like arrays and their logical size variables, referred to as the counting correlation. These properties are prevalent in PM programs but are not adequately addressed by existing techniques. We introduce C3, a tool designed to infer these counting-related atomicity properties and detect related bugs in PM programs. Our approach begins by proposing invariants to capture the necessary behaviors of counting-correlated variables. We then utilize symbolic range analysis to extract PM program behaviors, and encode them into SMT constraints. These constraints are checked against the invariants to infer likely PM program properties. Our bug detection method is based on the existing output checking approach, but adapted to be aware of input properties to detect and confirm the atomicity bugs efficiently. Our evaluation shows that C3 has found 14 atomicity bugs (including 11 previously unknown ones) from real-world PM programs.<\/jats:p>","DOI":"10.1145\/3786994","type":"journal-article","created":{"date-parts":[[2026,1,29]],"date-time":"2026-01-29T20:59:27Z","timestamp":1769720367000},"page":"1-18","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":0,"title":["C3: Finding Counting-related Crash Consistency Atomicity Bugs for Persistent Memory"],"prefix":"10.1145","volume":"22","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-7462-2780","authenticated-orcid":false,"given":"Yunmo","family":"Zhang","sequence":"first","affiliation":[{"name":"Computer Science, City University of Hong Kong","place":["Hong Kong, Hong Kong"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-7776-3944","authenticated-orcid":false,"given":"Junqiao","family":"Qiu","sequence":"additional","affiliation":[{"name":"Computer Science, City University of Hong Kong","place":["Hong Kong, Hong Kong"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9359-9571","authenticated-orcid":false,"given":"Hong","family":"Xu","sequence":"additional","affiliation":[{"name":"The Chinese University of Hong Kong","place":["Shatin, Hong Kong"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-6431-9868","authenticated-orcid":false,"given":"Jason","family":"Xue","sequence":"additional","affiliation":[{"name":"CS, MBZUAI","place":["Masdar City, United Arab Emirates"]}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,7,25]]},"reference":[{"key":"e_1_3_2_2_2","doi-asserted-by":"crossref","unstructured":"Francesco Adalberto Bianchi Alessandro Margara and Mauro Pezz\u00e8. 2017. A survey of recent trends in testing concurrent software systems. IEEE Transactions on Software Engineering 44 8 (2017) 747\u2013783.","DOI":"10.1109\/TSE.2017.2707089"},{"key":"e_1_3_2_3_2","doi-asserted-by":"publisher","DOI":"10.1145\/349299.349342"},{"key":"e_1_3_2_4_2","doi-asserted-by":"crossref","unstructured":"Joel Coburn Adrian M Caulfield Ameen Akel Laura M Grupp Rajesh K Gupta Ranjit Jhala and Steven Swanson. 2011. NV-Heaps: Making persistent objects fast and safe with next-generation non-volatile memories. ACM SIGARCH Computer Architecture News 39 1 (2011) 105\u2013118.","DOI":"10.1145\/1961295.1950380"},{"key":"e_1_3_2_5_2","unstructured":"CXL Consortium. 2020. Compute Express Link\u2122: The Breakthrough CPU-to-Device Interconnect. Retrieved from https:\/\/www.computeexpresslink.org\/"},{"key":"e_1_3_2_6_2","doi-asserted-by":"publisher","DOI":"10.5555\/1792734.1792766"},{"key":"e_1_3_2_7_2","doi-asserted-by":"crossref","unstructured":"Leonardo De Moura and Nikolaj Bj\u00f8rner. 2011. Satisfiability modulo theories: Introduction and applications. Commun. ACM 54 9 (2011) 69\u201377.","DOI":"10.1145\/1995376.1995394"},{"key":"e_1_3_2_8_2","doi-asserted-by":"publisher","DOI":"10.1145\/2907294.2907303"},{"key":"e_1_3_2_9_2","doi-asserted-by":"publisher","DOI":"10.1109\/IPDPS.2017.60"},{"key":"e_1_3_2_10_2","doi-asserted-by":"publisher","DOI":"10.1145\/3445814.3446744"},{"key":"e_1_3_2_11_2","unstructured":"dibang2008. 2020. ISSUE: Inconsistency bugs in array example for libpmemobj. Retrieved from https:\/\/github.com\/pmem\/pmdk\/issues\/4927"},{"key":"e_1_3_2_12_2","doi-asserted-by":"publisher","DOI":"10.1145\/2592798.2592814"},{"key":"e_1_3_2_13_2","doi-asserted-by":"crossref","unstructured":"Michael D Ernst Jeff H Perkins Philip J Guo Stephen McCamant Carlos Pacheco Matthew S Tschantz and Chen Xiao. 2007. The daikon system for dynamic detection of likely invariants. Science of Computer Programming 69 1-3 (2007) 35\u201345.","DOI":"10.1016\/j.scico.2007.01.015"},{"key":"e_1_3_2_14_2","doi-asserted-by":"publisher","DOI":"10.1145\/3477132.3483556"},{"key":"e_1_3_2_15_2","first-page":"195","volume-title":"16th USENIX Symposium on Operating Systems Design and Implementation (OSDI)","author":"Fu Xinwei","year":"2022","unstructured":"Xinwei Fu, Dongyoon Lee, and Changwoo Min. 2022. DURINN: Adversarial memory and thread interleaving for detecting durable linearizability bugs. In 16th USENIX Symposium on Operating Systems Design and Implementation (OSDI). 195\u2013211."},{"key":"e_1_3_2_16_2","doi-asserted-by":"publisher","DOI":"10.1109\/ISCA45697.2020.00060"},{"key":"e_1_3_2_17_2","doi-asserted-by":"publisher","DOI":"10.1145\/3552326.3587447"},{"key":"e_1_3_2_18_2","doi-asserted-by":"publisher","DOI":"10.1145\/3445814.3446735"},{"key":"e_1_3_2_19_2","unstructured":"Eryu Guan. 2018. ext4: update i_disksize if direct write past ondisk size. Retrieved from https:\/\/marc.info\/?l=linux-ext4&m=151669669030547&w=2"},{"key":"e_1_3_2_20_2","doi-asserted-by":"crossref","unstructured":"Shashank Gugnani Arjun Kashyap and Xiaoyi Lu. 2020. Understanding the idiosyncrasies of real persistent memory. Proceedings of the VLDB Endowment 14 4 (2020) 626\u2013639.","DOI":"10.14778\/3436905.3436921"},{"key":"e_1_3_2_21_2","doi-asserted-by":"publisher","DOI":"10.1145\/1368088.1368120"},{"key":"e_1_3_2_22_2","doi-asserted-by":"publisher","DOI":"10.1145\/3691620.3695544"},{"key":"e_1_3_2_23_2","unstructured":"Intel. 2018. How to Detect Persistent Memory Programming Errors Using Intel\u00ae Inspector - Persistence Inspector. Retrieved from https:\/\/www.intel.com\/content\/www\/us\/en\/developer\/articles\/technical\/detect-persistent-memory-programming-errors-with-intel-inspector-persistence-inspector.html"},{"key":"e_1_3_2_24_2","unstructured":"Intel. 2019. PMDK Introduction. Retrieved from https:\/\/docs.pmem.io\/persistent-memory\/getting-started-guide\/what-is-pmdk"},{"key":"e_1_3_2_25_2","unstructured":"Intel. 2020. Next generation Intel\u00ae Optane\u2122 Persistent Memory. Retrieved from https:\/\/community.intel.com\/t5\/Blogs\/Products-and-Solutions\/Memory-Storage\/Next-generation-Intel-Optane-Persistent-Memory-bringing-more\/post\/1334979"},{"key":"e_1_3_2_26_2","doi-asserted-by":"publisher","DOI":"10.1109\/MICRO50266.2020.00050"},{"key":"e_1_3_2_27_2","doi-asserted-by":"publisher","DOI":"10.1145\/2872362.2872381"},{"key":"e_1_3_2_28_2","first-page":"433","volume-title":"2014 USENIX Annual Technical Conference (ATC)","author":"Lantz Philip","year":"2014","unstructured":"Philip Lantz, Subramanya Dulloor, Sanjay Kumar, Rajesh Sankaran, and Jeff Jackson. 2014. Yat: A validation framework for persistent memory software. In 2014 USENIX Annual Technical Conference (ATC). 433\u2013438."},{"key":"e_1_3_2_29_2","first-page":"75","volume-title":"International Symposium on Code Generation and Optimization.","author":"Lattner Chris","year":"2004","unstructured":"Chris Lattner and Vikram Adve. 2004. LLVM: A compilation framework for lifelong program analysis & transformation. In International Symposium on Code Generation and Optimization. IEEE, 75\u201386."},{"key":"e_1_3_2_30_2","doi-asserted-by":"publisher","DOI":"10.1145\/3552326.3567498"},{"key":"e_1_3_2_31_2","doi-asserted-by":"publisher","DOI":"10.1145\/3341301.3359635"},{"key":"e_1_3_2_32_2","doi-asserted-by":"publisher","DOI":"10.1145\/2491411.2491435"},{"key":"e_1_3_2_33_2","doi-asserted-by":"publisher","DOI":"10.1109\/MICRO.2018.00029"},{"key":"e_1_3_2_34_2","doi-asserted-by":"publisher","DOI":"10.1145\/3373376.3378452"},{"key":"e_1_3_2_35_2","doi-asserted-by":"publisher","DOI":"10.1145\/3297858.3304015"},{"key":"e_1_3_2_36_2","doi-asserted-by":"publisher","DOI":"10.1145\/1294261.1294272"},{"key":"e_1_3_2_37_2","doi-asserted-by":"crossref","unstructured":"Shan Lu Joseph Tucek Feng Qin and Yuanyuan Zhou. 2006. AVIO: Detecting atomicity violations via access interleaving invariants. ACM SIGOPS Operating Systems Review 40 5 (2006) 37\u201348.","DOI":"10.1145\/1168917.1168864"},{"key":"e_1_3_2_38_2","unstructured":"Filipe Manana. 2015. Btrfs: fix fsync data loss after append write. Retrieved from https:\/\/patchwork.kernel.org\/project\/linux-btrfs\/patch\/1434541763-23753-1-git-send-email-fdmanana@kernel.org\/"},{"key":"e_1_3_2_39_2","volume-title":"9th USENIX Workshop on Hot Topics in Storage and File Systems (HotStorage 17)","author":"Marathe Virendra J","year":"2017","unstructured":"Virendra J Marathe, Margo Seltzer, Steve Byan, and Tim Harris. 2017. Persistent memcached: Bringing legacy code to byte-addressable persistent memory. In 9th USENIX Workshop on Hot Topics in Storage and File Systems (HotStorage 17)."},{"key":"e_1_3_2_40_2","first-page":"33","volume-title":"13th USENIX Symposium on Operating Systems Design and Implementation (OSDI 18)","author":"Mohan Jayashree","year":"2018","unstructured":"Jayashree Mohan, Ashlie Martinez, Soujanya Ponnapalli, Pandian Raju, and Vijay Chidambaram. 2018. Finding crash-consistency bugs with bounded black-box crash testing. In 13th USENIX Symposium on Operating Systems Design and Implementation (OSDI 18). 33\u201350."},{"key":"e_1_3_2_41_2","doi-asserted-by":"publisher","DOI":"10.5555\/3323298.3323302"},{"key":"e_1_3_2_42_2","doi-asserted-by":"publisher","DOI":"10.1145\/2660193.2660205"},{"key":"e_1_3_2_43_2","first-page":"1047","volume-title":"14th USENIX Symposium on Operating Systems Design and Implementation (OSDI 20)","author":"Neal Ian","year":"2020","unstructured":"Ian Neal, Ben Reeves, Ben Stoler, Andrew Quinn, Youngjin Kwon, Simon Peter, and Baris Kasikci. 2020. \\(\\lbrace\\) AGAMOTTO \\(\\rbrace\\) : How Persistent is your Persistent Memory Application?. In 14th USENIX Symposium on Operating Systems Design and Implementation (OSDI 20). 1047\u20131064."},{"key":"e_1_3_2_44_2","doi-asserted-by":"publisher","DOI":"10.1145\/1508244.1508249"},{"key":"e_1_3_2_45_2","doi-asserted-by":"crossref","unstructured":"Azalea Raad John Wickerson Gil Neiger and Viktor Vafeiadis. 2019. Persistency semantics of the Intel-x86 architecture. Proceedings of the ACM on Programming Languages 4 POPL (2019) 1\u201331.","DOI":"10.1145\/3371079"},{"key":"e_1_3_2_46_2","unstructured":"Andy Rudoff. 2017. Persistent memory programming. Login: The Usenix Magazine 42 2 (2017) 34\u201340."},{"key":"e_1_3_2_47_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4842-4932-1"},{"key":"e_1_3_2_48_2","unstructured":"Anton Shilov. 2022. Samsung\u2019s Memory-Semantic CXL SSD Brings a 20X Performance Uplift. Retrieved from https:\/\/www.tomshardware.com\/news\/samsung-memory-semantic-cxl-ssd-brings-20x-performance-uplift"},{"key":"e_1_3_2_49_2","doi-asserted-by":"publisher","DOI":"10.1145\/3019612.3019675"},{"key":"e_1_3_2_50_2","doi-asserted-by":"crossref","unstructured":"Shyamkumar Thoziyoor Jung Ho Ahn Matteo Monchiero Jay B Brockman and Norman P Jouppi. 2008. A Comprehensive Memory Modeling Tool and Its Application to the Design and Analysis of Future Memory Hierarchies. ACM SIGARCH Computer Architecture News 36 3 (2008) 51\u201362.","DOI":"10.1145\/1394608.1382127"},{"key":"e_1_3_2_51_2","doi-asserted-by":"crossref","unstructured":"Mandana Vaziri Frank Tip and Julian Dolby. 2006. Associating Synchronization Constraints with Data in an Object-oriented Language. ACM Sigplan Notices 41 1 (2006) 334\u2013345.","DOI":"10.1145\/1111320.1111067"},{"key":"e_1_3_2_52_2","doi-asserted-by":"crossref","unstructured":"Haris Volos Andres Jaan Tack and Michael M Swift. 2011. Mnemosyne: Lightweight Persistent Memory. ACM SIGARCH Computer Architecture News 39 1 (2011) 91\u2013104.","DOI":"10.1145\/1961295.1950379"},{"key":"e_1_3_2_53_2","doi-asserted-by":"publisher","DOI":"10.1109\/MICRO56248.2022.00091"},{"key":"e_1_3_2_54_2","first-page":"323","volume-title":"14th USENIX Conference on File and Storage Technologies (FAST 16)","author":"Xu Jian","year":"2016","unstructured":"Jian Xu and Steven Swanson. 2016. NOVA: A log-structured file system for hybrid Volatile\/Non-volatile main memories. In 14th USENIX Conference on File and Storage Technologies (FAST 16). 323\u2013338."},{"key":"e_1_3_2_55_2","doi-asserted-by":"crossref","unstructured":"Min Xu Rastislav Bod\u00edk and Mark D Hill. 2005. A serializability violation detector for shared-memory server programs. ACM Sigplan Notices 40 6 (2005) 1\u201314.","DOI":"10.1145\/1064978.1065013"},{"key":"e_1_3_2_56_2","volume-title":"2025 USENIX Annual Technical Conference (USENIX ATC 25)","author":"Zhang Yunmo","year":"2025","unstructured":"Yunmo Zhang, Junqiao Qiu, Hong Xu, and Chun Jason Xue. 2025. Inferring likely counting-related atomicity program properties for persistent memory. In 2025 USENIX Annual Technical Conference (USENIX ATC 25)."},{"key":"e_1_3_2_57_2","first-page":"461","volume-title":"13th USENIX Symposium on Operating Systems Design and Implementation (OSDI 18)","author":"Zuo Pengfei","year":"2018","unstructured":"Pengfei Zuo, Yu Hua, and Jie Wu. 2018. Write-Optimized and High-Performance hashing index scheme for persistent memory. In 13th USENIX Symposium on Operating Systems Design and Implementation (OSDI 18). 461\u2013476."}],"container-title":["ACM Transactions on Storage"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3786994","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,7,25]],"date-time":"2026-07-25T16:20:49Z","timestamp":1784996449000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3786994"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,7,25]]},"references-count":56,"journal-issue":{"issue":"3","published-print":{"date-parts":[[2026,8,31]]}},"alternative-id":["10.1145\/3786994"],"URL":"https:\/\/doi.org\/10.1145\/3786994","relation":{},"ISSN":["1553-3077","1553-3093"],"issn-type":[{"value":"1553-3077","type":"print"},{"value":"1553-3093","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,7,25]]},"assertion":[{"value":"2025-10-31","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2025-12-26","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-07-25","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}