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/> References: <bug-259380-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259380 --- 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) !=3D NULL) { error =3D linux_copyout_sockaddr(sa, PTRIN(args->from), msg.msg_namelen); to, if (PTRIN(args->from) !=3D NULL) { printf("msg_namelen: %d, fromlen: %d\n", msg.msg_namelen, fromlen); error =3D linux_copyout_sockaddr(sa, PTRIN(args->from), fro= mlen); } 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= ) !=3D NULL)" though, so there is no output, and why they are all working without = the workaround. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259380-227-ExLqBbKXqN>