Page MenuHomeFreeBSD

code_fedang.net (Federico Angelilli)
User

Projects

User does not belong to any projects.

User Details

User Since
Feb 9 2026, 2:06 PM (34 w, 3 d)

Recent Activity

Yesterday

code_fedang.net added a comment to D59710: linker: Harden checks for ELFs.

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.

Wed, Oct 7, 2:45 PM

Tue, Oct 6

code_fedang.net updated the diff for D59710: linker: Harden checks for ELFs.

Shorten copyright notice

Tue, Oct 6, 12:55 PM
code_fedang.net retitled D59710: linker: Harden checks for ELFs from linker: Prevent panic on malformed ELF to linker: Harden checks for ELFs.
Tue, Oct 6, 12:54 PM
code_fedang.net added a comment to D59710: linker: Harden checks for ELFs.

since the code that caused the panic has already been fixed on main, maybe we should rename this commit to "fix edgecases" or similar?

Tue, Oct 6, 12:43 PM
code_fedang.net updated the diff for D59710: linker: Harden checks for ELFs.

Rebase against main. Apparently some of these fixes were pushed already

Tue, Oct 6, 12:41 PM

Mon, Oct 5

code_fedang.net added a comment to D59710: linker: Harden checks for ELFs.

done

Mon, Oct 5, 3:52 PM
code_fedang.net updated the diff for D59710: linker: Harden checks for ELFs.

Add copyright text

Mon, Oct 5, 3:51 PM

Tue, Sep 22

code_fedang.net updated the summary of D59710: linker: Harden checks for ELFs.
Tue, Sep 22, 1:56 PM
code_fedang.net updated the diff for D59710: linker: Harden checks for ELFs.

Clean up

Tue, Sep 22, 1:45 PM
code_fedang.net updated the diff for D59710: linker: Harden checks for ELFs.

Added test cases

Tue, Sep 22, 1:42 PM
code_fedang.net updated the diff for D59710: linker: Harden checks for ELFs.

Fix other panics found during testing

Tue, Sep 22, 1:37 PM
code_fedang.net retitled D59710: linker: Harden checks for ELFs from linker: Prevent UB on malformed ELF to linker: Prevent panic on malformed ELF.
Tue, Sep 22, 1:35 PM

Mon, Sep 21

code_fedang.net updated the diff for D59710: linker: Harden checks for ELFs.

Check that segments are already sorted

Mon, Sep 21, 8:12 PM

Fri, Sep 18

code_fedang.net added inline comments to D59602: pciconf: Add -C option to filter by class name.
Fri, Sep 18, 11:21 PM
code_fedang.net updated the diff for D59602: pciconf: Add -C option to filter by class name.

Fix null check

Fri, Sep 18, 11:20 PM

Wed, Sep 16

code_fedang.net added inline comments to D59710: linker: Harden checks for ELFs.
Wed, Sep 16, 4:35 PM

Tue, Sep 15

code_fedang.net added a comment to D59710: linker: Harden checks for ELFs.

Original bugzilla report:217432

Tue, Sep 15, 4:34 PM
code_fedang.net requested review of D59710: linker: Harden checks for ELFs.
Tue, Sep 15, 4:33 PM
code_fedang.net updated the diff for D59602: pciconf: Add -C option to filter by class name.

Address comment

Tue, Sep 15, 3:46 PM

Fri, Sep 11

code_fedang.net added a comment to D59602: pciconf: Add -C option to filter by class name.

Addresses Bug 289923

Fri, Sep 11, 10:29 PM
code_fedang.net updated the diff for D59602: pciconf: Add -C option to filter by class name.

Use strcasecmp instead of strcmp to check class name.

Fri, Sep 11, 10:27 PM
code_fedang.net requested review of D59602: pciconf: Add -C option to filter by class name.
Fri, Sep 11, 10:16 PM

Tue, Sep 8

code_fedang.net updated the diff for D59492: buildpatch: Add kpatch ELF post-processing tool.
  • buildpatch: Add kpatch ELF post-processing tool
  • kpatch: Add example patch module
Tue, Sep 8, 7:52 PM

Sep 7 2026

code_fedang.net added reviewers for D59492: buildpatch: Add kpatch ELF post-processing tool: bnovkov, 0mp.
Sep 7 2026, 5:05 PM
code_fedang.net requested review of D59492: buildpatch: Add kpatch ELF post-processing tool.
Sep 7 2026, 5:04 PM
code_fedang.net updated the summary of D59491: kpatch: Add kernel live-patching subsystem.
Sep 7 2026, 4:55 PM
code_fedang.net requested review of D59491: kpatch: Add kernel live-patching subsystem.
Sep 7 2026, 4:54 PM