Phil Eaton 10/1/2023

Intercepting and modifying Linux system calls with ptrace

Read Original

This article explores fault injection techniques to trigger disk and filesystem errors in software. It focuses on using the ptrace debugging tool to intercept and modify Linux system calls, forcing 'short writes' to test error handling in programs written in Go, Python, and C. The tutorial includes practical code examples written in Zig for clarity.

Intercepting and modifying Linux system calls with ptrace

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser