Page MenuHomeFreeBSD

kib (Konstantin Belousov)
User

Projects

User Details

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

Recent Activity

Today

kib accepted D60427: libthr: Fix try lock.
Wed, Oct 7, 5:12 PM
kib committed rG78ae174e420a: mlx5: support DevX UMEM page size bitmap (authored by aehrenberg_nvidia.com).
mlx5: support DevX UMEM page size bitmap
Wed, Oct 7, 5:11 PM
kib committed rGbea382f25b16: kern/coredump_vnode.c: avoid dumping to the mount point we suspended (authored by kib).
kern/coredump_vnode.c: avoid dumping to the mount point we suspended
Wed, Oct 7, 5:01 PM
kib committed rGccd44c5e4881: vn_open_cred(): rename VN_OPEN_NAMECACHE flag to VN_OPEN_COREDUMP (authored by kib).
vn_open_cred(): rename VN_OPEN_NAMECACHE flag to VN_OPEN_COREDUMP
Wed, Oct 7, 5:01 PM
kib closed D60283: kern/coredump_vnode.c: avoid dumping to the mount point we suspended.
Wed, Oct 7, 5:01 PM
kib accepted D60444: sysctl: don't loop when EAGAIN is returned.
Wed, Oct 7, 4:53 PM
kib added a reviewer for D60406: powerd: Introduce Energy/Performance Preferences (EPP) support: obiwac.
Wed, Oct 7, 1:53 PM
kib added a comment to D60281: tcp: improve stack switching.

Wait... Maybe we should understand why userland_sysctl() does this and is it needed at all today? It originates from 7a69d9230f834f562d2c5c36c837e67eacdf5ab3. @phk maybe you can comment on this one?

Also in af80b2c90182cbbc0580d237bf3049090d511897 @kib definitely also answered the question "why?" to himself and maybe Kostik can explain.

Wed, Oct 7, 11:37 AM
kib accepted D60434: libthr: Reorder pthread mutex to prevent false sharing.
Wed, Oct 7, 9:27 AM
kib accepted D60425: libthr: reject count < 0.
Wed, Oct 7, 9:24 AM
kib added a comment to D60427: libthr: Fix try lock.

Besides the formatting bug, I think that the algorithmic change is fine.

Wed, Oct 7, 9:22 AM
kib accepted D58855: namei: retry absolute symlink expansions from the native root.
Wed, Oct 7, 9:17 AM
kib accepted D60426: libthr: Do not rely on UB in counter.
Wed, Oct 7, 9:12 AM
kib committed rG2961d9d2f32e: stat(2): Document st_bsdflags and SFBSD_NAMEDATTR (authored by sobomax).
stat(2): Document st_bsdflags and SFBSD_NAMEDATTR
Wed, Oct 7, 3:28 AM
kib committed rG9a0ea129a2a6: stat.2: document SFBSD_MNTROOT (authored by kib).
stat.2: document SFBSD_MNTROOT
Wed, Oct 7, 3:27 AM
kib committed rGad3fdab6e507: stat(2): report mount points using st_bsdflags SFBSD_MNTPOINT flag (authored by kib).
stat(2): report mount points using st_bsdflags SFBSD_MNTPOINT flag
Wed, Oct 7, 3:27 AM

Yesterday

kib accepted D60417: arm64 pmap_fault: a local TLB invalidation suffices when enabling write access.
Tue, Oct 6, 8:38 PM
kib committed rG274236ed084a: rtld.c: avoid double-free on dso load failure in do_load_object() (authored by kib).
rtld.c: avoid double-free on dso load failure in do_load_object()
Tue, Oct 6, 5:34 PM
kib closed D60402: rtld.c: avoid double-free on dso load failure in do_load_object().
Tue, Oct 6, 5:34 PM
kib updated the diff for D60283: kern/coredump_vnode.c: avoid dumping to the mount point we suspended.

Calculate mp by VOP_GETWRITEMOUNT()
Do not leak VI_FOPENING

Tue, Oct 6, 5:30 PM
kib requested review of D60402: rtld.c: avoid double-free on dso load failure in do_load_object().
Tue, Oct 6, 8:27 AM
kib committed rGea23918b025b: rtld-elf/i386: remove no longer true __unused args annotations (authored by kib).
rtld-elf/i386: remove no longer true __unused args annotations
Tue, Oct 6, 7:58 AM
kib added inline comments to D59988: sched: New scheduler interface definition scheme.
Tue, Oct 6, 7:56 AM
kib accepted D60401: libcasper: tolerate kernels without PD_NOWAITPID.

This is a forward compatibility, which we do not support. You must run the kernel which is newer than the userspace, and there were a lot of time between PD_NOWAITPID introduction and the first use.
But I do not intend to block this.

Tue, Oct 6, 7:51 AM
kib added inline comments to D60377: sys/pcpu.h: Implement IS_BSP() for all arches, provide BSP_CPUID().
Tue, Oct 6, 7:48 AM
kib added inline comments to D60355: ufs: undo the new parent's link when ufs_rename() cannot rewrite "..".
Tue, Oct 6, 6:14 AM
kib committed rG1e595e959f66: devfs_open: do not access dsw after dev_relthread() (authored by kib).
devfs_open: do not access dsw after dev_relthread()
Tue, Oct 6, 12:48 AM
kib closed D60393: devfs_open: do not deref dsw after dev_relthread().
Tue, Oct 6, 12:48 AM

Mon, Oct 5

kib requested review of D60393: devfs_open: do not deref dsw after dev_relthread().
Mon, Oct 5, 11:37 PM
kib updated the diff for D60283: kern/coredump_vnode.c: avoid dumping to the mount point we suspended.

Rename flags.

Mon, Oct 5, 10:54 PM
kib added inline comments to D60283: kern/coredump_vnode.c: avoid dumping to the mount point we suspended.
Mon, Oct 5, 10:54 PM
kib accepted D60364: devfs: Explicitly disable inotify.
Mon, Oct 5, 10:29 PM
kib committed rG499901dd7a0a: ufssuspend(4): mark non-passable (authored by kib).
ufssuspend(4): mark non-passable
Mon, Oct 5, 10:20 PM
kib committed rG850d4562928e: cdevsw: add D_NONPASSABLE flag (authored by kib).
cdevsw: add D_NONPASSABLE flag
Mon, Oct 5, 10:20 PM
kib closed D60285: ufssuspend(4): mark non-passable.
Mon, Oct 5, 10:19 PM
kib updated the diff for D60285: ufssuspend(4): mark non-passable.
cdevsw: add D_NONPASSABLE flag
Mon, Oct 5, 1:34 PM
kib updated the diff for D60283: kern/coredump_vnode.c: avoid dumping to the mount point we suspended.

Apply even more atomicity to loads.
Drop the mp != NULL check.

Mon, Oct 5, 1:32 PM
kib accepted D60204: ufs: do not busy the mount point in ufs_sync_nlink1().

Same request to run the full stress2 with Peter' help.

Mon, Oct 5, 7:22 AM
kib accepted D60134: ufs: make fdatasync(2), O_SYNC and O_DSYNC writes durable.

Please ask Peter to do the full stress2 run

Mon, Oct 5, 4:27 AM
kib updated the diff for D60283: kern/coredump_vnode.c: avoid dumping to the mount point we suspended.

Add assert in addition to stating the locking mode for mnt_susp_owner

Mon, Oct 5, 3:46 AM
kib updated the diff for D60283: kern/coredump_vnode.c: avoid dumping to the mount point we suspended.

Elaborate more about locking.

Mon, Oct 5, 2:46 AM
kib added a comment to D58851: vm_object_take_pages_for_io(9).

I do have a question w.r.t. read on the NFS server.
I am guessing that the NFS code needs to VOP_GETATTR()
and use va_size to determine where the file ends in the last
page.
Is that correct?

Mon, Oct 5, 1:21 AM
kib updated the diff for D60283: kern/coredump_vnode.c: avoid dumping to the mount point we suspended.

Add comment.

Mon, Oct 5, 1:17 AM

Sun, Oct 4

kib updated the diff for D60283: kern/coredump_vnode.c: avoid dumping to the mount point we suspended.

Ensure that mnt_susp_owner is not NULL.

Sun, Oct 4, 2:57 PM
kib added a comment to D60283: kern/coredump_vnode.c: avoid dumping to the mount point we suspended.

I have a question about vn_open_nosuspend.

It reads mnt_kern_flag and mnt_susp_owner without MNT_ILOCK, is it possible for a core dump to start and see (MNTK_SUSPEND | MNTK_SUSPENDED) before mnt_susp_owner is set (a possible but unlikely NULL ptr dereference here)?

If a core dump and a fs snapshot start at the same time, for example?

Sun, Oct 4, 2:56 PM
kib updated the summary of D60285: ufssuspend(4): mark non-passable.
Sun, Oct 4, 12:17 PM
kib added a comment to D60283: kern/coredump_vnode.c: avoid dumping to the mount point we suspended.

There is also D60285 somewhat related to this.

Sun, Oct 4, 12:16 PM
kib updated the diff for D60283: kern/coredump_vnode.c: avoid dumping to the mount point we suspended.

Use dvp for nosuspend check.

Sun, Oct 4, 11:57 AM
kib accepted D59988: sched: New scheduler interface definition scheme.
Sun, Oct 4, 11:53 AM
kib updated the diff for D60283: kern/coredump_vnode.c: avoid dumping to the mount point we suspended.

Push suspend check into vn_open_cred().

Sun, Oct 4, 11:26 AM
kib added a comment to D58855: namei: retry absolute symlink expansions from the native root.

There is a global issue with the restart apparently, and this change only highlights it. If the ABI pass failed, ndp is reinitialized with namei_getpath() which re-reads the userspace path. In fact it is more, the same re-reading might happen due to the cached lookup. I think eventually we should fix it.

Sun, Oct 4, 9:08 AM
kib added a comment to D58855: namei: retry absolute symlink expansions from the native root.

I think this is fine, I only have two relatively formal notes about the code structure.

Sun, Oct 4, 9:06 AM
kib accepted D59356: ffs: revalidate mkdir dependencies after vnode lookup.
Sun, Oct 4, 7:26 AM · Contributor Reviews (src)
kib requested review of D60285: ufssuspend(4): mark non-passable.
Sun, Oct 4, 12:54 AM
kib committed rGf39219fc43c2: libthr.3: document LIBPTHREAD_PSHARED_LOCK_DESTROY_IMMEDIATE_GC (authored by kib).
libthr.3: document LIBPTHREAD_PSHARED_LOCK_DESTROY_IMMEDIATE_GC
Sun, Oct 4, 12:35 AM
kib committed rGe831067d51b4: libthr: GC pshared locks not more than each 25msecs by default (authored by kib).
libthr: GC pshared locks not more than each 25msecs by default
Sun, Oct 4, 12:35 AM
kib committed rG0143078248bb: linux(4): Fix signal mask restoration in epoll_pwait(2)/epoll_pwait2(2) (authored by Grzegorz Junka <list1@gjunka.com>).
linux(4): Fix signal mask restoration in epoll_pwait(2)/epoll_pwait2(2)
Sun, Oct 4, 12:35 AM
kib requested review of D60283: kern/coredump_vnode.c: avoid dumping to the mount point we suspended.
Sun, Oct 4, 12:02 AM

Sat, Oct 3

kib accepted D60280: uiomove_object_page: a failed copy can still dirty the page.
In D60280#1383380, @kib wrote:

We can compare the old and new uio_resid then.

Sat, Oct 3, 11:49 PM
kib added a comment to D60280: uiomove_object_page: a failed copy can still dirty the page.

We can compare the old and new uio_resid then.

Sat, Oct 3, 11:14 PM
kib requested review of D60272: splitlocks 2026q3 report.
Sat, Oct 3, 3:25 AM

Fri, Oct 2

kib accepted D60246: callout: enforce a minimum retry delay for CALLOUT_TRYLOCK.
Fri, Oct 2, 9:18 PM
kib added a comment to D60134: ufs: make fdatasync(2), O_SYNC and O_DSYNC writes durable.

I generally do not like this version, it adds a lot of complexity for something that is hard to test.

Fri, Oct 2, 9:00 PM
kib added a comment to D60255: machine/floatingpoing.h: harmonize all arches.
In D60255#1382883, @imp wrote:

So is there some reason this can't be just

/* This file is in the public domain */
#pragma once
#include <sys/_floatingpoint.h>

where sys/_floatingpoint.h is

/* This file is in the public domain */
#pragma once
#include <sys/cdefs.h>
#include <machine/ieeefp.h>
Fri, Oct 2, 8:21 PM
kib committed rGdec68aeff8ce: libc/stdlib/getenv.c: always allocate new environment (authored by kib).
libc/stdlib/getenv.c: always allocate new environment
Fri, Oct 2, 8:02 PM
kib closed D59996: libc/stdlib/getenv.c: always allocate new environment.
Fri, Oct 2, 8:02 PM
kib requested review of D60255: machine/floatingpoing.h: harmonize all arches.
Fri, Oct 2, 7:47 PM
kib requested review of D60229: 2026Q3 pdptrace(2) report.
Fri, Oct 2, 7:26 AM
kib added a reviewer for D59458: rdma-core 2026Q3 report: status.
Fri, Oct 2, 7:26 AM
kib added a reviewer for D59356: ffs: revalidate mkdir dependencies after vnode lookup: chs.
Fri, Oct 2, 4:28 AM · Contributor Reviews (src)
kib added a comment to D59356: ffs: revalidate mkdir dependencies after vnode lookup.

I think this is fine. I suggest asking Peter to do the full stress2 run with the patch applied.

Fri, Oct 2, 4:28 AM · Contributor Reviews (src)
kib added a comment to D60207: LinuxKPI: rework module build options to use CFLAGS_LINUXKPI=.

Might be LINUXKPI_SOURCES?

Fri, Oct 2, 1:31 AM
kib added a comment to D60207: LinuxKPI: rework module build options to use CFLAGS_LINUXKPI=.

In the end I'll do the s///g to whatever people think is best.

Unfortunately I don't have a great idea of a better name, it just looked a little odd. So I suspect you'll have to pick something and nobody will object. If you want to leave it as is that's fine with me too. It looks a bit strange but it's obvious in context that we're not literally adding "YES" to CFLAGS.

I was going to say that e.g. LINUXKPI_CFLAGS=YES would be my suggestion before discovering that most of the literal CFLAGS additions use that form already. I do like that it's in a LINUXKPI namespace though.

Fri, Oct 2, 1:30 AM
kib added inline comments to D60204: ufs: do not busy the mount point in ufs_sync_nlink1().
Fri, Oct 2, 1:28 AM
kib committed rGe04975952eae: pdfork.2: downgrade sections inside description to subsections (authored by kib).
pdfork.2: downgrade sections inside description to subsections
Fri, Oct 2, 12:30 AM
kib committed rGa362cdbc40fc: amd64/mp_machdep.c: remove double 'for' in comment (authored by kib).
amd64/mp_machdep.c: remove double 'for' in comment
Fri, Oct 2, 12:30 AM
kib updated the diff for D60035: chaltroot(2).

Change -1 to FCHALTROOT_DISABLE
Check VACCESS(EXEC) for altroot
Man page editings.

Fri, Oct 2, 12:28 AM
kib added inline comments to D60035: chaltroot(2).
Fri, Oct 2, 12:28 AM

Thu, Oct 1

kib accepted D59906: mountpoint(1): new utility, implemented as a stat(1) hardlink using SFBSD_MNTPOINT.
Thu, Oct 1, 6:26 PM
kib accepted D60194: ifuncs: Include <machine/ifunc.h> instead of <x86/ifunc.h>.
Thu, Oct 1, 6:18 PM
kib added inline comments to D59906: mountpoint(1): new utility, implemented as a stat(1) hardlink using SFBSD_MNTPOINT.
Thu, Oct 1, 5:32 AM
kib accepted D60167: ifuncs: Have DEFINE_*IFUNC() macros expand the passed name.

I'm wondering whether to put #include <sys/cdefs.h> in all headers, and add the missing includes to make all these headers standalone.

Thu, Oct 1, 5:26 AM
kib committed rGa30ea6460ac6: VFS: style (authored by kib).
VFS: style
Thu, Oct 1, 1:18 AM
kib committed rG592ed51533a2: VFS: require locked vnode for fsync() (authored by kib).
VFS: require locked vnode for fsync()
Thu, Oct 1, 1:17 AM
kib committed rG430287781dea: g_vfs_close_unlocked(9): wrapper around g_vfs_close(9) (authored by kib).
g_vfs_close_unlocked(9): wrapper around g_vfs_close(9)
Thu, Oct 1, 1:17 AM
kib committed rGc363f7271937: filesystems: use g_vfs_close_unlocked(9) (authored by kib).
filesystems: use g_vfs_close_unlocked(9)
Thu, Oct 1, 1:17 AM

Wed, Sep 30

kib committed rG1e8708d9b598: stat.2: document SFBSD_MNTROOT (authored by kib).
stat.2: document SFBSD_MNTROOT
Wed, Sep 30, 9:37 PM
kib committed rG0d5d8872931c: stat(2): report mount points using st_bsdflags SFBSD_MNTPOINT flag (authored by kib).
stat(2): report mount points using st_bsdflags SFBSD_MNTPOINT flag
Wed, Sep 30, 9:37 PM
kib closed D59910: stat(2): report mount points using st_bsdflags SFBSD_MNTPOINT flag.
Wed, Sep 30, 9:37 PM
kib accepted D60095: x86: Add Intel Last Branch Records MSRs.
Wed, Sep 30, 4:05 PM
kib removed a reviewer for D60035: chaltroot(2): chs.
Wed, Sep 30, 12:38 PM
kib added a reviewer for D60035: chaltroot(2): chs.
Wed, Sep 30, 12:38 PM
kib added a reviewer for D60134: ufs: make fdatasync(2), O_SYNC and O_DSYNC writes durable: chs.
Wed, Sep 30, 12:37 PM
kib added inline comments to D60134: ufs: make fdatasync(2), O_SYNC and O_DSYNC writes durable.
Wed, Sep 30, 12:37 PM
kib accepted D60137: ufs: report why rewriting ".." failed in rename.
Wed, Sep 30, 4:38 AM
kib accepted D59958: ipi: avoid false KMSAN / KASAN reports in ipi_swi_handler().
Wed, Sep 30, 3:26 AM
kib accepted D59872: cuse: Improve server cleanup.
Wed, Sep 30, 1:10 AM
kib added inline comments to D60134: ufs: make fdatasync(2), O_SYNC and O_DSYNC writes durable.
Wed, Sep 30, 1:00 AM
kib committed rGc121ed33cde5: linuxkpi: Fix double-cleanup in linux_pci_attach_device() error path (authored by slavash).
linuxkpi: Fix double-cleanup in linux_pci_attach_device() error path
Wed, Sep 30, 12:54 AM

Tue, Sep 29

kib added inline comments to D59356: ffs: revalidate mkdir dependencies after vnode lookup.
Tue, Sep 29, 10:26 PM · Contributor Reviews (src)