User Details
- User Since
- Jul 4 2018, 7:23 PM (439 w, 8 h)
Yesterday
Tue, Dec 1
Mon, Nov 30
Thanks to the large copyright header that matches, Phabricator infers a copy action that isn't what actually happened and renders this in a confusing way, but it does at least show the header is identical to interposing_table.c's...
Update copyright header to be a copy of those added in 8495e8b1e9e13fb707296a486acf7538dbfa12b2
Rebased and dropped remaining libc_private.h include
Sun, Nov 29
Sat, Nov 28
To avoid bringing in libc implementation that fetches more that is
acceptable for libsys.
Fri, Nov 27
Thank you; I'll give this a proper look through later tonight
Otherwise this looks ok, thanks for taking this up. I'll defer landing my libsys_private.h patch until after this series (and drop the remaining use of libc_private.h in it).
I don't think I understand what's wrong with the plain C versions of the string functions in libc?
Hm. I suspect that’s amd64-specific due to the archlevels.c or whatever it is. I’ve not seen strlen show up on arm64 at least.
Thu, Nov 26
Wed, Nov 25
This precludes the ability for userspace to emulate any instructions. It should be left as a VM exit, and the userspace process can inject it into the guest if it decides not to handle it. See arm64's EXCP_UNKNOWN -> VM_EXITCODE_HYP -> vm_inject_exception.
If your threat model is "your root filesystem is malicious" then how does that map to "run bsdinstall from root filesystem with sh from root filesystem and all the system tools from root filesystem" not itself being also broken? This does not sound like a coherent threat model to me.
But yes, that one line of this diff is the only one that one might be able to argue could have some tangible functional benefit beyond churn. The rest is just churn and, in some cases, golfing.
This whole diff is pointless churn.
Diff is fine. Commit message is a lot of words for something very simple. And the last paragraph is misleading to me; it sounds like you're changing the code to not render the 100%, but that's already the case, and not really relevant beyond maybe a one sentence observation about the existing code.
Tested via make tinderbox
Tue, Nov 24
As with D62023, I'm getting strong slop vibes. Is this all your own work, including the text?
Thank you for splitting the revision up.
Mon, Nov 23
Call me old fashioned but kernel changes to nullfs(4) and userspace changes to sysrc(8) belong in separate revisions.
Fri, Nov 20
Worth a reference to the commit that motivated this. Not sure if it's quite suited for a Fixes: or should just be an ad-hoc reference.
Thu, Nov 19
Wed, Nov 18
Can you elaborate on what reorderings you think are possible with this set of fences?
Tue, Nov 17
This is entirely arbitrary, and the answer is surely "don't do that". Use U-Boot as your bootrom and boot your kernel normally.
Fri, Nov 13
Is there a reason why you did not use my proposed diffs?
This is still not minimal like I suggested
Thanks (though I will tack on "and overflowing the allocation by 16 cells" at the end of the second paragraph for completeness, I just didn't want it to be the primary focus of the subject/body)
Thu, Nov 12
Buffer overflow isn't the interesting part. What matters more is it's just wrong. There's no real security concern here. So I don't think it's helpful to highlight that as the first thing in the subject line (if at all; it can be mentioned as an aside in the body), as that's just going to make people think security issue.
Wed, Nov 11
Either ports shouldn't be leaking DISTDIR into the base environment or the base build system here should be sanitising its environment. Renaming it just papers over the underlying issue.
Fri, Nov 6
Thu, Nov 5
Wed, Nov 4
Should we move the random instance inside the softc and make it work instead? Also means only paying for the space if you need it, not that it’s big.
Tue, Nov 3
Can you please (a) avoid unnecessary churn (b) separate out and properly justify each logical change? The a1 addition in vmm_sbi_ecall seems entirely unrelated, but I also don't understand why it's needed, so if you believe it is, put it in its own revision with a proper commit message.
Nov 2 2026
Oct 30 2026
Oct 29 2026
Oct 17 2026
That is not in general sufficient reasoning
Commit message does not say the "why", only the "what"; i.e. it doesn't say under what circumstances this can happen. Can it happen? It would seem like a rather broken state to be in.
Oct 16 2026
Oct 7 2026
Oct 6 2026
Alternatively, why not just adjust the existing loop that populates segs to instead take min(p_vaddr) and max(p_vaddr + p_memsz)? It wouldn't be hard to do and would remove the need for this restriction (and without any complex sorting). The only thing you'd miss is handling overlapping segments, but to be honest I don't think that would necessarily be a problem, we'd do exactly what the file asked for and load the segments in that order, but it just might result in the module shooting itself in the foot, which I don't see as any different from the countless other ways a module can corrupt its own internal state and panic your kernel. At the end of the day if you're loading a module into the kernel you're trusting the module to not itself be a panic-fest, all the kernel linker should be doing is avoiding confusing/corrupting things *outside* the module.
Oct 3 2026
If you’re to use them, at least have the decency to remove all the slop and write a proper commit message. As it stands this is a very low-effort change that feels extractive.
Did you use LLMs to generate this?
Sep 29 2026
Sep 28 2026
The only reason to do have this singular RWX segment would be if whatever's loading the kernel cannot tolerate more than one PT_LOAD. I hope that's really not the case. Manually specifying the program headers really sucks as a thing to do (no PT_NOTE for NT_GNU_BUILD_ID, no PT_GNU_RELRO, no PT_INTERP with /red/herring, and any other helpful things your toolchain might normally add...).
Sep 22 2026
Sep 21 2026
I intend to review this in the coming days
Sep 18 2026
Please go read all of D40474
Sep 16 2026
Sep 15 2026
A higher level comment: I don't think we should be landing tree-wide changes to support -fbounds-safety unless there's community buy-in for actually adopting it as an in-tree option in parts of the kernel. Otherwise we're picking up a lot of churn and annotations that will bit-rot and pollute the code for no gain.
Prevailing style is to put a space between the * and qualifier that follows, which all these new annotations should follow.
Is this necessary? Do you not want LLDB to print trapframes as special, like KGDB does, and like GDB does for signal frames?
How did a plugin end up with a broken ELF note, and why are we shipping it?
Um, yeah, if pkg produces a METALOG that is not readable by makefs, due to not escaping the whitespace, that's a bug in pkg to fix in pkg? And it's impossible to reliably escape at this point, because it is inherently ambiguous whether what comes after the space is a continuation of the path or a new key=value pair. So we really should not be trying to guesstimate what the correct METALOG entry is.