Static analysis to make the most of CHERI C/C plus plus for existing code: improving memory safety at scale

被引:0
|
作者
Dudina, Irina [1 ]
Stark, Ian [1 ]
机构
[1] Univ Edinburgh, Edinburgh, Scotland
关键词
Static analysis; CHERI; Software porting;
D O I
10.1007/s10009-025-00781-6
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We describe and evaluate custom static analyses to support transitioning existing C/C++ codebases to CHERI hardware. CHERI is a novel architectural extension, implemented for RISC-V and AArch64, that uses capabilities to provide fine-grained memory protection and scalable software compartmentalization. While the existing CHERI toolchain can recompile large code collections for the platform with only a few source changes, those changes are nonetheless critical: we demonstrate that static analysis can help to identify where they are needed and what must be done to avoid later runtime faults. We provide custom checkers for the Clang Static Analyzer to handle capability alignment, copying through memory, and manipulation as integers. Beyond simply picking up problems in existing code, we also have checkers that identify where code can take advantage of capabilities to better enforce least privilege and improve spatial memory safety. We evaluate all implemented checkers on a sample of packages from the CheriBSD ports library (408 packages, analyzed) and confirm by analyzing true-positive warning rates that the reports produced are sufficiently high quality for practical use.
引用
收藏
页数:13
相关论文
共 50 条
  • [31] Efficacy and Safety of Ribavirin with Sofosbuvir Plus Ledipasvir in Patients with Genotype 1 Hepatitis C: A Meta-Analysis
    He, Qiu-Feng
    Zhang, Qiong-Fang
    Zhang, Da-Zhi
    DIGESTIVE DISEASES AND SCIENCES, 2016, 61 (11) : 3108 - 3117
  • [32] Efficacy and Safety of Ribavirin with Sofosbuvir Plus Ledipasvir in Patients with Genotype 1 Hepatitis C: A Meta-Analysis
    Qiu-Feng He
    Qiong-Fang Zhang
    Da-Zhi Zhang
    Digestive Diseases and Sciences, 2016, 61 : 3108 - 3117
  • [33] Phase III, randomized study of docetaxel (T) plus capecitabine (X) (TX) followed by cyclophosphamide (C) plus epirubicin (E) plus X (CEX) vs. T followed by C plus E plus fluorouracil (F) (CEF) as adjuvant treatment for patients (pts) with early breast cancer (BC): An interim safety analysis.
    Joensuu, H
    Hemminki, A
    Tanner, M
    Paija, O
    Kokko, R
    Asola, R
    Johansson, K
    Bono, P
    Elomaa, I
    Kellokumpu-Lehtinen, P
    JOURNAL OF CLINICAL ONCOLOGY, 2005, 23 (16) : 57S - 57S
  • [34] Enhancing maritime safety in offshore wind power engineering: A Holistic approach to accident cause analysis, barrier design, and mitigation strategies - HFACS plus Bowtie plus C
    Wang, Jing
    Huang, Xiaolan
    Mai, Menghua
    Fang, Shuhao
    Zhang, Qiang
    Huang, Hui
    Yang, Dingding
    OCEAN ENGINEERING, 2025, 316
  • [35] Hepatitis C plus Liver Grafts Might Be the Most Equitable Solution for Retransplantation in Hepatitis C Infected Recipients: An Analysis of 13+Years of OPTN Data.
    Doria, Cataldo
    Rosen, Matthew M.
    Vaccino, Silvia
    Ramirez, Carlo B.
    Armenti, Vincent T.
    Frank, Adam M.
    AMERICAN JOURNAL OF TRANSPLANTATION, 2009, 9 : 205 - 205
  • [36] Efficacy and Safety of Pegylated Interferon Plus Ribavirin Therapy for Chronic Hepatitis C Genotype 6: A Meta-Analysis
    Wang, Xiwei
    Liu, Fen
    Wei, Fang
    Ren, Hong
    Hu, Huaidong
    PLOS ONE, 2014, 9 (06):
  • [37] Efficacy and safety of peginterferon plus ribavirin for patients aged ≥ 65 years with chronic hepatitis C: A systematic review and meta-analysis
    Yang, Zongguo
    Zhuang, Liping
    Yang, Lei
    Liu, Cheng
    Lu, Yunfei
    Xu, Qingnian
    Chen, Xiaorong
    Chen, Liang
    CLINICS AND RESEARCH IN HEPATOLOGY AND GASTROENTEROLOGY, 2014, 38 (04) : 440 - 450
  • [38] Effectiveness and safety of daclatasvir plus asunaprevir for hepatitis C virus genotype 1b: Systematic review and meta-analysis
    Wang, Hui-Lian
    Lu, Xi
    Yang, Xudong
    Xu, Nan
    JOURNAL OF GASTROENTEROLOGY AND HEPATOLOGY, 2017, 32 (01) : 45 - 52
  • [39] Safety and efficacy of sofosbuvir plus velpatasvir with or without ribavirin for chronic hepatitis C virus infection: A systematic review and meta-analysis
    Ahmed, Hussien
    Abushouk, Abdelrahman I.
    Attia, Attia
    Gadelkarim, Mohamed
    Gabr, Mohamed
    Negida, Ahmed
    Abdel-Daim, Mohamed M.
    JOURNAL OF INFECTION AND PUBLIC HEALTH, 2018, 11 (02) : 156 - 164
  • [40] Interim analysis of the safety and efficacy of peginterferon alfa-2a plus ribavirin in chronic hepatitis C patients unable to tolerate or nonresponsive to treatment with peginterferon alfa-2b plus ribavirin
    Rustgi, VK
    Esposito, S
    Freilich, B
    Lopez-Talavera, JC
    Lentz, E
    Shiffman, ML
    HEPATOLOGY, 2005, 42 (04) : 692A - 692A