Page MenuHomeFreeBSD

Rewrite linux_recvfrom. To avoid double conversion of sockaddr use kern_recvit() directly. And check fromlen parameter before sockaddr copyin and conversion.
ClosedPublic

Authored by dchagin on Nov 2 2014, 10:17 PM.
Tags
None
Referenced Files
F169974014: D1082.diff
Thu, Sep 3, 3:48 AM
Unknown Object (File)
Wed, Sep 2, 6:57 PM
Unknown Object (File)
Wed, Sep 2, 5:37 AM
Unknown Object (File)
Tue, Sep 1, 12:44 AM
Unknown Object (File)
Mon, Aug 31, 7:06 PM
Unknown Object (File)
Mon, Aug 31, 5:31 AM
Unknown Object (File)
Sun, Aug 30, 12:35 AM
Unknown Object (File)
Sat, Aug 29, 6:56 PM
Subscribers

Diff Detail

Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

dchagin retitled this revision from to Rewrite linux_recvfrom. To avoid double conversion of sockaddr use kern_recvit() directly. And check fromlen parameter before sockaddr copyin and conversion..
trasz added inline comments.
sys/compat/linux/linux_socket.c
1035

!= 0; few other occurences below.

1053

sys_recvfrom() calls recvit() here, which also copies out the msg_namelen. It seems to be missing here.

1057

!= NULL

whoops, you are right. fixed. style(9) also fixed.

This revision was automatically updated to reflect the committed changes.