Page MenuHomeFreeBSD

Contributor Reviews (src)Project
ActivePublic

Recent Activity

Fri, Nov 6

ziaee closed D58476: uname.1: Document which flags are non-POSIX.
Fri, Nov 6, 7:55 PM · Contributor Reviews (src), manpages, docs
ziaee accepted D58476: uname.1: Document which flags are non-POSIX.

Sorry this one fell through the cracks, thanks Artem!

Fri, Nov 6, 6:58 PM · Contributor Reviews (src), manpages, docs

Thu, Oct 15

mchoo abandoned D54753: queue(3): add function-based API.
Thu, Oct 15, 8:45 PM · Contributor Reviews (src)

Oct 4 2026

sobomax closed D59356: ffs: revalidate mkdir dependencies after vnode lookup.
Oct 4 2026, 7:27 PM · Contributor Reviews (src)
kib accepted D59356: ffs: revalidate mkdir dependencies after vnode lookup.
Oct 4 2026, 7:26 AM · Contributor Reviews (src)
pho added a comment to D59356: ffs: revalidate mkdir dependencies after vnode lookup.

I completed a full stress test (more than a thousand test scenarios) with D59356.188224.patch in 2 days 16 hours.
No problems seen.

Oct 4 2026, 7:05 AM · Contributor Reviews (src)

Oct 2 2026

sobomax added a comment to D59356: ffs: revalidate mkdir dependencies after vnode lookup.
In D59356#1382368, @pho wrote:
In D59356#1381929, @kib wrote:

I think this is fine. I suggest asking Peter to do the full stress2 run with the patch applied.

Hey @pho can you do this? Thanks!

Sure. I have been running tests for a day with D59356.188224.patch added. A full test usually takes 2 1/2 days on my test HW.

Oct 2 2026, 4:41 PM · Contributor Reviews (src)
sobomax added a comment to D59356: ffs: revalidate mkdir dependencies after vnode lookup.
In D59356#1382368, @pho wrote:
In D59356#1381929, @kib wrote:

I think this is fine. I suggest asking Peter to do the full stress2 run with the patch applied.

Hey @pho can you do this? Thanks!

Sure. I have been running tests for a day with D59356.188224.patch added. A full test usually takes 2 1/2 days on my test HW.

Oct 2 2026, 4:38 PM · Contributor Reviews (src)
mchoo updated subscribers of D44456: intelhfi - Intel TD/HFI driver - Part4: Add intelhfi driver's source-code & Makefile..

Sorry for delaying updating hmp(4). Currently my university lab is preparing to design a new thread replacement policy model for FreeBSD. I want to reflect that design to hmp(4) in advance so we can avoid major overhaul to the subsystem later. Right now we are preparing workload samples for benchmarks and I will notify you in this thread as soon as the design draft is completed.

Thank you for the update on the situation.

Regarding the "new thread replacement policy model for FreeBSD," are you intending to develop a new scheduler? If so, I look forward to it and would like to cooperate as much as possible.

Oct 2 2026, 4:21 PM · Contributor Reviews (src)
pho added a comment to D59356: ffs: revalidate mkdir dependencies after vnode lookup.
In D59356#1381929, @kib wrote:

I think this is fine. I suggest asking Peter to do the full stress2 run with the patch applied.

Hey @pho can you do this? Thanks!

Oct 2 2026, 1:25 PM · Contributor Reviews (src)
sobomax added a comment to D59356: ffs: revalidate mkdir dependencies after vnode lookup.
In D59356#1381929, @kib wrote:

I think this is fine. I suggest asking Peter to do the full stress2 run with the patch applied.

Oct 2 2026, 12:36 PM · Contributor Reviews (src)
kib added a reviewer for D59356: ffs: revalidate mkdir dependencies after vnode lookup: chs.
Oct 2 2026, 4:28 AM · Contributor Reviews (src)
kib added a comment to D59356: ffs: revalidate mkdir dependencies after vnode lookup.

I think this is fine. I suggest asking Peter to do the full stress2 run with the patch applied.

Oct 2 2026, 4:28 AM · Contributor Reviews (src)

Sep 30 2026

sobomax updated the diff for D59356: ffs: revalidate mkdir dependencies after vnode lookup.

@kib thanks, all three addressed in the update. Every restart of the dependency selection now goes through the EJUSTRETURN return to flush_pagedep_deps(), and nothing is kept on the private unfinished list while the softdep lock is dropped for a restart.

Sep 30 2026, 4:50 PM · Contributor Reviews (src)

Sep 29 2026

kib added inline comments to D59356: ffs: revalidate mkdir dependencies after vnode lookup.
Sep 29 2026, 10:26 PM · Contributor Reviews (src)
sobomax updated the summary of D59356: ffs: revalidate mkdir dependencies after vnode lookup.
Sep 29 2026, 5:26 PM · Contributor Reviews (src)
sobomax updated the summary of D59356: ffs: revalidate mkdir dependencies after vnode lookup.
Sep 29 2026, 5:25 PM · Contributor Reviews (src)
sobomax added a comment to D59356: ffs: revalidate mkdir dependencies after vnode lookup.

@kib updated as requested, thanks

Sep 29 2026, 4:35 PM · Contributor Reviews (src)
sobomax updated the diff for D59356: ffs: revalidate mkdir dependencies after vnode lookup.

Updated, relative to the previous revision (874f9dd09fea):

Sep 29 2026, 4:31 PM · Contributor Reviews (src)
koinec_yahoo.co.jp added a comment to D44456: intelhfi - Intel TD/HFI driver - Part4: Add intelhfi driver's source-code & Makefile..

Sorry for delaying updating hmp(4). Currently my university lab is preparing to design a new thread replacement policy model for FreeBSD. I want to reflect that design to hmp(4) in advance so we can avoid major overhaul to the subsystem later. Right now we are preparing workload samples for benchmarks and I will notify you in this thread as soon as the design draft is completed.

Sep 29 2026, 1:04 PM · Contributor Reviews (src)

Sep 28 2026

kib added inline comments to D59356: ffs: revalidate mkdir dependencies after vnode lookup.
Sep 28 2026, 5:48 PM · Contributor Reviews (src)
pho added a comment to D59356: ffs: revalidate mkdir dependencies after vnode lookup.
In D59356#1378462, @pho wrote:

Nice test scenario!
Reproduced: https://people.freebsd.org/~pho/stress/log/log0694.txt
As mkdir_blkreuse.sh is a shebang script, the file must have the x bit set.

Isn't it already?

Property	Old Value	New Value
File Mode	null	100755
Sep 28 2026, 5:16 PM · Contributor Reviews (src)
sobomax added a comment to D59356: ffs: revalidate mkdir dependencies after vnode lookup.
In D59356#1378462, @pho wrote:

Nice test scenario!
Reproduced: https://people.freebsd.org/~pho/stress/log/log0694.txt
As mkdir_blkreuse.sh is a shebang script, the file must have the x bit set.

Sep 28 2026, 4:57 PM · Contributor Reviews (src)
pho added a comment to D59356: ffs: revalidate mkdir dependencies after vnode lookup.

Nice test scenario!
Reproduced: https://people.freebsd.org/~pho/stress/log/log0694.txt
As mkdir_blkreuse.sh is a shebang script, the file must have the x bit set.

Sep 28 2026, 8:52 AM · Contributor Reviews (src)
sobomax added a comment to D59356: ffs: revalidate mkdir dependencies after vnode lookup.
In D59356#1375508, @kib wrote:

@pho I tried to coerce ChatGPT Codex to write a reproducer, but it keep refusing claiming that's a security concern. I will try maybe to rephrase it as writing a "unit test to validate the fix."

Peter is exceptionally good in creating the test scenarios.

I suggest you to explain the workload in more details, at the low level. I.e. instead of saying 'we install set of packages on memory disk' say something like 'we create UFS on swap-backed(?) md(4) volume of that size, with SU (or SU+J?) enabled, then create that deep file hierarchy and create that many files, each of that size'.

Sep 28 2026, 6:10 AM · Contributor Reviews (src)
sobomax updated the diff for D59356: ffs: revalidate mkdir dependencies after vnode lookup.

Add a reproducer, worth $30 of Claude Fable credits.

Sep 28 2026, 5:33 AM · Contributor Reviews (src)

Sep 24 2026

mchoo added a comment to D44456: intelhfi - Intel TD/HFI driver - Part4: Add intelhfi driver's source-code & Makefile..
  • Remove code related to getting and setting the capacity value for hmp(4).
    • This code is being removed with the intention of implementing it in hwpstate_intel(4) in the future.
  • Create a mapping table between CPU cores and HFI tables, and improve the code to avoid relying on the SMP CPU topology.
    • Due to a misunderstanding of the intel HFI's specifications, I had mistakenly referenced the CPU group from the SMP(4) CPU topology, whereas I should have retrieved the index pointing to the per-core HFI table from the MSR. Sorry.
  • Merged the score setting logic for hmp(4) from the changes in https://reviews.freebsd.org/D57940

Based on the status of the discussion at https://reviews.freebsd.org/D56546#1341348, I have first addressed the two issues mentioned above regarding intelhfi(4) itself.
I plan to make further adjustments regarding score configuration and value ranges once the discussion and revision status for hmp(4) have progressed.

Finally, I would like to apologize once again for the significant delays in this work caused by a busy schedule at my day job. While this situation is expected to continue for a while, I intend to proceed with the necessary work little by little.

Sep 24 2026, 10:31 PM · Contributor Reviews (src)

Sep 23 2026

kib added a comment to D59356: ffs: revalidate mkdir dependencies after vnode lookup.

@pho I tried to coerce ChatGPT Codex to write a reproducer, but it keep refusing claiming that's a security concern. I will try maybe to rephrase it as writing a "unit test to validate the fix."

Sep 23 2026, 6:58 PM · Contributor Reviews (src)
sobomax added a comment to D59356: ffs: revalidate mkdir dependencies after vnode lookup.

@pho I tried to coerce ChatGPT Codex to write a reproducer, but it keep refusing claiming that's a security concern. I will try maybe to rephrase it as writing a "unit test to validate the fix."

Sep 23 2026, 6:54 PM · Contributor Reviews (src)

Sep 22 2026

koinec_yahoo.co.jp added inline comments to D44456: intelhfi - Intel TD/HFI driver - Part4: Add intelhfi driver's source-code & Makefile..
Sep 22 2026, 12:18 PM · Contributor Reviews (src)
koinec_yahoo.co.jp updated the diff for D44456: intelhfi - Intel TD/HFI driver - Part4: Add intelhfi driver's source-code & Makefile..
  • Remove code related to getting and setting the capacity value for hmp(4).
    • This code is being removed with the intention of implementing it in hwpstate_intel(4) in the future.
  • Create a mapping table between CPU cores and HFI tables, and improve the code to avoid relying on the SMP CPU topology.
    • Due to a misunderstanding of the intel HFI's specifications, I had mistakenly referenced the CPU group from the SMP(4) CPU topology, whereas I should have retrieved the index pointing to the per-core HFI table from the MSR. Sorry.
  • Merged the score setting logic for hmp(4) from the changes in https://reviews.freebsd.org/D57940
Sep 22 2026, 12:09 PM · Contributor Reviews (src)
koinec_yahoo.co.jp updated the diff for D44457: intelhfi - Intel TD/HFI driver - Part5: Add intelhfi driver line to the kernel configuration file (GENERIC) & NOTES file..
Sep 22 2026, 11:42 AM · Contributor Reviews (src)

Sep 8 2026

temcbun_gmail.com abandoned D58328: mktemp.1: Improve the .Nd description.
Sep 8 2026, 9:11 PM · Contributor Reviews (src), manpages, docs
temcbun_gmail.com added a comment to D58328: mktemp.1: Improve the .Nd description.

Thanks for the ping. So I dug in a little further. The existing description is actually aligned with a library, mktemp.3 which has the same description. It can make not only directories, but pipes and fifos and... (etc) which are all normalized to files. Further, mktemp was written by Todd C Miller and even has a website https://www.mktemp.org/ and seems to have the same Nd in every single OS because we're all using the same implementation. So, we should not change it. In fact perhaps it should be in contrib/ to make that more obvious but I do not want to grind that axe.

Sep 8 2026, 9:11 PM · Contributor Reviews (src), manpages, docs

Sep 7 2026

ziaee closed D58329: pw.conf.5: Make the .Nd more informative.
Sep 7 2026, 10:45 PM · Contributor Reviews (src), manpages, docs
ziaee requested changes to D58328: mktemp.1: Improve the .Nd description.

Thanks for the ping. So I dug in a little further. The existing description is actually aligned with a library, mktemp.3 which has the same description. It can make not only directories, but pipes and fifos and... (etc) which are all normalized to files. Further, mktemp was written by Todd C Miller and even has a website https://www.mktemp.org/ and seems to have the same Nd in every single OS because we're all using the same implementation. So, we should not change it. In fact perhaps it should be in contrib/ to make that more obvious but I do not want to grind that axe.

Sep 7 2026, 10:44 PM · Contributor Reviews (src), manpages, docs
temcbun_gmail.com added a comment to D58679: xargs(1): Warn about mutually exclusive -I and -n.

Ping.

Sep 7 2026, 9:50 PM · Contributor Reviews (src)
temcbun_gmail.com added a comment to D58329: pw.conf.5: Make the .Nd more informative.

Ping.

Sep 7 2026, 9:50 PM · Contributor Reviews (src), manpages, docs
temcbun_gmail.com added a comment to D58328: mktemp.1: Improve the .Nd description.

Ping.

Sep 7 2026, 9:50 PM · Contributor Reviews (src), manpages, docs

Sep 5 2026

sobomax added a comment to D59356: ffs: revalidate mkdir dependencies after vnode lookup.
In D59356#1363271, @pho wrote:
In D59356#1363214, @kib wrote:

From the first look, this is fine.
I believe the next step is to help Peter (pho@) to create the reproducer, and get the stress2 testing.
Also, please wait for Kirk' feedback.

That would be nice. I have been seeing the panic a few times over the years, but not after Feb 10 2021.

Sep 5 2026, 10:11 PM · Contributor Reviews (src)
pho added a comment to D59356: ffs: revalidate mkdir dependencies after vnode lookup.
In D59356#1363214, @kib wrote:

From the first look, this is fine.
I believe the next step is to help Peter (pho@) to create the reproducer, and get the stress2 testing.
Also, please wait for Kirk' feedback.

Sep 5 2026, 7:49 AM · Contributor Reviews (src)
kib added a comment to D59356: ffs: revalidate mkdir dependencies after vnode lookup.

From the first look, this is fine.
I believe the next step is to help Peter (pho@) to create the reproducer, and get the stress2 testing.
Also, please wait for Kirk' feedback.

Sep 5 2026, 12:10 AM · Contributor Reviews (src)

Sep 4 2026

kib added a comment to D59356: ffs: revalidate mkdir dependencies after vnode lookup.
In D59356#1362256, @kib wrote:

The new 'find' logic essentially reorders the processing of the newblk dependencies, and I am not sure that this is fine in this case (it is generally not).

IMO the correct solution for the race in flush_pagedep_deps() as described in the summary is to memoize the vnode returned by get_parent_vp(), and then restart the global loop. When you see the MKDIR_BODY dependency, and the inode number matches the memoized result from get_parent_vp(), you can process it without relocking sd_fslock, which closes the race. If the vp is NULL or does not match the inode number, you vput() it, call get_parent_vp(), and restart the loop.

Thanks, I agree that scanning past the first matching newblk is not appropriate because it changes dependency-processing order.

I will rework flush_pagedep_deps() to retain the vnode returned by get_parent_vp(), reacquire sd_fslock, and restart dependency selection. The MKDIR_BODY operation will only proceed when the newly selected dependency's inode matches the retained vnode, avoiding use of the dap that was selected before get_parent_vp() dropped the lock.

One detail I want to confirm: flush_newblk_dep() also drops and reacquires sd_fslock internally around bwrite() and ffs_update(), then repeats newblk_lookup(). If the D_ALLOCDIRECT completes during one of those operations, the next lookup could expose the retained D_ALLOCINDIR in the same way. Should flush_newblk_dep() return to the outer dependency-selection loop after such an operation, or revalidate the associated MKDIR_BODY dependency after reacquiring sd_fslock?

Sep 4 2026, 7:51 PM · Contributor Reviews (src)
sobomax updated the diff for D59356: ffs: revalidate mkdir dependencies after vnode lookup.

Rework to preserve dependencies as suggested by @kib

Sep 4 2026, 6:54 PM · Contributor Reviews (src)
sobomax updated subscribers of D59356: ffs: revalidate mkdir dependencies after vnode lookup.
Sep 4 2026, 6:16 PM · Contributor Reviews (src)
sobomax added a comment to D59356: ffs: revalidate mkdir dependencies after vnode lookup.
In D59356#1362256, @kib wrote:

The new 'find' logic essentially reorders the processing of the newblk dependencies, and I am not sure that this is fine in this case (it is generally not).

IMO the correct solution for the race in flush_pagedep_deps() as described in the summary is to memoize the vnode returned by get_parent_vp(), and then restart the global loop. When you see the MKDIR_BODY dependency, and the inode number matches the memoized result from get_parent_vp(), you can process it without relocking sd_fslock, which closes the race. If the vp is NULL or does not match the inode number, you vput() it, call get_parent_vp(), and restart the loop.

Sep 4 2026, 3:56 AM · Contributor Reviews (src)
kib updated subscribers of D59356: ffs: revalidate mkdir dependencies after vnode lookup.
Sep 4 2026, 2:49 AM · Contributor Reviews (src)
kib added a comment to D59356: ffs: revalidate mkdir dependencies after vnode lookup.

The new 'find' logic essentially reorders the processing of the newblk dependencies, and I am not sure that this is fine in this case (it is generally not).

Sep 4 2026, 2:48 AM · Contributor Reviews (src)

Sep 3 2026

sobomax added a comment to D59356: ffs: revalidate mkdir dependencies after vnode lookup.

Some of the facts supporting this diagnosis:

Sep 3 2026, 8:48 PM · Contributor Reviews (src)
sobomax requested review of D59356: ffs: revalidate mkdir dependencies after vnode lookup.
Sep 3 2026, 8:38 PM · Contributor Reviews (src)