-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add partial implementation of recvfrom syscall (#1514)
* Add partial implementation of recvfrom syscall This partial implementation does not handle src_addr and addrlen arguments, which means this recvfrom acts like a recv syscall * Combine shared logic between recv and recvfrom; add more checks * Add test for recvfrom * Add known failure of opening new socket after closing previous * Blacken * Check if buf + count is in current memory * Follow logic of Linux source code more closely https://elixir.bootlin.com/linux/v5.2.13/source/net/socket.c#L1988 * Use access_ok to check buffer validity * Update test to EBADF
- Loading branch information
Showing
2 changed files
with
100 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters