Page MenuHomeFreeBSD

olce (Olivier Certner)
User

Projects

User Details

User Since
Feb 26 2021, 3:47 PM (206 w, 16 m)

Recent Activity

Today

olce added a comment to D48881: WIP: sysctl: Respect max length when treat a variable string as a constant string.

This generally looks good (and much better than D48511) except for what I stated in an inline comment (don't mess with arg2, I insist on that).

Fri, Feb 7, 1:44 PM
olce added a comment to D48825: unlink, rmdir: call notify_upper from VOP pre method instead of syscall.
In D48825#1114691, @kib wrote:

No, because if the lower vnode has actually been unlinked, then the lower layer's VOP_REMOVE() (e.g., ufs_remove()) will return 0,

This is not true, and is not guaranteed.

Fri, Feb 7, 1:02 PM

Yesterday

olce added a comment to D48825: unlink, rmdir: call notify_upper from VOP pre method instead of syscall.
In D48825#1114666, @kib wrote:

Problem is when upper vnode is reclaimed, but lower is not, although lower was temp unlocked for something. Then despite unlinked, lower vnode is still referenced by other upper vnodes, which prevents inactivation from truncating and clearing the inode.

Thu, Feb 6, 10:04 PM
olce added a comment to D48825: unlink, rmdir: call notify_upper from VOP pre method instead of syscall.
In D48825#1114649, @kib wrote:

Look at the ERELOOKUP, specifically of the softdep_prelink().

Thu, Feb 6, 9:26 PM
olce added a comment to D48633: vm_phys_early_alloc(): Add diagnostics and comments.

I don't think it's possible to have domain 0 unpopulated on powerpc. I do have a patch that implements the NUMAing of mmu_radix_page_array_startup(), but it didn't improve performance any measurable degree when I tested, so never followed through with pushing it.

Thu, Feb 6, 5:28 PM
olce added a comment to D48825: unlink, rmdir: call notify_upper from VOP pre method instead of syscall.
In D48825#1114446, @kib wrote:

No, with you proposal the call would only propagate to sibling uppers if it succeeded, which is not true when the lower vnode is unlocked.

Thu, Feb 6, 4:01 PM
olce added a comment to D48511: sysctl: Harden sysctl_handle_string() against unterminated strings.

Please see the new inline comments. Thanks!

Thu, Feb 6, 2:45 PM
olce added a comment to D48634: vm_phys_early_alloc(): Switch order of arguments.

I don't really see why. The current interface is consistent with other NUMA-aware allocators, e.g., kmem_malloc_domain(), vm_page_alloc_contig_domain(), vm_phys_alloc_pages().

Thu, Feb 6, 12:37 PM
olce updated subscribers of D48633: vm_phys_early_alloc(): Add diagnostics and comments.

So if a system has two CPU sockets and only one has memory installed, we will panic? That is not right, we have to support such configurations.

Thu, Feb 6, 12:11 PM

Wed, Feb 5

olce added a comment to D48825: unlink, rmdir: call notify_upper from VOP pre method instead of syscall.
In D48825#1114388, @kib wrote:

You're right. But does it matter?

Yes it is. Second sibling nullfs mount still references the lower vnode, so use count on it is non-zero. For instance, on UFS, this prevents vop_inactive() from truncating the file, clearing the inode, and reclaiming the vnode. Basically it makes the issue fixed in the review, to return, but only in racy way.

Wed, Feb 5, 10:15 PM
olce added a comment to D48511: sysctl: Harden sysctl_handle_string() against unterminated strings.

Seems Phab did not save my inline comments which consisted of only line removals and no written text. Or I messed up something, but don't know how. The diffs should be complete now.

Wed, Feb 5, 9:28 PM
olce added inline comments to D48511: sysctl: Harden sysctl_handle_string() against unterminated strings.
Wed, Feb 5, 9:24 PM
olce added a comment to D48511: sysctl: Harden sysctl_handle_string() against unterminated strings.

Whoops... The first inline comment was wrong, I proposed another version.

Wed, Feb 5, 9:23 PM
olce added a comment to D48511: sysctl: Harden sysctl_handle_string() against unterminated strings.

I think this version increases slightly the already too big amount of spaghetti code in this function.

Wed, Feb 5, 9:13 PM
olce added a comment to D48825: unlink, rmdir: call notify_upper from VOP pre method instead of syscall.
In D48825#1114098, @kib wrote:

Dropping the lock is the issue. For instance, UFS may successfully unlink but drop the lock, which allows the upper vnode to be reclaimed, and then other upper filesystems are not notified, it the call is moved after the VOP.

Wed, Feb 5, 8:28 PM

Tue, Feb 4

olce accepted D48825: unlink, rmdir: call notify_upper from VOP pre method instead of syscall.
In D48825#1113760, @kib wrote:

Well, optimization for the failing cases should not be a necessity. That said, I am not sure that there is no complications with the vnode ref counts (I might be too cautious there, but it is the reason to keep this separate) with the move of upper notification post vop. You can do it after my change is landed.

Tue, Feb 4, 4:04 PM
olce added a comment to D48825: unlink, rmdir: call notify_upper from VOP pre method instead of syscall.

The approach looks generally OK to me, but please take the opportunity to move notifying the upper layers into the "post" hooks instead of the "pre" ones, under the condition that rc is effectively 0, as it seems wasted work to destroy the upper vnodes if the lower one isn't (as they are probably going to need to be reconstructed later).

Tue, Feb 4, 8:45 AM

Mon, Jan 27

olce committed rG118a280569d3: atomics: Constify loads: mips (authored by olce).
atomics: Constify loads: mips
Mon, Jan 27, 9:13 PM
olce committed rGaab45924bdb1: smr: Load to accept pointers to const pointers (authored by olce).
smr: Load to accept pointers to const pointers
Mon, Jan 27, 6:21 PM
olce committed rG11dde2c8b715: atomics: Constify loads: Remove now superfluous uses of DECONST() (authored by olce).
atomics: Constify loads: Remove now superfluous uses of DECONST()
Mon, Jan 27, 6:21 PM
olce committed rG19f7b2bbc4e4: atomics: atomic_load_consume_ptr(): Accept pointers to const (authored by olce).
atomics: atomic_load_consume_ptr(): Accept pointers to const
Mon, Jan 27, 6:20 PM
olce committed rGd034ff89b84f: atomics: Constify loads: riscv: Convert missed atomic_load_acq_64() (authored by olce).
atomics: Constify loads: riscv: Convert missed atomic_load_acq_64()
Mon, Jan 27, 6:20 PM
olce committed rG176599b58779: atomic: Avoid casting the return value of atomic_load_ptr to void * (authored by markj).
atomic: Avoid casting the return value of atomic_load_ptr to void *
Mon, Jan 27, 6:18 PM
olce committed rG4463da0fa365: atomic: Fix the cast in the atomic_load_consume() interceptor (authored by markj).
atomic: Fix the cast in the atomic_load_consume() interceptor
Mon, Jan 27, 6:18 PM
olce committed rGfb4bc4c325ec: smr: Load to accept pointers to const pointers (authored by olce).
smr: Load to accept pointers to const pointers
Mon, Jan 27, 6:18 PM
olce committed rG213406054e46: atomics: Constify loads: Remove now superfluous uses of DECONST() (authored by olce).
atomics: Constify loads: Remove now superfluous uses of DECONST()
Mon, Jan 27, 6:18 PM
olce committed rGeb6edafe8f48: atomics: atomic_load_consume_ptr(): Accept pointers to const (authored by olce).
atomics: atomic_load_consume_ptr(): Accept pointers to const
Mon, Jan 27, 6:18 PM
olce committed rGced9fa71eaf9: atomics: Constify loads: riscv: Convert missed atomic_load_acq_64() (authored by olce).
atomics: Constify loads: riscv: Convert missed atomic_load_acq_64()
Mon, Jan 27, 6:18 PM
olce committed R11:5aa6d53a0096: devel/libkiwix*: Support ICU 76.1 (authored by olce).
devel/libkiwix*: Support ICU 76.1
Mon, Jan 27, 3:50 PM
olce committed R11:2306a677bec7: archivers/zim-tools: Support ICU 76.1 (authored by olce).
archivers/zim-tools: Support ICU 76.1
Mon, Jan 27, 3:50 PM

Fri, Jan 24

olce added inline comments to D48632: vm_page_startup(): Clarify memory lowest, highest and size computation.
Fri, Jan 24, 4:42 PM

Thu, Jan 23

olce added a comment to D48639: vm_phys_early_alloc(): Prefer allocation at boundaries by default.

I think it makes sense to revise this change to be conditional on VM_PHYSSEG_DENSE (and on the condition: vm_domains == 1 or PMAP_HAS_PAGE_ARRAY absent) in order to avoid disabling the anti-fragmentation mechanism on VM_PHYSSEG_SPARSE.

Thu, Jan 23, 5:40 PM
olce requested review of D48643: vm_page_array_alloc(): Print array size on verbose boot.
Thu, Jan 23, 5:17 PM
olce requested review of D48642: vm_page_startup(): Print phys_avail[] before vm_phys_init() on verbose boot.
Thu, Jan 23, 5:16 PM
olce requested review of D48641: vm_phys_early_startup(): Print mem_affinity[], phys_avail[] on verbose boot.
Thu, Jan 23, 5:16 PM
olce requested review of D48640: vm_page_startup(): Save memory in more cases on VM_PHYSSEG_DENSE.
Thu, Jan 23, 5:16 PM
olce requested review of D48639: vm_phys_early_alloc(): Prefer allocation at boundaries by default.
Thu, Jan 23, 5:16 PM
olce requested review of D48638: vm_phys_early_alloc_ex*(): Introduce VM_PHYS_EAF_ADDR_BOUNDARIES_FIRST.
Thu, Jan 23, 5:16 PM
olce requested review of D48637: vm_phys_early_alloc(): Align to PAGE_SIZE; Review callers' alignment.
Thu, Jan 23, 5:16 PM
olce requested review of D48636: vm_phys_early_alloc_ex*(): Switch allocation strategy to best fit.
Thu, Jan 23, 5:16 PM
olce requested review of D48635: vm_phys: Introduce vm_phys_early_alloc_ex*().
Thu, Jan 23, 5:16 PM
olce requested review of D48634: vm_phys_early_alloc(): Switch order of arguments.
Thu, Jan 23, 5:16 PM
olce requested review of D48633: vm_phys_early_alloc(): Add diagnostics and comments.
Thu, Jan 23, 5:16 PM
olce requested review of D48632: vm_page_startup(): Clarify memory lowest, highest and size computation.
Thu, Jan 23, 5:16 PM
olce requested review of D48631: vm_phys_early_startup(): Panic if phys_avail[] is empty.
Thu, Jan 23, 5:16 PM
olce requested review of D48630: vm_phys_avail_split(): Tolerate split requests at boundaries.
Thu, Jan 23, 5:16 PM
olce requested review of D48629: vm_phys_avail_count(): Fix out-of-bounds accesses.
Thu, Jan 23, 5:15 PM
olce requested review of D48628: vm_phys: Check for overlap when adding a segment.
Thu, Jan 23, 5:15 PM
olce requested review of D48627: vm_phys_add_seg(): Check for bad segments, allow empty ones.
Thu, Jan 23, 5:15 PM
olce requested review of D48626: vm_phys_avail_check(): Check index parity, fix panic messages.
Thu, Jan 23, 5:15 PM

Mon, Jan 20

olce committed rGc57c02ebf7bc: smr: Load to accept pointers to const pointers (authored by olce).
smr: Load to accept pointers to const pointers
Mon, Jan 20, 3:52 PM
olce committed rG62af5b9dc620: atomics: Constify loads: Remove now superfluous uses of DECONST() (authored by olce).
atomics: Constify loads: Remove now superfluous uses of DECONST()
Mon, Jan 20, 3:52 PM
olce committed rGd0cbb1930e82: atomics: atomic_load_consume_ptr(): Accept pointers to const (authored by olce).
atomics: atomic_load_consume_ptr(): Accept pointers to const
Mon, Jan 20, 3:51 PM
olce committed rGac2156c139f8: atomics: Constify loads: riscv: Convert missed atomic_load_acq_64() (authored by olce).
atomics: Constify loads: riscv: Convert missed atomic_load_acq_64()
Mon, Jan 20, 3:51 PM
olce closed D48497: atomics: Constify loads: More constification.
Mon, Jan 20, 3:51 PM
olce committed R11:c9795c9a2535: archivers/zim-tools: Actually connect it to the build (authored by olce).
archivers/zim-tools: Actually connect it to the build
Mon, Jan 20, 11:26 AM

Fri, Jan 17

olce committed rGe2d4c5de27ac: UPDATING: Remove tarfs reference that slipped through (authored by olce).
UPDATING: Remove tarfs reference that slipped through
Fri, Jan 17, 5:22 PM
olce committed rG4d93d6559697: RELNOTES: Document recent file handle layout changes (authored by markj).
RELNOTES: Document recent file handle layout changes
Fri, Jan 17, 5:16 PM
olce committed rGca22082c01a7: RELNOTES: Document recent file handle layout changes (authored by markj).
RELNOTES: Document recent file handle layout changes
Fri, Jan 17, 5:06 PM
olce committed rGee931cf4a49c: ext2fs: Fix the size of struct ufid and add a static assert (authored by rmacklem).
ext2fs: Fix the size of struct ufid and add a static assert
Fri, Jan 17, 2:01 PM
olce committed rGacdc59f0924a: ext2fs: 'struct ufid': Re-order fields and unpack (authored by olce).
ext2fs: 'struct ufid': Re-order fields and unpack
Fri, Jan 17, 2:01 PM
olce committed rGf97d802a3d89: tarfs(5): Grammar fix for a source code comment (authored by gbe).
tarfs(5): Grammar fix for a source code comment
Fri, Jan 17, 1:53 PM
olce committed rG7a3a0402aeb6: ext2fs: Fix the size of struct ufid and add a static assert (authored by rmacklem).
ext2fs: Fix the size of struct ufid and add a static assert
Fri, Jan 17, 1:53 PM
olce committed rG155987e20190: tarfs: Fix the size of struct tarfs_fid and add a static assert (authored by rmacklem).
tarfs: Fix the size of struct tarfs_fid and add a static assert
Fri, Jan 17, 1:53 PM
olce committed rG6b1a5d3535d9: ext2fs: 'struct ufid': Re-order fields and unpack (authored by olce).
ext2fs: 'struct ufid': Re-order fields and unpack
Fri, Jan 17, 1:53 PM
olce committed rG4634282f8908: tarfs: 'struct tarfs_fid': Switch 'gen' to 'u_int', avoid packing (authored by olce).
tarfs: 'struct tarfs_fid': Switch 'gen' to 'u_int', avoid packing
Fri, Jan 17, 1:53 PM
olce committed rG0e17cf062975: cred: proc_set_cred(): Fix debug build (authored by olce).
cred: proc_set_cred(): Fix debug build
Fri, Jan 17, 1:36 PM
olce committed rG5cf27105df1e: queue: Fix STAILQ_SWAP (authored by markj).
queue: Fix STAILQ_SWAP
Fri, Jan 17, 12:29 PM
olce committed rG273fec048302: atomic: Update interceptor function signatures after commit 5e9a82e898d5 (authored by markj).
atomic: Update interceptor function signatures after commit 5e9a82e898d5
Fri, Jan 17, 12:29 PM
olce committed rG6f43ca650d64: libprocstat: ZFS support: Makefile: Tidy up a bit (authored by olce).
libprocstat: ZFS support: Makefile: Tidy up a bit
Fri, Jan 17, 12:28 PM
olce committed rG1cf5ab87c87e: atomics: Constify loads: Fix powerpc build (authored by olce).
atomics: Constify loads: Fix powerpc build
Fri, Jan 17, 12:28 PM
olce committed rGb2d46346d89b: proc_set_cred(): Fix compilation of GENERIC-NODEBUG (authored by olce).
proc_set_cred(): Fix compilation of GENERIC-NODEBUG
Fri, Jan 17, 12:28 PM
olce committed rGb6a3bda9bc2e: x86 atomics: Remove unused WANT_FUNCTIONS (authored by olce).
x86 atomics: Remove unused WANT_FUNCTIONS
Fri, Jan 17, 12:28 PM
olce committed rGf872814e2d7a: cred: proc_set_cred(), proc_unset_cred(): Update user's process count (authored by olce).
cred: proc_set_cred(), proc_unset_cred(): Update user's process count
Fri, Jan 17, 12:28 PM
olce committed rGafeec66ce393: syscallsubr.h: Header inclusions: Explicit <sys/param.h>, sort (authored by olce).
syscallsubr.h: Header inclusions: Explicit <sys/param.h>, sort
Fri, Jan 17, 12:28 PM
olce committed rG927d7d57793a: mountd(8): Allow to pass {NGROUPS_MAX} + 1 groups (authored by olce).
mountd(8): Allow to pass {NGROUPS_MAX} + 1 groups
Fri, Jan 17, 12:28 PM
olce committed rGf8e47b137a80: mountd(8): parsecred(): Re-order operations for clarity (authored by olce).
mountd(8): parsecred(): Re-order operations for clarity
Fri, Jan 17, 12:28 PM
olce committed rG111c7322f71e: mountd(8): parsecred(): Remove comment on non-existent bug (authored by olce).
mountd(8): parsecred(): Remove comment on non-existent bug
Fri, Jan 17, 12:28 PM
olce committed rG46f0ef933d28: nmount(2), NFS: Accept 'ngroups_max + 1' groups in "export" credentials (authored by olce).
nmount(2), NFS: Accept 'ngroups_max + 1' groups in "export" credentials
Fri, Jan 17, 12:28 PM
olce committed rG043e259e41d3: mountd(8): parsecred(): Groups limit: NGROUPS_MAX => NGROUPS_MAX + 1 (authored by olce).
mountd(8): parsecred(): Groups limit: NGROUPS_MAX => NGROUPS_MAX + 1
Fri, Jan 17, 12:28 PM
olce committed rG0c0cd622f279: mountd(8): parsecred(): Remove "duplicate compression" (authored by olce).
mountd(8): parsecred(): Remove "duplicate compression"
Fri, Jan 17, 12:28 PM
olce committed rG29a0511b184d: mountd(8): parsecred(): Fallback to "nogroup" or GID_NOGROUP (authored by olce).
mountd(8): parsecred(): Fallback to "nogroup" or GID_NOGROUP
Fri, Jan 17, 12:28 PM
olce committed rG70d657d7380c: exports(5): -maproot, -mapall: Explain the fallback on no group (authored by olce).
exports(5): -maproot, -mapall: Explain the fallback on no group
Fri, Jan 17, 12:28 PM
olce committed rG73c073d99157: mountd(8): parsecred(): uid:gid:... loop: Simplify a bit (authored by olce).
mountd(8): parsecred(): uid:gid:... loop: Simplify a bit
Fri, Jan 17, 12:28 PM
olce committed rG5f7586197e84: cred: crget(): Compute initial 'cr_agroups' with nitems() (authored by olce).
cred: crget(): Compute initial 'cr_agroups' with nitems()
Fri, Jan 17, 12:28 PM
olce committed rGfbac48f4b460: MAC: mac_policy.h: Declare common MAC sysctl and jail parameters' nodes (authored by olce).
MAC: mac_policy.h: Declare common MAC sysctl and jail parameters' nodes
Fri, Jan 17, 12:28 PM
olce committed rGf30f1a14f772: jail.h: New SYSCTL_JAIL_PARAM_SYS_SUBNODE() (authored by olce).
jail.h: New SYSCTL_JAIL_PARAM_SYS_SUBNODE()
Fri, Jan 17, 12:28 PM
olce committed rG4c2602473d12: jail.h: New SYSCTL_JAIL_PARAM_DECL() (authored by olce).
jail.h: New SYSCTL_JAIL_PARAM_DECL()
Fri, Jan 17, 12:28 PM
olce committed rG386c6749bde5: jail.h: Fix whitespace in the param macros declaration block (authored by olce).
jail.h: Fix whitespace in the param macros declaration block
Fri, Jan 17, 12:28 PM
olce committed rG1c22ba23b015: riscv: Implement atomic operations (authored by br).
riscv: Implement atomic operations
Fri, Jan 17, 12:28 PM
olce committed rGae2383c0dd16: MAC: Define a common 'mac' node for MAC's jail parameters (authored by olce).
MAC: Define a common 'mac' node for MAC's jail parameters
Fri, Jan 17, 12:28 PM
olce committed rGb9c8344a391a: MAC: 'kernel_mac_support' module: Make an outdated comment more generic (authored by olce).
MAC: 'kernel_mac_support' module: Make an outdated comment more generic
Fri, Jan 17, 12:28 PM
olce committed rG2d03e9cf8e2e: Add function to OSD to get values without taking the lock. (authored by stevek).
Add function to OSD to get values without taking the lock.
Fri, Jan 17, 12:28 PM
olce committed rGc05d82c461e7: MAC: mac.h: Fix missing includes/typedefs (authored by olce).
MAC: mac.h: Fix missing includes/typedefs
Fri, Jan 17, 12:28 PM
olce committed rG229e81dd12fd: queue: New debug macros for STAILQ (authored by olce).
queue: New debug macros for STAILQ
Fri, Jan 17, 12:28 PM
olce committed rGa8be157c098d: refcount: Constify refcount_load() (authored by olce).
refcount: Constify refcount_load()
Fri, Jan 17, 12:28 PM
olce committed rGe6e9e70e51d9: atomics: Constify loads (authored by olce).
atomics: Constify loads
Fri, Jan 17, 12:28 PM
olce committed rG08eab7b3eb49: osd: Constify signature of osd_register() (authored by olce).
osd: Constify signature of osd_register()
Fri, Jan 17, 12:27 PM
olce committed rG4078a7051ab1: Open-code proc_set_cred_init() (authored by olce).
Open-code proc_set_cred_init()
Fri, Jan 17, 12:27 PM
olce requested review of D48497: atomics: Constify loads: More constification.
Fri, Jan 17, 11:36 AM