In D46635#1063118, @cem wrote:In random_early_prime we divide the input into blocks of size sizeof(event.he_entropy)) and then process those one by one, with each block only being fed into one pool. so simply padding the entropy with zeros would result in most of the pools having no entropy.
Sure. But Fortuna seeds derive from all pools, only relying on at least one pool being uncompromised. (You could also just re-input the same 64 bytes 32x to touch all pools, although I don't think this buys you any additional safety.)
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Feed Advanced Search
Advanced Search
Advanced Search
Sep 20 2024
Sep 20 2024
Sep 12 2024
Sep 12 2024
Sep 11 2024
Sep 11 2024
Jun 12 2024
Jun 12 2024
Fix bootstrapping on macOS.
May 24 2024
May 24 2024
Fix bootstraping on macOS.
May 23 2024
May 23 2024
pjd committed rG56a8aca83ab5: Stop treating size 0 as unknown size in vnode_create_vobject(). (authored by pjd).
Stop treating size 0 as unknown size in vnode_create_vobject().
May 22 2024
May 22 2024
Remove blank lines at the begining of functions with no local variables.
Add a comment explaining why we check mediasize this late.
pjd committed rG61e3e1776d40: capsicum: SIGTRAP is delivered also on ECAPMODE error. (authored by pjd).
capsicum: SIGTRAP is delivered also on ECAPMODE error.
Simplify the code.
Updated wrong review. Bring back the proper patch.
Compilation fix.
Compilation fix.
May 21 2024
May 21 2024
In D45243#1033059, @des wrote:In D45243#1032859, @pjd wrote:In D45243#1032364, @des wrote:Have you considered implementing Apple's copyfile API?
I did, but I cannot commit that much time to implement it.
I'm not suggesting implementing the full API; just COPYFILE_DATA and COPYFILE_STAT and a handful of modifiers (COPYFILE_DATA_SPARSE, COPYFILE_EXCL, COPYFILE_MOVE, COPYFILE_NOFOLLOW, COPYFILE_UNLINK) should suffice. I'd offer to help, but I've seen the source code (it's on GitHub under APSL) so I probably shouldn't.
May 20 2024
May 20 2024
pjd added inline comments to D45244: Stop treating size 0 as unknown size in vnode_create_vobject()..
Remove too aggressive assert.
Add a missing argument to VNASSERT().
Use VNASSERT() instead of KASSERT().
pjd added inline comments to D45244: Stop treating size 0 as unknown size in vnode_create_vobject()..
In D45243#1032364, @des wrote:Have you considered implementing Apple's copyfile API?
- Rename vnode_disk_create_vobject() to vnode_create_disk_vobject().
- Improve assertions.
- Introduce dedicated vnode_disk_create_vobject() for use by g_vfs_open(), so we don't have to do vn_isdisk() checks for regular files.
pjd added inline comments to D45244: Stop treating size 0 as unknown size in vnode_create_vobject()..
pjd added inline comments to D45244: Stop treating size 0 as unknown size in vnode_create_vobject()..
May 19 2024
May 19 2024
Fall back to read(2)/write(2) in case of EBADF and EISDIR.
Style.
- Don't call vn_getsize_locked() in case of VNODE_NO_SIZE.
- Assume we can have a disk for both cases (size == 0 and size == VNODE_NO_SIZE).
pjd added reviewers for D45244: Stop treating size 0 as unknown size in vnode_create_vobject().: kib, oshogbo, allanjude.
pjd added reviewers for D45243: Introduce fcopydata() and fcopydata_sig() functions.: mm, oshogbo, allanjude.
Jan 22 2024
Jan 22 2024
pjd added reviewers for D43547: capsicum: SIGTRAP is delivered also on ECAPMODE error.: oshogbo, allanjude.
Jan 21 2024
Jan 21 2024
Jan 20 2024
Jan 20 2024
Thank you for working on this!
Remove compatibility code from libc.
Jan 18 2024
Jan 18 2024
In D43488#991394, @mjg wrote:What's the motivation here? If you are running into scalability problems, it has to be allproc and proctree locks (amongst others).
pjd updated the summary of D43487: bitset(9): Implement BIT_ISSET_ATOMIC(), BIT_FFC() and BIT_FFC_AT()..
pjd added reviewers for D43488: kern: Implement lockless method for obtaining new PID.: kib, markj, mjg.
pjd added a comment to D43487: bitset(9): Implement BIT_ISSET_ATOMIC(), BIT_FFC() and BIT_FFC_AT()..
PoC, still missing bitset(9) manual page update. Part of: https://reviews.freebsd.org/D43488
pjd requested review of D43487: bitset(9): Implement BIT_ISSET_ATOMIC(), BIT_FFC() and BIT_FFC_AT()..
Jan 17 2024
Jan 17 2024
jail: Fix information leak.
Dec 30 2023
Dec 30 2023
kern: Introduce kern.pid_max_limit sysctl.
Dec 28 2023
Dec 28 2023
Dec 26 2023
Dec 26 2023
Dec 22 2023
Dec 22 2023
Introduce kern.pid_max_limit.
seq(1): Put separator only between the elements.
Dec 19 2023
Dec 19 2023
pjd added reviewers for D43094: seq(1): Put separator only between the elements.: oshogbo, allanjude, emaste.
Remove MAX_PID check from pkill.
Dec 18 2023
Dec 18 2023
Dec 16 2023
Dec 16 2023
vm: Plug umtx shm object leak.
In D43077#982025, @kib wrote:For NO_PID, also look at usr.sbin/bsnmpd/modules/snmp_hostres/hostres_swrun_tbl.c and contrib/sendmail/src/sendmail.h (later is probably fine).
Add missing include.
- Remove hardcoded PID_MAX from sched_{g,s}etaffinity().
- Remove hardcoded NO_PID from bsnmpd.
In D43077#982024, @kib wrote:If you manually upload diffs, please generate them with something like git diff -U999999 <whatever> so that the full content is available.
pjd retitled D43077: Don't hardcode maximum PID. from Don't use hardcoded PID_MAX value. to Don't hardcode maximum PID..
Jun 20 2023
Jun 20 2023
pjd requested changes to D26484: /etc/rc: optionally turn on new 'rcorder -p' option to run rc scripts in parallel. .
Apr 17 2023
Apr 17 2023
zfs: Add vfs.zfs.bclone_enabled sysctl.
pjd committed rG1959e122d932: zfs: Merge https://github.com/openzfs/zfs/pull/14739 (authored by pjd).
zfs: Merge https://github.com/openzfs/zfs/pull/14739
zfs: cherry-pick openzfs/zfs@c71fe7164
Apr 5 2023
Apr 5 2023
We shouldn't make the code more complex and less readable just to optimize for some rare edge cases. If someone disables block cloning, they are most likely not too concerned with performance and trying to avoid an extra vnode lock at the expense of code readability is, in my opinion, the wrong approach.
Thank you for the fix!
Mar 13 2023
Mar 13 2023
In D38814#884116, @mjg wrote:I think this is a step backwards and it is not what I suggested.
For example now any fs which does not provide it's own primitive will take a trip through returning EOPNOTSUPP when it can be avoided.
I suggested everyone handling as much as they can and otherwise punting to vn_generic_copy_file_range or a differently named fallback with the same result.
To further illustrate the win in nullfs case, consider the following with 2 nullfs mount points:
- we land in null_copy_file_range or whatever
- both target vnodes get "unwrapped"
- the vop gets invoked in vnode1 with both as arguments and we are done here
With the proposed patch it will be instead:
- we land in null_copy_file_range or whatever
- both target vnodes get found + refed
- the vop returns EOPNOTSUPP
- the routine unrefs vnodes and returns
- ... now vn_generic_copy_file_range will keep calling VOP_READ and VOP_WRITE while looking up + refing (and unrefing) vnodes for each call
Mar 1 2023
Mar 1 2023
In D38814#883415, @asomers wrote:LGTM. But is there any file system that you expect to support cross-mountpoint copy_file_range ?
Feb 27 2023
Feb 27 2023
In D38803#883156, @mjg wrote:My grep fails to find any existing custom routines, I'm guessing one for zfs will be showing up later. I think this also means there is no worry of any backwards-incompatible breakage.
Feb 3 2023
Feb 3 2023