paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Worst-Case Input Generation for Concurrent Programs under Non-Monotone Resource Metrics

非单调资源度量下并发程序的最坏情况输入生成
LMCS vol.Volume 20, Issue 42024匹配度 3/10 · 该论文属于程序分析与形式化方法,涉及符号执行、会话类型和资源分析,但研究对象是并发程序的最坏情况输入生成,与用户核心关注的 LLM/Agent 和静态分析交叉、浮点程序分析、贝叶斯程序分析均无直接关联。引用 0 inbox
Long Pham, Jan Hoffmann
crossref: 2026-09-10

AI 速览

一句话:首个面向并发程序、在内存等非单调资源度量下可靠的(相对完备的)最坏情况输入生成算法,结合资源标注会话类型与符号执行。

最坏情况输入生成可自动构造使程序性能最差的输入,用于检测拒绝服务(DoS)等漏洞,但对并发程序十分困难:内存等非单调资源的峰值开销取决于进程调度。本文提出首个面向此类资源度量的可靠最坏情况输入生成算法。其核心是将资源标注会话类型与符号执行结合:会话类型刻画进程演算中通道上的通信协议,资源标注既编码开销上界,也标明进程间可复用与可转移的资源量,从而在符号执行中定位最坏情况执行路径。算法具有可靠性(返回的输入必为合法最坏情况输入),并在资源标注会话类型足够表达、SMT 背景理论可判定时相对完备。Web 服务器内存使用案例展示了其实用性。

问题
并发程序在内存等非单调资源度量下的峰值开销依赖进程调度,导致难以自动生成触发最坏性能的输入,例如用于发现 DoS 漏洞。
方法
将资源标注会话类型(刻画通道通信协议并编码开销上界与进程间可复用/可转移资源量)与符号执行结合,以识别最坏情况执行路径并生成对应输入。
评估
论证算法的可靠性(返回的输入必为合法最坏情况输入)与相对完备性条件,并通过一个 Web 服务器内存使用案例研究展示算法实用性。
原文摘要(Abstract)

Worst-case input generation aims to automatically generate inputs that exhibit the worst-case performance of programs. It has several applications, and can, for example, detect vulnerabilities to denial-of-service (DoS) attacks. However, it is non-trivial to generate worst-case inputs for concurrent programs, particularly for resources like memory where the peak cost depends on how processes are scheduled. This article presents the first sound worst-case input generation algorithm for concurrent programs under non-monotone resource metrics like memory. The key insight is to leverage resource-annotated session types and symbolic execution. Session types describe communication protocols on channels in process calculi. Equipped with resource annotations, resource-annotated session types not only encode cost bounds but also indicate how many resources can be reused and transferred between processes. This information is critical for identifying a worst-case execution path during symbolic execution. The algorithm is sound: if it returns any input, it is guaranteed to be a valid worst-case input. The algorithm is also relatively complete: as long as resource-annotated session types are sufficiently expressive and the background theory for SMT solving is decidable, a worst-case input is guaranteed to be returned. A simple case study of a web server's memory usage demonstrates the utility of the worst-case input generation algorithm.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot2695,
  title = {Worst-Case Input Generation for Concurrent Programs under Non-Monotone Resource Metrics},
  author = {Long Pham and Jan Hoffmann},
  journal = {Logical Methods in Computer Science},
  volume = {Volume 20, Issue 4},
  year = {2024},
  doi = {10.46298/lmcs-20(4:26)2024}
}