Skip to content

Fix uninitialized vars and sys call crash#54

Merged
tanelpoder merged 1 commit intotanelpoder:masterfrom
grcevski:some_small_cleanup
Dec 11, 2024
Merged

Fix uninitialized vars and sys call crash#54
tanelpoder merged 1 commit intotanelpoder:masterfrom
grcevski:some_small_cleanup

Conversation

@grcevski
Copy link
Contributor

@grcevski grcevski commented Dec 11, 2024

Just to get my feet wet here, I worked a bit to fix a crash I had noticed and shut up some compiler warnings in the next code.

The syscall issue is that reading orig_ax can be unpredictable sometimes when an interrupt happens while running the probe. It's rare, but I could see it once in a while when running locally. I think if we must find the syscall number we should put a kprobe on syscall kernel function, but I think this is probably an overkill.

@tanelpoder tanelpoder merged commit 3611ca2 into tanelpoder:master Dec 11, 2024
@tanelpoder
Copy link
Owner

Thanks! (Man, I've been coding mostly Python for too long 😄)

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