Page MenuHomeFreeBSD

bnovkov (Bojan Novković)
User

Projects

User Details

User Since
Jan 29 2022, 5:50 PM (225 w, 4 d)

Recent Activity

Yesterday

bnovkov accepted D57265: limits: Improve consistency.
Wed, May 27, 3:37 PM

Tue, May 26

bnovkov requested changes to D57259: libsys, libutil: Document RLIMIT_VMM.

This partially overlaps with D57067. Let me know how you want to handle the overlap.

Tue, May 26, 9:16 PM
bnovkov updated the diff for D56925: riscv/pmap.c: Avoid spurious kernel page faults when inserting new PTEs.

Address @markj 's comment.

Tue, May 26, 7:41 PM

Fri, May 22

bnovkov updated the test plan for D57176: clk: Initial support for the SpacemiT K1 clock control units.
Fri, May 22, 6:42 PM
bnovkov updated the test plan for D57178: sdhci: Initial support for the SpacemiT K1 sdhci controller.
Fri, May 22, 6:39 PM
bnovkov requested review of D57178: sdhci: Initial support for the SpacemiT K1 sdhci controller.
Fri, May 22, 6:37 PM
bnovkov requested review of D57177: sys/dts: Add SD card overlays for the BananaPi-F3 SoC.
Fri, May 22, 6:37 PM
bnovkov requested review of D57176: clk: Initial support for the SpacemiT K1 clock control units.
Fri, May 22, 6:37 PM
bnovkov requested review of D57175: riscv: Add spacemit SoC files to the build.
Fri, May 22, 6:37 PM

Mon, May 18

bnovkov requested review of D57067: vmm: Fully adopt the getrlimit(2) machinery for limiting the number of VMM instances.
Mon, May 18, 3:33 PM

Sun, May 17

bnovkov accepted D57013: p9fs.4: MLINK to virtio_p9fs.4.
Sun, May 17, 9:36 PM
bnovkov accepted D57031: limits: Further RLIMIT_VMM cleanup.

Looks good to me, thank you for working on this. I'll follow up on this with a patch that fully incorporates the uses of RLIMIT_VMM into the setrlimit(2) machinery tomorrow.

Sun, May 17, 4:21 PM
bnovkov added a comment to D57031: limits: Further RLIMIT_VMM cleanup.

It feels a little weird to clutter up ulimit -a and limits with a limit for this pretty exotic feature.

Sun, May 17, 4:20 PM
bnovkov added a comment to D55038: kern_resource.c: Track per-UID resource limits in 'struct uidinfo'.

I would say this should be fixed by clarifying the man page. For me, it's clear that all rlimits only apply to the current process and its children, while the tracking is per real UID for some of the limits.

I disagree, the man page can only paper over the fundamental problem that arises from mixing limits with different scopes in a system call that only operates on one of them.
Let's say that you're faced with a situation where you suddenly need to drastically lower a per-UID limit for a user and have it take effect immediately. How are you going to accomplish this with the way we currently handle per-UID limits?
Changes to the limit value in login.conf will only apply to new sessions, which is a problem and a IMO big flaw in our current implementation.
Having a mechanism for enforcing per-UID limits but not being able to change the limit's value and have it take effect for that UID immediately makes no sense.

Sun, May 17, 4:17 PM

Sat, May 16

bnovkov added a comment to D55038: kern_resource.c: Track per-UID resource limits in 'struct uidinfo'.

With the existing rlimit functionality specified by POSIX, I can, as a user, defend against a forkbomb or prevent forks/kqueues entirely in a particular process subtree. A system administrator can also set resource limits which will be applied at login or service start.

Sat, May 16, 9:55 PM
bnovkov added inline comments to D55038: kern_resource.c: Track per-UID resource limits in 'struct uidinfo'.
Sat, May 16, 5:20 PM
bnovkov updated the diff for D55038: kern_resource.c: Track per-UID resource limits in 'struct uidinfo'.

Rebase

Sat, May 16, 5:18 PM
bnovkov updated the diff for D55039: Introduce setrlimit_uid(2).

Rebase and address @brooks 's comment.

Sat, May 16, 5:15 PM

Thu, May 14

bnovkov updated the diff for D57003: riscv/mp_machdep.c: Flush the TLB after releasing APs.

Address @markj 's comment.

Thu, May 14, 5:43 PM
bnovkov added inline comments to D57003: riscv/mp_machdep.c: Flush the TLB after releasing APs.
Thu, May 14, 5:33 PM
bnovkov updated the diff for D56925: riscv/pmap.c: Avoid spurious kernel page faults when inserting new PTEs.

Address @markj 's comments.

Thu, May 14, 4:27 PM
bnovkov added inline comments to D56925: riscv/pmap.c: Avoid spurious kernel page faults when inserting new PTEs.
Thu, May 14, 4:27 PM
bnovkov updated the test plan for D57003: riscv/mp_machdep.c: Flush the TLB after releasing APs.
Thu, May 14, 4:12 PM
bnovkov requested review of D57003: riscv/mp_machdep.c: Flush the TLB after releasing APs.
Thu, May 14, 4:09 PM
bnovkov updated the test plan for D56925: riscv/pmap.c: Avoid spurious kernel page faults when inserting new PTEs.
Thu, May 14, 4:09 PM
bnovkov updated the diff for D56925: riscv/pmap.c: Avoid spurious kernel page faults when inserting new PTEs.

Rework patch - flushing the TLB when inserting a new mapping fixes the original issue.

Thu, May 14, 4:04 PM

Sun, May 10

bnovkov added a comment to D56925: riscv/pmap.c: Avoid spurious kernel page faults when inserting new PTEs.

The Vector spec does not require any ordering on the memory accesses performed, so a legal implementation could alternate which address faults and this would never make forward progress.

Sun, May 10, 7:31 PM
bnovkov updated the test plan for D56924: riscv/pmap.c: Add a ddb command for inspecting PTE hierachy.
Sun, May 10, 4:34 PM
bnovkov updated the test plan for D56925: riscv/pmap.c: Avoid spurious kernel page faults when inserting new PTEs.
Sun, May 10, 4:31 PM
bnovkov requested review of D56925: riscv/pmap.c: Avoid spurious kernel page faults when inserting new PTEs.
Sun, May 10, 4:21 PM
bnovkov requested review of D56924: riscv/pmap.c: Add a ddb command for inspecting PTE hierachy.
Sun, May 10, 4:20 PM
bnovkov requested review of D56923: riscv: Add SpacemiT K1 vendor and CPU IDs.
Sun, May 10, 4:20 PM

Wed, May 6

bnovkov added a comment to D56846: bhyve: enlarge 64-bit PCI MMIO hole to 1 TiB.

Was this change motivated by this comment in PR290920 and have you tested this patch somehow yet?
If not, I think that commenter would be more than willing to test it.

Wed, May 6, 2:16 PM

Apr 14 2026

bnovkov committed rG893b90cd9649: netstat: Add -F support for -g (authored by bnovkov).
netstat: Add -F support for -g
Apr 14 2026, 11:11 AM

Apr 7 2026

bnovkov closed D56205: netstat: Add -F support for -g.
Apr 7 2026, 2:42 PM
bnovkov committed rGcff675e83cdb: netstat: Add -F support for -g (authored by bnovkov).
netstat: Add -F support for -g
Apr 7 2026, 2:42 PM

Mar 31 2026

bnovkov accepted D56119: vmm: Restore the ability to create VMs as root in a jail.
Mar 31 2026, 8:23 PM
bnovkov requested review of D56205: netstat: Add -F support for -g.
Mar 31 2026, 8:20 PM

Mar 24 2026

bnovkov committed rGc09ccfc2665b: libc/db: Remove unused hash functions in hash_func.c (authored by bnovkov).
libc/db: Remove unused hash functions in hash_func.c
Mar 24 2026, 10:38 AM
bnovkov committed rG6ad94d549eb2: libpmc/pmu-events: Add support for new json fields (authored by bnovkov).
libpmc/pmu-events: Add support for new json fields
Mar 24 2026, 10:38 AM
bnovkov committed rGcb9e24221672: pmc: Import Intel Meteor Lake events (authored by bnovkov).
pmc: Import Intel Meteor Lake events
Mar 24 2026, 10:38 AM
bnovkov closed D55842: libc/db: Remove unused hash functions in hash_func.c.
Mar 24 2026, 10:38 AM
bnovkov closed D56017: libpmc/pmu-events: Add support for new json fields.
Mar 24 2026, 10:38 AM
bnovkov closed D55641: pmc: Import Intel Meteor Lake events.
Mar 24 2026, 10:38 AM

Mar 21 2026

bnovkov added a comment to D47678: arm64: Implement pmap_map_io_transient.

@bnovkov do you know why the "needs close" check determines this one has already landed? (i.e. fbsd_author_needs_close.html)

Mar 21 2026, 4:13 PM
bnovkov added a comment to D55641: pmc: Import Intel Meteor Lake events.

Looks good to me, just be aware that I landed a fix that forces us to whitelist json fields. I don't see any new fields but you should check that it builds against head as of bfb2fd5f66183454cfe8771595df09c0f23c7efb

Mar 21 2026, 2:42 PM
bnovkov requested review of D56017: libpmc/pmu-events: Add support for new json fields.
Mar 21 2026, 2:41 PM

Mar 15 2026

bnovkov accepted D55869: Revert "bsd.own.mk: Deorbit compat include of bsd.compiler.mk".
Mar 15 2026, 7:44 PM
bnovkov accepted D55867: bsd.own.mk: Deorbit compat include of bsd.compiler.mk.
Mar 15 2026, 6:45 PM

Mar 13 2026

bnovkov accepted D55370: alloca.3: Add entry about defining VLAs in same block as alloca() to BUGS.
Mar 13 2026, 11:24 AM
bnovkov requested review of D55842: libc/db: Remove unused hash functions in hash_func.c.
Mar 13 2026, 11:10 AM

Mar 3 2026

bnovkov requested review of D55641: pmc: Import Intel Meteor Lake events.
Mar 3 2026, 9:46 PM

Feb 25 2026

bnovkov closed D55463: mpool/mpool_get.c: Avoid clobbering 'errno' when handling 'pread' errors.
Feb 25 2026, 11:31 AM
bnovkov committed rGbce0c14fe19d: mpool/mpool_get.c: Avoid clobbering 'errno' when handling 'pread' errors (authored by bnovkov).
mpool/mpool_get.c: Avoid clobbering 'errno' when handling 'pread' errors
Feb 25 2026, 11:31 AM

Feb 24 2026

bnovkov accepted D55483: system(3): Clarify return values.
Feb 24 2026, 2:25 PM
bnovkov accepted D55482: system(3): Write our own tests.
Feb 24 2026, 2:19 PM
bnovkov accepted D55471: system(3): Improve signal handling.
Feb 24 2026, 2:07 PM
bnovkov accepted D55484: system(3): Fix null case.
Feb 24 2026, 1:52 PM

Feb 23 2026

bnovkov added inline comments to D55463: mpool/mpool_get.c: Avoid clobbering 'errno' when handling 'pread' errors.
Feb 23 2026, 4:35 PM
bnovkov updated the diff for D55463: mpool/mpool_get.c: Avoid clobbering 'errno' when handling 'pread' errors.

Remove redundant errno save

Feb 23 2026, 4:35 PM
bnovkov requested review of D55463: mpool/mpool_get.c: Avoid clobbering 'errno' when handling 'pread' errors.
Feb 23 2026, 3:52 PM

Feb 19 2026

bnovkov accepted D54741: vmm: Enable unprivileged bhyve.
Feb 19 2026, 5:15 PM
bnovkov accepted D54742: vmm.4: Add information on VM access control.
Feb 19 2026, 5:15 PM
bnovkov accepted D54740: vmm: Add privilege checks to vmmctl operations.
Feb 19 2026, 5:14 PM
bnovkov accepted D55379: bhyveload: simplify cb_open() and eliminate minor TOCTOU.
Feb 19 2026, 5:11 PM
bnovkov added inline comments to D54641: bhyve/pci_emul: Use vmem to track BAR allocations.
Feb 19 2026, 1:58 PM

Feb 18 2026

bnovkov added a comment to D54641: bhyve/pci_emul: Use vmem to track BAR allocations.

I guess this mostly relates to support for legacy and 32-bit guest operating systems? I tend to think it's undesirable to break support for them, given that virtualizing legacy systems is a major reason to use bhyve in the first place, at least in principle.

Does it simplify things at all to use a single vmem arena for both 32-bit and 64-bit memory BARs, and apply constraints as needed when calling vmem_xalloc()?

Feb 18 2026, 5:09 PM
bnovkov updated the diff for D54641: bhyve/pci_emul: Use vmem to track BAR allocations.

Fix PCI passthrough:

  • Introduce a state machine that tracks a BAR's address. This allows us to properly release and allocate BAR addresses from the appropriate pool when the guest starts migrating BARs
  • Comply with the remark in pci_emul_assign_bar and allocate small MEM64 BARs from the MEM32 pool
  • Allow the guest to move an already allocated BAR to a new address
Feb 18 2026, 5:05 PM

Feb 10 2026

bnovkov added a comment to D54641: bhyve/pci_emul: Use vmem to track BAR allocations.

Have you tested with PCI passthru configured? With just this patch applied, I get an assertion failure in update_bar_address(). Same result if I test your github branch.

Feb 10 2026, 11:04 PM

Feb 8 2026

bnovkov accepted D55158: sdhci_fdt_rockchip: Move ofw_bus_status_okay check.
Feb 8 2026, 4:39 PM
bnovkov accepted D55159: sdhci_fdt_rockchip: Don't return 0 from probe routine.

LGTM.

Feb 8 2026, 4:39 PM

Feb 7 2026

bnovkov updated the diff for D54648: Introduce libbhyve.

Address @markj 's comment - switch to INTERNALLIB

Feb 7 2026, 11:33 AM
bnovkov added inline comments to D54648: Introduce libbhyve.
Feb 7 2026, 11:33 AM

Feb 6 2026

bnovkov committed rG625ed651833e: pmc: Import Intel Granite Rapids events (authored by bnovkov).
pmc: Import Intel Granite Rapids events
Feb 6 2026, 3:21 PM
bnovkov committed rG808a573e6e14: pmc: Import Intel Granite Rapids events (authored by bnovkov).
pmc: Import Intel Granite Rapids events
Feb 6 2026, 3:20 PM

Feb 5 2026

bnovkov added inline comments to D54646: bhyve/pci_emul.c: Add handlers for ACPI PCI hotplug metadata.
Feb 5 2026, 6:20 PM
bnovkov updated the diff for D54646: bhyve/pci_emul.c: Add handlers for ACPI PCI hotplug metadata.

Address @markj 's comments.

Feb 5 2026, 6:20 PM
bnovkov added inline comments to D54643: bhyve: Refactor pci_irq_route.
Feb 5 2026, 6:07 PM
bnovkov updated the diff for D54643: bhyve: Refactor pci_irq_route.

Address @markj 's comments.

Feb 5 2026, 6:07 PM
bnovkov added a comment to D54641: bhyve/pci_emul: Use vmem to track BAR allocations.

Have you tested with PCI passthru configured? With just this patch applied, I get an assertion failure in update_bar_address(). Same result if I test your github branch.

Feb 5 2026, 6:04 PM
bnovkov updated the diff for D54641: bhyve/pci_emul: Use vmem to track BAR allocations.

Address @markj 's comments.

Feb 5 2026, 6:03 PM
bnovkov updated the diff for D54644: bhyve/pci_emul.c: Setup fixed PCI irq mappings for hotpluggable slots.

Address @markj 's comments.

Feb 5 2026, 6:02 PM

Feb 4 2026

bnovkov committed rGa3ff85e11925: pmc: Import Intel Granite Rapids events (authored by bnovkov).
pmc: Import Intel Granite Rapids events
Feb 4 2026, 3:42 PM
bnovkov closed D55081: pmc: Import Intel Granite Rapids events.
Feb 4 2026, 3:41 PM

Feb 3 2026

bnovkov requested review of D55081: pmc: Import Intel Granite Rapids events.
Feb 3 2026, 3:33 PM
bnovkov accepted D55068: vmm: Fix a resource leak in an error path.
Feb 3 2026, 12:05 PM
bnovkov accepted D55069: vmm: Remove an unneeded NULL pointer check.
Feb 3 2026, 12:05 PM

Feb 1 2026

bnovkov requested review of D55041: login: install per-UID setrlimit(2) limits on login.
Feb 1 2026, 5:22 PM
bnovkov requested review of D55040: lib{c,sys}: Expose setrlimit_uid(2) as an interposed syscall.
Feb 1 2026, 5:22 PM
bnovkov requested review of D55039: Introduce setrlimit_uid(2).
Feb 1 2026, 5:22 PM
bnovkov requested review of D55038: kern_resource.c: Track per-UID resource limits in 'struct uidinfo'.
Feb 1 2026, 5:22 PM
bnovkov requested review of D55037: getrlimit.2: Add standards section.
Feb 1 2026, 5:22 PM

Jan 27 2026

bnovkov updated the diff for D54654: bhyve/net_backends: Source file descriptors from nvlists.

Use procdesc(4) to enable slirp backend hotplugging.

Jan 27 2026, 7:54 PM
bnovkov committed rG4bcc5a3cdc05: btree/bt_seq.c: Fix two NULL pointer dereferences (authored by bnovkov).
btree/bt_seq.c: Fix two NULL pointer dereferences
Jan 27 2026, 4:49 PM
bnovkov closed D54905: btree/bt_seq.c: Fix two NULL pointer dereferences.
Jan 27 2026, 4:49 PM
bnovkov requested review of D54905: btree/bt_seq.c: Fix two NULL pointer dereferences.
Jan 27 2026, 3:35 PM
bnovkov committed rG1e233e393ddd: btree/bt_split.c: Fix a misaligned if statement (authored by bnovkov).
btree/bt_split.c: Fix a misaligned if statement
Jan 27 2026, 1:53 PM

Jan 24 2026

bnovkov updated the diff for D54654: bhyve/net_backends: Source file descriptors from nvlists.

Fix slirp_init_fds.

Jan 24 2026, 7:10 PM
bnovkov updated the diff for D54648: Introduce libbhyve.

Fix the LIBBHYVEDIR variable.

Jan 24 2026, 7:07 PM

Jan 20 2026

bnovkov accepted D54743: vmm: Start using exterror.
Jan 20 2026, 2:37 PM