- User Since
- Nov 9 2018, 9:29 AM (14 w, 1 d)
Mon, Feb 11
Fri, Feb 8
Thu, Feb 7
Mon, Feb 4
@mjg: reverted back to one reference per object. You're right, better safe than sorry.
Fri, Feb 1
The reference hold/free logic was wrong. now in the case where td_ucred==td_pucred only one reference is held.
Thu, Jan 31
@mjg: good call, this revision is likely the best regarding performance, and code complexity. As for future-proofing, it's obvious that process credentials will always be necessary for backwards compatibility so caching them entirely in each thread is a good idea.
Wed, Jan 30
@mjg: moved copyout outside of PROC_LOCK for getgroups, getresuid and getresgid.
Mon, Jan 28
Moved the process to thread credential syncronization logic into thread_cow_update instead of everywhere scattered around the codebase.
Fri, Jan 25
@rwatson: The patch has been updated to take into account the other parts of credentials: jail, MAC, audit and flags are written to thread credential in order for them to always be in sync with the process credentials.
Thu, Jan 24
Is this change safe without holding the process lock? Historically, p_ucred hasn't been a stable pointer without it.
Wed, Jan 23
Dec 10 2018
The dot special behaviour was because our application is currently using getfhat with a NULL path. We'll fix this in the application rather than in kernel code. I've rolled back to a behaviour similar to openat, also amended the manpage.
Dec 7 2018
Dec 5 2018
Dec 4 2018
Dec 3 2018
No more locks, no more leaks as far as I can tell
Nov 30 2018
I was able to reproduce the lock recursion in the case where the source fhp points to the same object as the destination link. It turns ou the link(2) doesn't lock the source node which seems acceptable. So I changed fhlinkat_kern to only LK_SHARED on the source node, therefore the kern_linkat_vp doesn't need the bool locked anymore because all the callers have the same input locking state.
temporary pathc, I'm still looking into the lock recursion that @kib has mentionned.
Nov 29 2018
In this diff there is no more code duplication. also I forgot to include the two new manpages in the previous versions (fhlink.2 and fhreadlink.2).
Nov 28 2018
Here's some more context to the diff. I wasn't aware of style(9), will check that before submitting in the future.
Nov 27 2018
Nov 14 2018
Nov 13 2018
Nov 12 2018
Added to the getdirentries.2 man page. Also make udf_readdir more consistent as requested. Apparently udf is used for DVDs and optical disks so it shouldn't matter anyway.
Nov 9 2018
overlooked a zfsctl_snapdir_readdir vfs call used for zfs snapshots.
this is a rough check I used for testing. Basically we want the d_off value to be the lseek value *after* reading a given entry. To check for lseek we must only iterate over getdirentries one entry at a time, otherwise the lseek offset will be too far off.