[Bug 259380] linux(4): linux_recvfrom(2) fails: linux_recvfrom -1 errno -22 Invalid argument

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 16 Nov 2021 17:30:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259380

--- Comment #13 from Jason Mader <jasonmader@gmail.com> ---
(In reply to Edward Tomasz Napierala from comment #12)
I changed linux_socket.c linux_recvfrom() from,

        if (PTRIN(args->from) != NULL) {
                error = linux_copyout_sockaddr(sa, PTRIN(args->from),
msg.msg_namelen);

to,
        if (PTRIN(args->from) != NULL) {
                printf("msg_namelen: %d, fromlen: %d\n", msg.msg_namelen,
fromlen);
                error = linux_copyout_sockaddr(sa, PTRIN(args->from), fromlen);
        }

And got,

linux: jid 1 pid 77110 (rlmutil): unsupported socket(AF_NETLINK, 3,
NETLINK_ROUTE)
msg_namelen: 0, fromlen: 28
msg_namelen: 0, fromlen: 28
msg_namelen: 0, fromlen: 28
msg_namelen: 0, fromlen: 28
msg_namelen: 0, fromlen: 28
msg_namelen: 0, fromlen: 28
msg_namelen: 0, fromlen: 28
msg_namelen: 0, fromlen: 28

None of the other clients connecting to their servers do "(PTRIN(args->from) !=
NULL)" though, so there is no output, and why they are all working without the
workaround.

-- 
You are receiving this mail because:
You are the assignee for the bug.