Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Nov 2021 10:55:40 +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-mKUPFzF4ga@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 #9 from Jason Mader <jasonmader@gmail.com> ---
Created attachment 229379
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=229379&action=edit
revert linux_recvfrom() in linux_socket.c

After adding some debugging statements into linux_recvfrom(), I found that the
error happens here,

        error = kern_recvit(td, args->s, &msg, UIO_SYSSPACE, NULL);
        if (error != 0)
                goto out;

The value in error that is returned is: 54

I'm attaching a diff that reverts FreeBSD 12.3-BETA3 linux_socket.c to 12.1 and
works for the Linux binaries, though I don't yet understand what the critical
difference is to linux_recvfrom().

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

help

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