DynamoRIO / dynamorio

Dynamic Instrumentation Tool Platform
Other
2.57k stars 551 forks source link

i#6495 syscall templates: Avoid buffer overflow at instr_no_fetch #6752

Closed abhinav92003 closed 3 months ago

abhinav92003 commented 3 months ago

Writes out the buffered entries at each instr_no_fetch instance. This is to avoid overflowing the raw2trace write buffer, since some syscall trace templates have repstr with a very high iteration count.

Adds separate tracking in the basic counts tool for user and kernel nofetch instrs.

Adds a unit test to the existing burst_syscall_inject test that verifies injection of a syscall template with a high repstr iteration count. Also removes some log spam in the burst_syscall_inject test.

Issue: #6495