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

fentry_sock_recvmsg: load program: invalid argument #1

Open
prajithp13 opened this issue Nov 26, 2022 · 5 comments
Open

fentry_sock_recvmsg: load program: invalid argument #1

prajithp13 opened this issue Nov 26, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@prajithp13
Copy link

Any idea about this error?

2022-11-26T07:08:02.070Z	info	bootTime	runtime/proc.go:6498	system boot time is 2022-11-26 02:26:32.070157654 +0000 UTC
2022-11-26T07:08:02.071Z	info	perisco	run/run.go:29	enabled protocols [HTTP/1 HTTP/2]
2022/11/26 07:08:02 loading objects: field FentrySockRecvmsg: program fentry_sock_recvmsg: load program: invalid argument
[r
@prajithp13
Copy link
Author

@KumKeeHyun

@KumKeeHyun
Copy link
Owner

KumKeeHyun commented Dec 4, 2022

@prajithp13 I'm sorry for the late reply.

sock_recvmsg have different signatures depending on the kernel version. I developed it as GCP ubuntu 20.04, and the kernel version is 5.15.

socket c - netsocket c - Linux source code (v5 1…

socket c - netsocket c - Linux source code (v4 3…

The code needs to be modified to be compiled differently depending on the version, but it is not yet in the development stage.

@prajithp13
Copy link
Author

do you have any suggestions for version 5.4.0-125?

@KumKeeHyun
Copy link
Owner

I confirmed that Ubuntu 18.04(using kernel v5.4.0) did not work.

I checked sock_recvmsg function signature and struct socket, struct msghdr arguments in ubuntu 18.04, but I couldn't find the error.

I don't think I can solve it in the near future. If it is for just execution, i recommend to try it in ubuntu 20.04.
sorry 🙏

@KumKeeHyun KumKeeHyun added the bug Something isn't working label Dec 5, 2022
@prajithp13
Copy link
Author

Thanks for the update. I wanted to use this in eks for some audit purposes but couldn't get this worked on eks amazon linux 2 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants