Searched hist:192685 (Results 1 - 2 of 2) sorted by relevance
/freebsd-11.0-release/sys/sys/ | ||
H A D | lockf.h | diff 192685 Sun May 24 12:55:28 MDT 2009 kib The advisory lock may be activated or activated and removed during the sleep waiting for conditions when the lock may be granted. To prevent lf_setlock() from accessing possibly freed memory, add reference counting to the struct lockf_entry. Bump refcount around the sleep. Make lf_free_lock() return non-zero when structure was freed, and use this after the sleep to return EINTR to the caller. The error code might need a clarification, but we cannot return success to usermode, since the lock is not owned anymore. Reviewed by: dfr Tested by: pho MFC after: 1 month |
/freebsd-11.0-release/sys/kern/ | ||
H A D | kern_lockf.c | diff 192685 Sun May 24 12:55:28 MDT 2009 kib The advisory lock may be activated or activated and removed during the sleep waiting for conditions when the lock may be granted. To prevent lf_setlock() from accessing possibly freed memory, add reference counting to the struct lockf_entry. Bump refcount around the sleep. Make lf_free_lock() return non-zero when structure was freed, and use this after the sleep to return EINTR to the caller. The error code might need a clarification, but we cannot return success to usermode, since the lock is not owned anymore. Reviewed by: dfr Tested by: pho MFC after: 1 month |
Completed in 127 milliseconds