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

src/iotop: correct pg_cb signature #64

Merged
merged 1 commit into from
Feb 23, 2024
Merged

Conversation

mikoxyz
Copy link
Contributor

@mikoxyz mikoxyz commented Feb 23, 2024

This fixes CFI due to mismatching signatures between pg_cb and pid_cb.

This fixes CFI due to mismatching signatures between pg_cb and pid_cb.
@bbonev
Copy link
Collaborator

bbonev commented Feb 23, 2024

Looks ok on a first glance. I need to run my tests and will merge it. Thanks!

Can you provide more info on how you discovered that and how you test for the presence of a similar problem elsewhere?

@mikoxyz
Copy link
Contributor Author

mikoxyz commented Feb 23, 2024 via email

@bbonev bbonev merged commit 0eda55f into Tomas-M:master Feb 23, 2024
2 checks passed
@bbonev
Copy link
Collaborator

bbonev commented Feb 23, 2024

Thanks for the info! TIL

I think that pidgen_cb should also be changed - I will merge this and change it.

And for the curious, here is the quick way:

CC=clang-17 CFLAGS="-fsanitize=cfi -fno-sanitize-trap -fvisibility=hidden" make re V=1

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