Page MenuHomeFreeBSD

kib (Konstantin Belousov)
User

Projects

User Details

User Since
May 16 2014, 7:35 PM (603 w, 5 d)

Recent Activity

Today

kib added a comment to D50848: eventfd: Rename `struct eventfd` to `struct eventfd_ctx`.

It is really eventfd data, so might be slightly better to call it eventfd_data. I do not object to proposal to rename the FreeBSD own structure,

Thu, Dec 11, 1:08 AM

Tue, Dec 9

kib committed rG36b12ea1fbfb: lib/libc: add FBSD-1.9 to Versions.def (authored by fuz).
lib/libc: add FBSD-1.9 to Versions.def
Tue, Dec 9, 1:24 AM
kib committed rG7be091979260: libuvmem: provide man page mostly as a pointer to vmem(9) (authored by kib).
libuvmem: provide man page mostly as a pointer to vmem(9)
Tue, Dec 9, 12:30 AM
kib committed rG3ae14e8f332f: libuvmem: usermode port of vmem(9) (authored by kib).
libuvmem: usermode port of vmem(9)
Tue, Dec 9, 12:30 AM
kib committed rGc4b0e25fa1f3: kern/subr_vmem.c: remove unused VMEM_TRYLOCK() macro (authored by kib).
kern/subr_vmem.c: remove unused VMEM_TRYLOCK() macro
Tue, Dec 9, 12:29 AM
kib committed rGccb0a245dff8: kern/subr_vmem.c: convert explicit vmem_list_lock use to macros (authored by kib).
kern/subr_vmem.c: convert explicit vmem_list_lock use to macros
Tue, Dec 9, 12:29 AM
kib committed rG70edd3c126a5: ofed/libibverbs: remove no longer needed local alloca.h (authored by kib).
ofed/libibverbs: remove no longer needed local alloca.h
Tue, Dec 9, 12:21 AM
kib committed rG6a75e3951506: ofed/libibverbs: remove strdupa() hack from config.h (authored by kib).
ofed/libibverbs: remove strdupa() hack from config.h
Tue, Dec 9, 12:21 AM
kib committed rG98b7cca0186d: libc/string: put source files list one item per line (authored by kib).
libc/string: put source files list one item per line
Tue, Dec 9, 12:21 AM
kib committed rGa98e5d785001: libc/string: add strdupa(3) and strndupa(3) (authored by kib).
libc/string: add strdupa(3) and strndupa(3)
Tue, Dec 9, 12:21 AM
kib closed D54066: libc: add strdupa(3) and strndupa(3).
Tue, Dec 9, 12:21 AM

Mon, Dec 8

kib committed rGcff67bc43df1: vm_fault: only rely on PG_ZERO when the page was newly allocated (authored by kib).
vm_fault: only rely on PG_ZERO when the page was newly allocated
Mon, Dec 8, 10:34 PM
kib committed rG636ee0269db0: vm_page.h: remove no longer defined (P) locking annotation (authored by kib).
vm_page.h: remove no longer defined (P) locking annotation
Mon, Dec 8, 10:33 PM
kib closed D53963: vm_fault: only rely on PG_ZERO when the page was newly allocated.
Mon, Dec 8, 10:33 PM
kib accepted D54119: noshutdown: Fix startup order.
Mon, Dec 8, 12:32 AM

Fri, Dec 5

kib accepted D54093: libkern: Avoid a one-byte OOB access in strndup().
Fri, Dec 5, 10:29 PM
kib added inline comments to D54093: libkern: Avoid a one-byte OOB access in strndup().
Fri, Dec 5, 9:55 PM
kib updated the summary of D54066: libc: add strdupa(3) and strndupa(3).
Fri, Dec 5, 9:46 PM
kib updated the diff for D54066: libc: add strdupa(3) and strndupa(3).

Switch to macros.

Fri, Dec 5, 9:45 PM
kib added a comment to D54066: libc: add strdupa(3) and strndupa(3).

This cannot work, alloca result is only valid for the duration of the current frame.
The functions can be moved to string.h as __always_inline, but I suspect that this would cause compat issues with weird compilers.

Fri, Dec 5, 9:45 PM
kib added inline comments to D54049: ruxreset: Add an inline function to reset all the stats in rusage_ext.
Fri, Dec 5, 8:54 PM

Thu, Dec 4

kib added inline comments to D54070: uio.9: Document uiomove_fromphys().
Thu, Dec 4, 6:31 PM
kib updated the diff for D54066: libc: add strdupa(3) and strndupa(3).

strndupa is from glibc as well

Thu, Dec 4, 6:19 PM
kib added inline comments to D54070: uio.9: Document uiomove_fromphys().
Thu, Dec 4, 6:17 PM
kib accepted D53946: libcasper: fix warnings when _ALIGN preserves types.
Thu, Dec 4, 3:39 AM
kib added inline comments to D54066: libc: add strdupa(3) and strndupa(3).
Thu, Dec 4, 3:18 AM
kib requested review of D54066: libc: add strdupa(3) and strndupa(3).
Thu, Dec 4, 12:53 AM

Wed, Dec 3

kib accepted D54040: thread0: Clear td_rux stats in proc0_post.
Wed, Dec 3, 8:38 PM
kib accepted D54049: ruxreset: Add an inline function to reset all the stats in rusage_ext.
Wed, Dec 3, 8:37 PM
kib accepted D54050: proc0_post: Clear relevant thread stats directly.
Wed, Dec 3, 8:36 PM

Tue, Dec 2

kib accepted D54040: thread0: Clear td_rux stats in proc0_post.
Tue, Dec 2, 11:51 PM
kib accepted D54039: thread0: Stop calling thread0 "swapper".
Tue, Dec 2, 11:46 PM
kib accepted D54022: riscv/pmap: Handle superpages in pmap_extract_and_hold().

Thanks.

Tue, Dec 2, 11:45 PM
kib added a comment to D54033: rtld-elf: Mark LD_SHOW_AUXV insecure.
In D54033#1234624, @kib wrote:

Indeed, the explicitly stated motivation, at least in the commit message, would be quite useful.

BTW, should LD_BIND_NOW be marked as unsecure, it potentially changes the bindings of the image?

I'm not sure, what happens if we perform lazy binding and the application dlopens a DSO which provides a duplicate symbol? How else can LD_BIND_NOW change the bindings of the image?

Tue, Dec 2, 11:43 PM
kib accepted D54022: riscv/pmap: Handle superpages in pmap_extract_and_hold().
Tue, Dec 2, 10:15 PM
kib accepted D54033: rtld-elf: Mark LD_SHOW_AUXV insecure.

Indeed, the explicitly stated motivation, at least in the commit message, would be quite useful.

Tue, Dec 2, 10:11 PM
kib committed rG7295aeaf5f5c: libuvmem: provide man page mostly as a pointer to vmem(9) (authored by kib).
libuvmem: provide man page mostly as a pointer to vmem(9)
Tue, Dec 2, 3:42 AM
kib committed rG1ecf01065b45: libuvmem: usermode port of vmem(9) (authored by kib).
libuvmem: usermode port of vmem(9)
Tue, Dec 2, 3:42 AM
kib committed rG305e33d4c6ed: kern/subr_vmem.c: remove unused VMEM_TRYLOCK() macro (authored by kib).
kern/subr_vmem.c: remove unused VMEM_TRYLOCK() macro
Tue, Dec 2, 3:42 AM
kib committed rG202292ef1078: kern/subr_vmem.c: convert explicit vmem_list_lock use to macros (authored by kib).
kern/subr_vmem.c: convert explicit vmem_list_lock use to macros
Tue, Dec 2, 3:42 AM
kib closed D27220: libuvmem: usermode port of vmem(9).
Tue, Dec 2, 3:42 AM
kib accepted D54026: powerpc/_stdint.h: fix SIG_ATOMIC_{MIN,MAX,WIDTH}.
Tue, Dec 2, 3:40 AM
kib accepted D53988: unionfs: Implement VOP_GETLOWVNODE and employ it for basicmount-time deadlock detection.
Tue, Dec 2, 1:13 AM

Mon, Dec 1

kib accepted D54022: riscv/pmap: Handle superpages in pmap_extract_and_hold().
Mon, Dec 1, 10:15 PM
kib added inline comments to D53946: libcasper: fix warnings when _ALIGN preserves types.
Mon, Dec 1, 8:10 PM
kib accepted D54009: sys/_types.h: avoid use of __has_feature().
Mon, Dec 1, 7:07 PM
kib accepted D53947: Add sys/_align.h replacing machine/_align.h.
Mon, Dec 1, 7:05 PM
kib committed rG398dd921c382: sys/param.h: bump __FreeBSD_version for struct bio and buf layout change (authored by kib).
sys/param.h: bump __FreeBSD_version for struct bio and buf layout change
Mon, Dec 1, 3:49 AM
kib committed rG0083165a9d13: sys/bio.h: print BIO_EXTERR flag (authored by kib).
sys/bio.h: print BIO_EXTERR flag
Mon, Dec 1, 3:49 AM
kib committed rGa0e349258479: exterror.9: explain buffers and bios usage of extended errors (authored by kib).
exterror.9: explain buffers and bios usage of extended errors
Mon, Dec 1, 3:49 AM
kib committed rG35a54c876c4f: exterr: print exterr for struct buf and bio in ddb show commands (authored by kib).
exterr: print exterr for struct buf and bio in ddb show commands
Mon, Dec 1, 3:49 AM
kib committed rG72bbd1891498: exterr: add exterr_db_print(), to be used by several ddb dumpers (authored by kib).
exterr: add exterr_db_print(), to be used by several ddb dumpers
Mon, Dec 1, 3:49 AM
kib committed rGa4fadc6c0784: geom/geom_vfs.c: use EXTERROR_KE() in g_vfs_strategy for ENXIOs (authored by kib).
geom/geom_vfs.c: use EXTERROR_KE() in g_vfs_strategy for ENXIOs
Mon, Dec 1, 3:49 AM
kib committed rGcb85c2e2e995: exterror(9): add infra for bufs and bios (authored by kib).
exterror(9): add infra for bufs and bios
Mon, Dec 1, 3:49 AM
kib committed rG0e1fcec72a05: exterror(9): add two helpers (authored by kib).
exterror(9): add two helpers
Mon, Dec 1, 3:49 AM
kib committed rG05e683f3de7f: exterror(9): add SETEXTERROR_KE() macro (authored by kib).
exterror(9): add SETEXTERROR_KE() macro
Mon, Dec 1, 3:49 AM
kib committed rGcdf37c58727f: sys/: rename bio_error variable to abio_error (authored by kib).
sys/: rename bio_error variable to abio_error
Mon, Dec 1, 3:49 AM
kib added inline comments to D53988: unionfs: Implement VOP_GETLOWVNODE and employ it for basicmount-time deadlock detection.
Mon, Dec 1, 3:38 AM
kib committed rG7e356823ac3a: bsd.lib.mk: document INTERNALLIB and PRIVATELIB (authored by kib).
bsd.lib.mk: document INTERNALLIB and PRIVATELIB
Mon, Dec 1, 12:49 AM
kib committed rGfeac4c32a5f8: vm_object_page_remove(): clear pager even if there is no resident pages (authored by kib).
vm_object_page_remove(): clear pager even if there is no resident pages
Mon, Dec 1, 12:48 AM
kib committed rGba5ef9dfa8e5: bsd.lib.mk: document INTERNALLIB and PRIVATELIB (authored by kib).
bsd.lib.mk: document INTERNALLIB and PRIVATELIB
Mon, Dec 1, 12:47 AM
kib committed rG10f12fbe67ae: vm_object_page_remove(): clear pager even if there is no resident pages (authored by kib).
vm_object_page_remove(): clear pager even if there is no resident pages
Mon, Dec 1, 12:47 AM

Sun, Nov 30

kib added inline comments to D53988: unionfs: Implement VOP_GETLOWVNODE and employ it for basicmount-time deadlock detection.
Sun, Nov 30, 8:46 PM
kib added inline comments to D53988: unionfs: Implement VOP_GETLOWVNODE and employ it for basicmount-time deadlock detection.
Sun, Nov 30, 6:29 PM
kib updated subscribers of D53963: vm_fault: only rely on PG_ZERO when the page was newly allocated.
Sun, Nov 30, 6:16 PM
kib added a comment to D53845: kqueue(9): document f_copy.

The 'no additional handling required' part of knote_triv_copy is somewhat useful info, since if f_copy is not NULL, the 'shallow copy' part is done by the kqueue code itself always. So knote_triv_copy does not do any work, it is simply a placeholder to provide non-NULL value.

Sun, Nov 30, 6:10 PM
kib committed R9:b558f108d0be: ff report 2025 q3: timeout handling -> timeout(1) (authored by kib).
ff report 2025 q3: timeout handling -> timeout(1)
Sun, Nov 30, 4:48 PM

Sat, Nov 29

kib accepted D53902: LinuxKPI: pci: undo the pci_resource_len() check in lkpi_pci_request_region().
Sat, Nov 29, 11:24 PM
kib updated the diff for D27220: libuvmem: usermode port of vmem(9).

Some tweaks to the man page

Sat, Nov 29, 11:22 PM
kib added inline comments to D27220: libuvmem: usermode port of vmem(9).
Sat, Nov 29, 11:21 PM
kib added inline comments to D27220: libuvmem: usermode port of vmem(9).
Sat, Nov 29, 7:09 PM
kib added a comment to D27220: libuvmem: usermode port of vmem(9).

Any progress with testing?

Sat, Nov 29, 6:36 PM
kib updated the diff for D53963: vm_fault: only rely on PG_ZERO when the page was newly allocated.

Switch to m_needs_zeroing

Sat, Nov 29, 6:07 PM

Fri, Nov 28

kib added a comment to D53965: vm_object_coalesce(): do not account holes twice.

vm_map_entry_delete() only subtracts from the object's charge when we shrink the size of the object.

Isn't that the bug? That is, shouldn't vm_map_entry_delete() subtract the size of the hole from the charge if the object has only one mapping?

Fri, Nov 28, 4:18 PM
kib updated the diff for D53963: vm_fault: only rely on PG_ZERO when the page was newly allocated.

Completely rework the patch: instead of clearing PG_ZERO, track the page source in the fault state.

Fri, Nov 28, 4:02 PM
kib added inline comments to D53947: Add sys/_align.h replacing machine/_align.h.
Fri, Nov 28, 3:27 PM
kib added inline comments to D53947: Add sys/_align.h replacing machine/_align.h.
Fri, Nov 28, 3:09 PM
kib accepted D53945: get*ent: be consistant about _ALIGN(p) - p.
Fri, Nov 28, 2:38 PM
kib added inline comments to D53946: libcasper: fix warnings when _ALIGN preserves types.
Fri, Nov 28, 2:11 PM
kib added inline comments to D53946: libcasper: fix warnings when _ALIGN preserves types.
Fri, Nov 28, 12:57 AM
kib added a comment to D53945: get*ent: be consistant about _ALIGN(p) - p.

May be define some inline function in libc/include/libc_private.h, like

static inline ptrdiff_t
misalign_val(void *p)
{
   return (_ALIGN(p) - p);
}

and use it in all places.

Fri, Nov 28, 12:52 AM
kib committed rGb903f27e171b: rtld: fix powerpc build (authored by kib).
rtld: fix powerpc build
Fri, Nov 28, 12:45 AM
kib committed rGff6a70efd974: rtld-elf: move powerpc-specific auxv compat code into arch hook (authored by kib).
rtld-elf: move powerpc-specific auxv compat code into arch hook
Fri, Nov 28, 12:45 AM
kib committed rGbe9e4c000ad6: vm_fault: add a verifier that the PG_ZERO page is indeed zeroed (authored by kib).
vm_fault: add a verifier that the PG_ZERO page is indeed zeroed
Fri, Nov 28, 12:45 AM
kib committed rG452052e82708: vm_page_free_prep(): convert PG_ZERO zeroed page check to use sf_buf (authored by kib).
vm_page_free_prep(): convert PG_ZERO zeroed page check to use sf_buf
Fri, Nov 28, 12:45 AM

Thu, Nov 27

kib requested review of D53965: vm_object_coalesce(): do not account holes twice.
Thu, Nov 27, 9:58 PM
kib added inline comments to D53891: Fixes for dreaded assert in jemalloc page allocator AKA mmap(MAP_ANON) providing non-zeroed pages.
Thu, Nov 27, 9:42 PM
kib requested review of D53963: vm_fault: only rely on PG_ZERO when the page was newly allocated.
Thu, Nov 27, 8:48 PM
kib committed rGe60861eb41ca: bsd.lib.mk: document INTERNALLIB and PRIVATELIB (authored by kib).
bsd.lib.mk: document INTERNALLIB and PRIVATELIB
Thu, Nov 27, 7:54 PM
kib closed D53948: bsd.lib.mk: document INTERNALLIB and PRIVATELIB.
Thu, Nov 27, 7:53 PM
kib added inline comments to D53947: Add sys/_align.h replacing machine/_align.h.
Thu, Nov 27, 7:48 PM
kib updated the diff for D53948: bsd.lib.mk: document INTERNALLIB and PRIVATELIB.

Slightly more clarity for normal libs.

Thu, Nov 27, 6:48 PM
kib updated the diff for D53948: bsd.lib.mk: document INTERNALLIB and PRIVATELIB.

INTERNALLIB: s/pic/pie/; only state that the result is suitable for linking into binaries. This sounds like a bug to me: we should build pic version instead of pie.
PRIVATELIB: headers go into include/private/<name>

Thu, Nov 27, 6:42 PM
kib added inline comments to D53891: Fixes for dreaded assert in jemalloc page allocator AKA mmap(MAP_ANON) providing non-zeroed pages.
Thu, Nov 27, 6:08 PM
kib added inline comments to D53891: Fixes for dreaded assert in jemalloc page allocator AKA mmap(MAP_ANON) providing non-zeroed pages.
Thu, Nov 27, 6:06 PM
kib added a comment to D53831: libc/tests: add test for *_MAX, *_MIN, and *_WIDTH.

This looks like it's really testing the host's (cross-)build environment. That seems useful, but it's not the same as testing the installation itself, e.g., a test could invoke cc to compile this file or something similar and verify that it succeeded. Should we do both? Is there some reason this test on its own is sufficient?

Thu, Nov 27, 4:52 PM
kib requested review of D53948: bsd.lib.mk: document INTERNALLIB and PRIVATELIB.
Thu, Nov 27, 4:44 PM
kib committed rG56114d2a68d9: max_align_t: apply alignof to 'long double' for long double alignment (authored by kib).
max_align_t: apply alignof to 'long double' for long double alignment
Thu, Nov 27, 3:57 PM
kib accepted D53938: linker: Avoid invoking eventhandlers on incompletely loaded files.

The difference now is in order in which dependencies are reported for unload.

Thu, Nov 27, 3:43 PM

Wed, Nov 26

kib updated the diff for D53891: Fixes for dreaded assert in jemalloc page allocator AKA mmap(MAP_ANON) providing non-zeroed pages.

Move vm_check_pg_zero code from vm_map_insert() into vm_object_coalesce().

Wed, Nov 26, 10:57 PM