Page MenuHomeFreeBSD

pipe_direct_write: Fix mismatched pipelock/unlock
ClosedPublic

Authored by cem on Jul 13 2015, 4:41 PM.
Tags
None
Referenced Files
F159971962: D3069.id6892.diff
Sat, Jun 20, 2:38 AM
Unknown Object (File)
May 3 2026, 10:22 PM
Unknown Object (File)
Apr 30 2026, 8:19 AM
Unknown Object (File)
Apr 29 2026, 10:17 AM
Unknown Object (File)
Apr 29 2026, 10:10 AM
Unknown Object (File)
Apr 23 2026, 6:29 AM
Unknown Object (File)
Apr 7 2026, 10:01 AM
Unknown Object (File)
Apr 6 2026, 1:15 PM
Subscribers

Details

Summary

If a signal is caught in pipelock, causing it to fail, pipe_direct_write should
not try to pipeunlock.

Reported by: pho
Sponsored by: EMC / Isilon Storage Division

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage

Event Timeline

cem retitled this revision from to pipe_direct_write: Fix mismatched pipelock/unlock.
cem updated this object.
cem edited the test plan for this revision. (Show Details)
cem added reviewers: markj, kib.
kib edited edge metadata.
kib added inline comments.
sys/kern/sys_pipe.c
949

if (error != 0)

951

if ((wpipe->pipe_state & PIPE_EOF) != 0) {

This revision is now accepted and ready to land.Jul 13 2015, 5:07 PM
cem edited edge metadata.

Fix style issues (thanks kib)

This revision now requires review to proceed.Jul 13 2015, 5:09 PM
cem marked 2 inline comments as done.Jul 13 2015, 5:10 PM
This revision was automatically updated to reflect the committed changes.