Page MenuHomeFreeBSD
Feed Advanced Search

Today

markj added a comment to D51254: vfs_cluster.c: Do not propagate VOP_BMAP errors to the caller.

Looking at the ntfs code, BMAP is failing because fusefs is calling the fuse BMAP operation with blocksize == maxiosize, and that'll generally be much larger than the NTFS cluster size. I'm not sure why fusefs passes that instead of the block size (or why the BMAP operation would take the blocksize as a parameter to begin with, is the block size not fixed by the client filesystem?), but it makes sense that the filesystem driver would return an error in that case.

Sat, Oct 18, 1:50 PM

Yesterday

markj accepted D52542: bhyve: add support for ng_device network backend.

This looks ok to me, but it depends on the other revision, which is as-yet unfinished.

Fri, Oct 17, 4:55 PM
markj abandoned D52400: Enable soft crypto device support when testing soft crypto devices.
Fri, Oct 17, 4:17 PM
markj commandeered D52400: Enable soft crypto device support when testing soft crypto devices.

Closing this since a similar change landed in commit e63bf6aa523eb9a865b7ce34d01e75a13818b367

Fri, Oct 17, 4:16 PM
markj abandoned D45231: man(1) fix to ".so" file redirection.
Fri, Oct 17, 4:13 PM · manpages
markj commandeered D45231: man(1) fix to ".so" file redirection.

I'll close this revision now that the underlying problem has apparently been fixed.

Fri, Oct 17, 4:13 PM · manpages
markj abandoned D50837: Add explicit buffer bounds check and fix some functions.
Fri, Oct 17, 4:07 PM
markj commandeered D50837: Add explicit buffer bounds check and fix some functions.
Fri, Oct 17, 4:07 PM
markj added a comment to D50837: Add explicit buffer bounds check and fix some functions.

This isn't the right place to submit changes to llvm. This copy of llvm is imported from https://github.com/llvm/llvm-project and changes should be proposed there.

Fri, Oct 17, 4:07 PM
markj committed rGf39768e52e51: vmm: Fix a deadlock between vm_smp_rendezvous() and vcpu_lock_all() (authored by markj).
vmm: Fix a deadlock between vm_smp_rendezvous() and vcpu_lock_all()
Fri, Oct 17, 2:31 PM
markj closed D52968: vmm: My attempt at fixing the rendezvous deadlock.
Fri, Oct 17, 2:31 PM
markj committed rG5bc5ce6e61e6: vmstat: Print the number of wired pages in each object (authored by markj).
vmstat: Print the number of wired pages in each object
Fri, Oct 17, 2:15 PM
markj committed rG5a926b3cd53b: linker: Make it easier to find the VNET section layout (authored by markj).
linker: Make it easier to find the VNET section layout
Fri, Oct 17, 2:15 PM
markj committed rG2eaee0dbc28c: vm_object: Export the number of wired pages in vm_object_list_handler() (authored by markj).
vm_object: Export the number of wired pages in vm_object_list_handler()
Fri, Oct 17, 2:15 PM
markj committed rG55ad7c573e5b: vm_object: Reset kvo_path on each iteration in vm_object_list_handler() (authored by markj).
vm_object: Reset kvo_path on each iteration in vm_object_list_handler()
Fri, Oct 17, 2:15 PM
markj committed rG838c8027f9d8: libexec/kgdb: Add new modules and install them together with debug info (authored by markj).
libexec/kgdb: Add new modules and install them together with debug info
Fri, Oct 17, 2:14 PM
markj committed rG1de06221ccec: certctl.8: Update documentation of BUNDLE (authored by markj).
certctl.8: Update documentation of BUNDLE
Fri, Oct 17, 2:14 PM
markj committed rG28c0ef76841b: linprocfs: Add nodes for inotify (authored by markj).
linprocfs: Add nodes for inotify
Fri, Oct 17, 1:01 PM
markj committed rGdfc1041c08ba: netmap: Fix error handling in nm_os_extmem_create() (authored by markj).
netmap: Fix error handling in nm_os_extmem_create()
Fri, Oct 17, 1:00 PM
markj closed D53142: linprocfs: Add nodes for inotify.
Fri, Oct 17, 1:00 PM
markj closed D53066: netmap: Fix error handling in nm_os_extmem_create().
Fri, Oct 17, 1:00 PM
markj accepted D52045: Copy kqueues into the child on fork.
Fri, Oct 17, 12:48 PM
markj accepted D53141: Use canonical names for Linux filesystems.

It's fine. The string here doesn't matter, I usually just use "none".

Fri, Oct 17, 12:44 PM
markj accepted D53158: linux: Make the macro LINUX_IOCTL_SET public.

Nice cleanup.

Fri, Oct 17, 12:41 PM
markj accepted D53155: manpages: Use canonical names for Linux filesystems.
Fri, Oct 17, 12:38 PM

Thu, Oct 16

markj committed rG3b9b64457676: vm: Fix iterator usage in vm_thread_stack_create() (authored by markj).
vm: Fix iterator usage in vm_thread_stack_create()
Thu, Oct 16, 11:16 PM
markj closed D52982: kstack: Fix iterator usage in vm_thread_stack_create().
Thu, Oct 16, 11:16 PM
markj added a comment to D53135: linuxkpi: Fix the definition of BITS_PER_LONG.

This is fine too. We do have some existing cases using sizeof, e.g.

sys/dev/drm2/drm_atomic.h:#define       NB_BITS_PER_LONG                (sizeof(long) * NBBY)
sys/dev/axgbe/xgbe_osdep.h:#define      BITS_PER_LONG                   (sizeof(long) * CHAR_BIT)
Thu, Oct 16, 10:51 PM
markj updated the diff for D53135: linuxkpi: Fix the definition of BITS_PER_LONG.

Typo.

Thu, Oct 16, 10:49 PM
markj updated the diff for D53142: linprocfs: Add nodes for inotify.

Handle review feedback.

Thu, Oct 16, 10:46 PM
markj added a comment to D53141: Use canonical names for Linux filesystems.

It'd make more sense to change the man pages instead. The string in question doesn't matter for synthetic filesystems like these, so we might as well be consistent and use the "fs" suffix everywhere.

Thu, Oct 16, 10:45 PM
markj requested review of D53145: vmm: Move local variables into ioctl handlers.
Thu, Oct 16, 10:31 PM
markj requested review of D53144: vmm: Add PRIV_DRIVER checks for passthru ioctls.
Thu, Oct 16, 10:31 PM
markj requested review of D53143: vmm: Improve register get/set handling a bit.
Thu, Oct 16, 10:31 PM
markj added a comment to D52968: vmm: My attempt at fixing the rendezvous deadlock.

It doesn't look like it fully freezes. However, it gets extremely slow. The circle of the Windows boot loader spins very slowly. Don't know if it will ever reach the desktop.

What output do you see if you run procstat -kk <bhyve PID> while this is happening?

Almost always one vCPU hangs in vm_handle_rendezvous. The output is from a single VM run. I've called procstat a few times within a few seconds:

Thu, Oct 16, 9:57 PM
markj updated the diff for D52968: vmm: My attempt at fixing the rendezvous deadlock.

Fix a silly mistake

Thu, Oct 16, 9:56 PM
markj accepted D53133: quot: Add tests.
Thu, Oct 16, 9:42 PM
markj updated the diff for D53142: linprocfs: Add nodes for inotify.

Try to validate strtol()'s return value.

Thu, Oct 16, 9:29 PM
markj added inline comments to D53133: quot: Add tests.
Thu, Oct 16, 9:18 PM
markj requested review of D53142: linprocfs: Add nodes for inotify.
Thu, Oct 16, 9:05 PM
markj updated the diff for D53135: linuxkpi: Fix the definition of BITS_PER_LONG.

Use SIZEOF_LONG instead. Fix up BITS_PER_LONG_LONG too.

Thu, Oct 16, 3:50 PM
markj committed rGf19f17b3af67: vmrun.sh: Don't require firmware on amd64 unless -E was specified (authored by markj).
vmrun.sh: Don't require firmware on amd64 unless -E was specified
Thu, Oct 16, 2:52 PM
markj accepted D53103: igc: use newly exposed RSS hash key API rather than ad-hoc hashing.
Thu, Oct 16, 2:35 PM
markj accepted D52045: Copy kqueues into the child on fork.
Thu, Oct 16, 1:51 PM
markj accepted D27220: libuvmem: usermode port of vmem(9).
In D27220#1213582, @kib wrote:
In D27220#1213306, @kib wrote:

Looks ok to me. Perhaps this should be a private library instead?

IMO it is generally useful API. Also, I do provide symbol versioning, which does not make sense for a private library: the intent is to keep stable interfaces.

Well, now the kernel's internal interface must be kept stable as well. I don't object, but I'm worried it'll be easy for someone modifying vmem to forget about this.

Yes, I noted the same when parts of msdosfs were used in makefs (AFAIR). But there it is much simpler interface, and if the interface for kernel or userspace starts drifting, the code can be easily forked to the residual part.

Thu, Oct 16, 1:27 PM
markj added a comment to D53135: linuxkpi: Fix the definition of BITS_PER_LONG.

Note, there are quite a few other definitions of BITS_PER_LONG that have similar problems, but they're mostly in obsolete or unmaintained drivers. I'm not sure whether to sweep through and fix them too.

Thu, Oct 16, 1:22 PM
markj requested review of D53135: linuxkpi: Fix the definition of BITS_PER_LONG.
Thu, Oct 16, 1:14 PM

Wed, Oct 15

markj committed rG3509dcd11a98: socket: Annotate sooptcopyin() and sooptcopyout() with __result_use_check (authored by markj).
socket: Annotate sooptcopyin() and sooptcopyout() with __result_use_check
Wed, Oct 15, 8:20 PM
markj committed rG937693fc9e4f: libnv: Fix a length check in nvpair_unpack_string_array() (authored by markj).
libnv: Fix a length check in nvpair_unpack_string_array()
Wed, Oct 15, 8:20 PM
markj closed D53114: socket: Annotate sooptcopyin() and sooptcopyout() with __result_use_check.
Wed, Oct 15, 8:20 PM
markj committed rGc86af2cc4cd1: imgact_elf: Check note body sizes (authored by markj).
imgact_elf: Check note body sizes
Wed, Oct 15, 8:20 PM
markj closed D53069: libnv: Fix a length check in nvpair_unpack_string_array().
Wed, Oct 15, 8:20 PM
markj closed D53063: imgact_elf: Check note body sizes.
Wed, Oct 15, 8:20 PM
markj added a comment to D37981: ddb: have 'reset' command use normal reboot path.
In D37981#1210335, @avg wrote:

Totally belated, but would it make (have made) sense to split default behavior of reboot and reset commands?
I think that it would be more natural if reboot tried to do a reboot and reset just went for a reset (where implemented)?

Wed, Oct 15, 4:52 PM
markj added inline comments to D51207: truncate: fix a minor nit + add a hole-punching test.
Wed, Oct 15, 4:49 PM
markj updated the diff for D52968: vmm: My attempt at fixing the rendezvous deadlock.

Fix a lock order reversal.

Wed, Oct 15, 4:46 PM
markj added a comment to D52968: vmm: My attempt at fixing the rendezvous deadlock.

It doesn't look like it fully freezes. However, it gets extremely slow. The circle of the Windows boot loader spins very slowly. Don't know if it will ever reach the desktop.

Wed, Oct 15, 4:31 PM
markj added a comment to D27220: libuvmem: usermode port of vmem(9).
In D27220#1213306, @kib wrote:

Looks ok to me. Perhaps this should be a private library instead?

IMO it is generally useful API. Also, I do provide symbol versioning, which does not make sense for a private library: the intent is to keep stable interfaces.

Wed, Oct 15, 1:58 PM
markj added a comment to D52045: Copy kqueues into the child on fork.

The code changes seem ok to me. This should really have some regression tests. Even some simple ones which exercise the f_copy routine for various filters, and verify that knotes for O_CLOFORK fds are handled properly, would be much better than nothing.

Wed, Oct 15, 1:54 PM
markj accepted D53107: unionfs: avoid vdrop()ing a locked but doomed vnode.
Wed, Oct 15, 1:43 PM
markj requested review of D53114: socket: Annotate sooptcopyin() and sooptcopyout() with __result_use_check.
Wed, Oct 15, 1:33 PM
markj committed rG88c0ce38bc18: qat: enable qat driver for 402xx device (authored by hareshx.sankar.raj_intel.com).
qat: enable qat driver for 402xx device
Wed, Oct 15, 1:28 PM
markj committed rGead69828206e: ossl: Add GCM support on powerpc64/powerpc64le (POWER8+) (authored by tpearson_raptorengineering.com).
ossl: Add GCM support on powerpc64/powerpc64le (POWER8+)
Wed, Oct 15, 1:27 PM
markj committed rGdf64ca1bfcd3: tests/mac_ipacl: restore sysctls after modification (authored by guest-svmhdvn).
tests/mac_ipacl: restore sysctls after modification
Wed, Oct 15, 1:27 PM
markj committed rG9bed273477dc: tests/mac_portacl: restore sysctls after modification (authored by guest-svmhdvn).
tests/mac_portacl: restore sysctls after modification
Wed, Oct 15, 1:27 PM
markj committed rG3a382afe367a: cryptocheck: Be friendlier when testing software crypto backends (authored by markj).
cryptocheck: Be friendlier when testing software crypto backends
Wed, Oct 15, 1:27 PM
markj committed rGaf51f41346ad: qat: enable qat driver for 402xx device (authored by hareshx.sankar.raj_intel.com).
qat: enable qat driver for 402xx device
Wed, Oct 15, 1:27 PM
markj committed rG6d44212c641b: pw: pw_mkdb(3) does not set errno (authored by markj).
pw: pw_mkdb(3) does not set errno
Wed, Oct 15, 1:27 PM
markj committed rG8e957b78e684: rc: Update dependencies for zpool scripts (authored by markj).
rc: Update dependencies for zpool scripts
Wed, Oct 15, 1:27 PM
markj committed rGd2d987b67919: cryptocheck: Be friendlier when testing software crypto backends (authored by markj).
cryptocheck: Be friendlier when testing software crypto backends
Wed, Oct 15, 1:26 PM
markj committed rGc3005b65b2c1: pw: pw_mkdb(3) does not set errno (authored by markj).
pw: pw_mkdb(3) does not set errno
Wed, Oct 15, 1:26 PM
markj accepted D27220: libuvmem: usermode port of vmem(9).

Looks ok to me. Perhaps this should be a private library instead?

Wed, Oct 15, 1:18 PM

Tue, Oct 14

markj added a comment to D53066: netmap: Fix error handling in nm_os_extmem_create().

Disclaimer: I am not familiar with the memory management subsystem.
From my understanding, vm_object_reference(obj) is called to account for the reference that we add by calling vm_map_find on the kernel map, since the comment on the latter function explicitly requires the caller to increment the object reference counter.
But I could not find evidence that vm_map_remove will actually remove the reference above.. is that the case? I tried to look in the code, but I could not find the spot nor comments or documentation about that. Also, I would think that vm_map_remove (which undoes what vmap_map_find does, I guess) does not drop the object reference since its counterpart also does not do it.

Tue, Oct 14, 9:55 PM
markj added inline comments to D27220: libuvmem: usermode port of vmem(9).
Tue, Oct 14, 2:21 PM
markj committed rG7117c86fcb7e: exec: Check for errors when mapping the shared object (authored by markj).
exec: Check for errors when mapping the shared object
Tue, Oct 14, 1:52 PM
markj committed rG2df39ce5d4a8: ipfw: Check for errors from sooptcopyin() and sooptcopyout() (authored by markj).
ipfw: Check for errors from sooptcopyin() and sooptcopyout()
Tue, Oct 14, 1:51 PM
markj committed rGec8e07e8fa94: certctl.8: Update documentation of BUNDLE (authored by markj).
certctl.8: Update documentation of BUNDLE
Tue, Oct 14, 1:51 PM
markj committed rG80336636b6b9: imgact: Mark brandinfo and note structures as const (authored by markj).
imgact: Mark brandinfo and note structures as const
Tue, Oct 14, 1:51 PM
markj closed D53065: exec: Check for errors when mapping the shared object.
Tue, Oct 14, 1:51 PM
markj closed D53068: ipfw: Check for errors from sooptcopyin() and sooptcopyout().
Tue, Oct 14, 1:51 PM
markj closed D53001: certctl.8: Update documentation of BUNDLE.
Tue, Oct 14, 1:51 PM
markj closed D53062: imgact: Mark brandinfo and note structures as const.
Tue, Oct 14, 1:51 PM
markj updated the diff for D53063: imgact_elf: Check note body sizes.
  • Fix an unrelated typo
  • Perform a single check
Tue, Oct 14, 1:46 PM
markj added a comment to D53081: unix/stream: repair SO_SNDTIMEO.

Do we not block at all when sending on a dgram socket and the receiver has insufficient space?

Tue, Oct 14, 1:29 PM
markj added a comment to D53068: ipfw: Check for errors from sooptcopyin() and sooptcopyout().
In D53068#1212662, @ae wrote:

Yes, I think they were replaced with handlers from ipfw_sopt_handler.

Tue, Oct 14, 1:15 PM
markj added inline comments to D52045: Copy kqueues into the child on fork.
Tue, Oct 14, 1:13 PM

Mon, Oct 13

markj added inline comments to D53062: imgact: Mark brandinfo and note structures as const.
Mon, Oct 13, 4:32 PM
markj added inline comments to D53062: imgact: Mark brandinfo and note structures as const.
Mon, Oct 13, 4:14 PM
markj added a reviewer for D52526: cross-build: fix bootstrap with clang 19 on glibc systems: krb5.
Mon, Oct 13, 3:18 PM
markj added inline comments to D53062: imgact: Mark brandinfo and note structures as const.
Mon, Oct 13, 3:17 PM
markj added inline comments to D52045: Copy kqueues into the child on fork.
Mon, Oct 13, 2:21 PM
markj requested review of D53069: libnv: Fix a length check in nvpair_unpack_string_array().
Mon, Oct 13, 1:44 PM
markj added a comment to D53062: imgact: Mark brandinfo and note structures as const.

Do they get placed in rodata with the change?

Mon, Oct 13, 1:32 PM
markj requested review of D53068: ipfw: Check for errors from sooptcopyin() and sooptcopyout().
Mon, Oct 13, 1:25 PM
markj added a comment to D53062: imgact: Mark brandinfo and note structures as const.

Also I think the commit message ought to reference any changes in ELF sections containing these.

Mon, Oct 13, 1:21 PM
markj requested review of D53066: netmap: Fix error handling in nm_os_extmem_create().
Mon, Oct 13, 1:02 PM
markj requested review of D53065: exec: Check for errors when mapping the shared object.
Mon, Oct 13, 12:54 PM
markj requested review of D53063: imgact_elf: Check note body sizes.
Mon, Oct 13, 12:41 PM
markj requested review of D53062: imgact: Mark brandinfo and note structures as const.
Mon, Oct 13, 12:41 PM

Sat, Oct 11

markj committed rG146b7bb2a111: netstat: Fix -ia missing multicast addresses on some interfaces (authored by Nick Reilly <nreilly@qnx.com>).
netstat: Fix -ia missing multicast addresses on some interfaces
Sat, Oct 11, 3:23 PM