User Details
- User Since
- Mar 11 2014, 8:46 PM (604 w, 5 d)
Fri, Oct 10
Thu, Oct 9
Mon, Oct 6
Fri, Oct 3
Rework switch statement
Wed, Oct 1
Tue, Sep 30
Thu, Sep 25
Typo in commit title: s/FIONIO/FIONBIO/
Tue, Sep 16
Sep 13 2025
Rebase on new commit
Sep 12 2025
Sep 11 2025
The point is any nested kernel exception saves the "wrong" value in the x18 stack in the trapframe. That value isn't used during exception exit so it doesn't matter currently (though Konrad I think does depend on changing x18 in trapframes downstream). The way this is visible in kgdb is that when you unwind across a nested exception, gdb believes that x18's value is saved in the trapframe (it just always believes the trapframe layout for any exception) so if you do p $x18 in the frames "above" a nested exception it will not reflect the actual value the CPU was using. So this is true for any nested exception (e.g. a device interrupt taking while handling a system call).
Sep 10 2025
I had worked on this patch a while ago due to the weird kgdb issue, but @def has some downstream changes in CheriBSD where the wrong saved value in the trapframe matters outside of just debugging I believe.
Sep 9 2025
Sep 5 2025
The bug of always reverting back to disabling FIONBIO dates back to the very first version of fcntl() 42 years ago: https://svnweb.freebsd.org/csrg/sys/kern/kern_descrip.c?r1=12748&r2=12747&pathrev=12748
I tested this in QEMU by using an NVMeoF connection using CRC32 digests over to another x86 VM running the target side of the NVMeoF connection.
Sep 4 2025
Thanks, I will update the commit log.
Sep 3 2025
I suspect this was added while working on a merge from upstream early in the merge process but then made unnecessary later in the merge process. This raises an error on CheriBSD since the enum value is cast to a uintptr_t and then back to an enum inside of __DECONST and that looks like a cast to a capability from an integer which raises the error.
I need to think about this. I don't really want to have the PCI bus directly reading the config registers from the parent bridge. It's also true that you want to not release the bus until all VFs using that bus have been torn down, so you really kind of want a refcounted bus_alloc_resource here (in essence). It might be that just switching from RF_ACTIVE to RF_SHAREABLE when calling bus_alloc_resource is sufficient however.
Sep 2 2025
Aug 29 2025
I think it would be useful (if possible) to reformat the list of existing SRCS as a separate commit. It will be clearer what the differences from the regeneration are when it comes to reviewing those, and will also be easier to bisect if needed.
Aug 28 2025
Replaces part of D52194 where there is some discussion. This was broken in the original addition of MK_LIB32==no removal in rG74c52c652633228dead1f7f5e7e46e21cb518a67.
Replaces part of D52194
For now I will split some parts of this out into separate reviews.
Aug 27 2025
Simplify and add CLEANFILES