Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 8 commits into from
Apr 3, 2024

Conversation

abhinav92003
Copy link
Contributor

@abhinav92003 abhinav92003 commented Apr 3, 2024

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

Ensures that we write out the buffered entries at each no_fetch repstr
instance. This is to avoid overflowing the write buffer, since some
syscall trace templates have repstr with high iteration count.

Adds a unit test to the existing burst_syscall_inject test that
verifies injection of a syscall template with a large repstr
iteration count.

Issue: #6495
@abhinav92003 abhinav92003 changed the title i#6495 syscall templates: Avoid write buffer overflow at repstr i#6495 syscall templates: Avoid write buffer overflow at instr_no_fetch Apr 3, 2024
@abhinav92003 abhinav92003 changed the title i#6495 syscall templates: Avoid write buffer overflow at instr_no_fetch i#6495 syscall templates: Avoid buffer overflow at instr_no_fetch Apr 3, 2024
@abhinav92003 abhinav92003 merged commit 221fc84 into master Apr 3, 2024
16 checks passed
@abhinav92003 abhinav92003 deleted the i6495-repstr-buffer branch April 3, 2024 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants