| 45014f96 | 06-Mar-2022 |
Mark Johnston <[email protected]> |
tests: Fix the test plan for closefrom_test
Fixes: f3f3e3c44d3b ("fd: add close_range(..., CLOSE_RANGE_CLOEXEC)") Reported by: Jenkins
(cherry picked from commit 3a01dcc99ff9044bbd46386a48ed870838c
tests: Fix the test plan for closefrom_test
Fixes: f3f3e3c44d3b ("fd: add close_range(..., CLOSE_RANGE_CLOEXEC)") Reported by: Jenkins
(cherry picked from commit 3a01dcc99ff9044bbd46386a48ed870838cfb555)
show more ...
|
| 605c4cda | 13-Apr-2020 |
Kyle Evans <[email protected]> |
close_range/closefrom: fix regression from close_range introduction
close_range will clamp the range between [0, fdp->fd_lastfile], but failed to take into account that fdp->fd_lastfile can become -
close_range/closefrom: fix regression from close_range introduction
close_range will clamp the range between [0, fdp->fd_lastfile], but failed to take into account that fdp->fd_lastfile can become -1 if all fds are closed. =-( In this scenario, just return because there's nothing further we can do at the moment.
Add a test case for this, fork() and simply closefrom(0) twice in the child; on the second invocation, fdp->fd_lastfile == -1 and will trigger a panic before this change.
X-MFC-With: r359836
show more ...
|
| fa15d1ea | 28-May-2017 |
Enji Cooper <[email protected]> |
Create a deterministic file in the kyua sandbox, instead of a temporary file outside the kyua sandbox
This helps ensure that the file is removed at test exit, and as a side effect, cures a warning a
Create a deterministic file in the kyua sandbox, instead of a temporary file outside the kyua sandbox
This helps ensure that the file is removed at test exit, and as a side effect, cures a warning about umasks with Coverity.
MFC after: 3 days Sponsored by: Dell EMC Isilon
show more ...
|