Skip to content

Conversation

@jasperla
Copy link
Contributor

@jasperla jasperla commented Nov 9, 2023

The linker on OpenBSD emits a warning when linking this file: warning: syscall() may go away, please rewrite code to use direct calls.

Other syscall() invocations in AFLplusplus code aren't compiled on OpenBSD at the moment.

vanhauser-thc and others added 2 commits October 23, 2023 09:14
The linker on OpenBSD emits a warning when linking this file:
warning: syscall() may go away, please rewrite code to use direct calls
@vanhauser-thc vanhauser-thc changed the base branch from stable to dev November 9, 2023 12:08
@vanhauser-thc
Copy link
Member

the purpose of this syscall is to circumvent libc and asan, I fear this will break then on openbsd. is there an alternative like for haiku?

@jasperla
Copy link
Contributor Author

jasperla commented Nov 9, 2023

There is no alternative as far as I know, the whole point of removing syscall(2) is by forcing application to go through libc. The risk of breaking ASAN on OpenBSD is an acceptable trade-off compared to not having AFL at all.

@devnexen
Copy link
Contributor

I think it s safe in asan side, openbsd does not have support for it, not even ubsan unless openbsd did its own asan ?

@vanhauser-thc
Copy link
Member

Ok :)

@vanhauser-thc vanhauser-thc merged commit 8c1f25b into AFLplusplus:dev Nov 11, 2023
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.

3 participants