Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Nov 2021 17:30:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 259380] linux(4): linux_recvfrom(2) fails: linux_recvfrom -1 errno -22 Invalid argument
Message-ID:  <bug-259380-227-ExLqBbKXqN@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-259380-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

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.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259380-227-ExLqBbKXqN>