Garbage collector memory accounting in language-based systems

被引:9
作者
Price, DW [1 ]
Rudys, A [1 ]
Wallach, DS [1 ]
机构
[1] Rice Univ, Dept Comp Sci, Houston, TX 77251 USA
来源
2003 IEEE SYMPOSIUM ON SECURITY AND PRIVACY, PROCEEDINGS | 2003年
关键词
D O I
10.1109/SECPRI.2003.1199342
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Language run-time systems are often called upon to safely execute mutually distrustful tasks within the same runtime, protecting them from other tasks' bugs or otherwise hostile behavior Well-studied access controls exist in systems such as Java to prevent unauthorized reading or writing of data, but techniques to measure and control resource usage are less prevalent. In particular most language run-time systems include no facility to account for and regulate heap memory usage on a per-task basis. This oversight can be exploited by a misbehaving task, which might allocate and hold live enough memory to cause a denial-of-service attack, crashing or slowing down other tasks. In addition, tasks can legitimately share references to the same objects, and traditional approaches that charge memory to its allocator fail to properly account for this sharing. We present a method for modifying the garbage collector already present in most modem language runtime systems, to measure the amount of live memory reachable from each task as it performs its regular duties. Our system naturally distinguishes memory shared across tasks from memory reachable from only a single task without requiring incompatible changes to the semantics of the programming language. Our prototype implementation imposes negligible performance overheads in a variety of benchmarks, yet provides enough information for the expression of rich policies to express the limits on a task's memory usage.
引用
收藏
页码:263 / 274
页数:12
相关论文
共 56 条
  • [1] DEFINING LIVENESS
    ALPERN, B
    SCHNEIDER, FB
    [J]. INFORMATION PROCESSING LETTERS, 1985, 21 (04) : 181 - 185
  • [2] ALPERN B, 2000, IBM SYSTEM J, V39
  • [3] ALVESFOSS J, 1999, LECT NOTES COMPUTER, V1523
  • [4] A PASSWORD-CAPABILITY SYSTEM
    ANDERSON, M
    POSE, RD
    WALLACE, CS
    [J]. COMPUTER JOURNAL, 1986, 29 (01) : 1 - 8
  • [5] [Anonymous], 1989, SMALLTALK 80 LANGUAG
  • [6] BACK G, 2000, P 4 S OP SYST DES IM
  • [7] BACK G, 1999, P 7 IEEE WORKSH HOT
  • [8] Banga G., 1999, P 3 S OP SYST DES IM
  • [9] BEG M, 2001, CSTR0140 U TEX AUST
  • [10] BERNADAT P, 1998, IEEE WORKSH PROGR LA