Page MenuHomeFreeBSD

kib (Konstantin Belousov)
User

Projects

User Details

User Since
May 16 2014, 7:35 PM (595 w, 1 d)

Recent Activity

Yesterday

kib added a comment to D53026: realpath: Avoid doing unnecessary work.
In D53026#1211786, @des wrote:

@mjg @kib do you agree that there is no reason why the userland implementation of realpath() would succeed after the syscall failed, except in the case of a race?

Sat, Oct 11, 7:23 PM
kib added a comment to D52045: Copy kqueues into the child on fork.

I intend to commit this early next week.

Sat, Oct 11, 6:39 PM
kib updated the diff for D52045: Copy kqueues into the child on fork.

Bug fixes after Peter' testing.

Sat, Oct 11, 6:38 PM
kib committed rG6eb4708a84d7: kern_exit.c: do not leak reaper bitmap busy bits (authored by kib).
kern_exit.c: do not leak reaper bitmap busy bits
Sat, Oct 11, 5:10 AM
kib committed rG6506630a28bc: vm_fault_busy_sleep(): update comment after addition of allocflags arg (authored by kib).
vm_fault_busy_sleep(): update comment after addition of allocflags arg
Sat, Oct 11, 5:10 AM
kib committed rG27d5df7c26c2: vm_fault: assert that first_m is xbusy (authored by kib).
vm_fault: assert that first_m is xbusy
Sat, Oct 11, 5:10 AM
kib committed rG650a9a12c061: vm_fault: try to only share-busy page for soft faults (authored by kib).
vm_fault: try to only share-busy page for soft faults
Sat, Oct 11, 5:10 AM
kib committed rGc8e9bad25a43: vm_fault: add helper vm_fault_can_cow_rename() (authored by kib).
vm_fault: add helper vm_fault_can_cow_rename()
Sat, Oct 11, 5:10 AM
kib committed rG0188344fc3ec: vm_fault: add vm_fault_might_be_cow() helper (authored by kib).
vm_fault: add vm_fault_might_be_cow() helper
Sat, Oct 11, 5:10 AM
kib committed rG6bffdfe05b77: vm_fault_busy_sleep(): pass explicit allocflags for vm_page_busy_sleep() (authored by kib).
vm_fault_busy_sleep(): pass explicit allocflags for vm_page_busy_sleep()
Sat, Oct 11, 5:09 AM
kib committed rG40c8d6877269: vm/vm_fault.c: cleanup includes (authored by kib).
vm/vm_fault.c: cleanup includes
Sat, Oct 11, 5:09 AM
kib committed rG07debe52b30a: pdgetpid(2): switch back returning EBADF for non-procdesc fd (authored by kib).
pdgetpid(2): switch back returning EBADF for non-procdesc fd
Sat, Oct 11, 5:09 AM
kib committed rGac3444a9528e: kern: replace several EBADF with EINVAL (authored by kib).
kern: replace several EBADF with EINVAL
Sat, Oct 11, 5:09 AM

Fri, Oct 10

kib added a comment to D52940: rb tree: quiet gcc -Wmaybe-uninitialized.

You might hide the workaround under some sort of ifdef gcc. It would be tricky, though, since this needs to happen inside the macro.

Fri, Oct 10, 5:01 PM
kib added a comment to D53023: libm: remainder: make sure x is zero.

Ask kargl@ for explicit feedback and approval of the patch.

Fri, Oct 10, 4:58 PM

Thu, Oct 9

kib committed rG033587a985a4: mount_nullfs.8: document unixbypass and nounixbypass (authored by kib).
mount_nullfs.8: document unixbypass and nounixbypass
Thu, Oct 9, 11:03 PM
kib committed rG6fa205a6233f: nullfs: add nounixbypass mount option (authored by kib).
nullfs: add nounixbypass mount option
Thu, Oct 9, 11:03 PM
kib committed rG8e6f6a5fbde7: nullfs_mount: use symbols instead of string literals for cache mount options (authored by kib).
nullfs_mount: use symbols instead of string literals for cache mount options
Thu, Oct 9, 11:03 PM
kib committed rG419f2fe6b70b: nullfs: add a helper for testing if vnode belongs to a nullfs mount (authored by kib).
nullfs: add a helper for testing if vnode belongs to a nullfs mount
Thu, Oct 9, 11:03 PM
kib committed rG035f1971ade4: fs/nullfs/null.h: put first definition after headers include (authored by kib).
fs/nullfs/null.h: put first definition after headers include
Thu, Oct 9, 11:03 PM
kib closed D52983: nullfs: add nounixbypass mount option.
Thu, Oct 9, 11:02 PM
kib updated the diff for D52983: nullfs: add nounixbypass mount option.
Thu, Oct 9, 10:33 PM
kib added inline comments to D52983: nullfs: add nounixbypass mount option.
Thu, Oct 9, 10:31 PM
kib added inline comments to D52983: nullfs: add nounixbypass mount option.
Thu, Oct 9, 10:31 PM
kib accepted D53008: vm_object: Export the number of wired pages in vm_object_list_handler().
Thu, Oct 9, 10:24 PM
kib updated the diff for D52983: nullfs: add nounixbypass mount option.

Rename the option to 'unixbypass'.
Add documentation.

Thu, Oct 9, 8:56 PM
kib accepted D52997: vm_object: Reset kvo_path on each iteration in vm_object_list_handler().
Thu, Oct 9, 8:41 PM
kib accepted D52997: vm_object: Reset kvo_path on each iteration in vm_object_list_handler().

Might be bzero() whole *kvo on each iteration?

Thu, Oct 9, 4:56 PM
kib added a comment to D52983: nullfs: add nounixbypass mount option.

This should be documented in mount_nullfs.8. The implementation looks ok to me.

Thu, Oct 9, 2:41 PM

Wed, Oct 8

kib accepted D52982: kstack: Fix iterator usage in vm_thread_stack_create().
Wed, Oct 8, 4:19 PM
kib requested review of D52983: nullfs: add nounixbypass mount option.
Wed, Oct 8, 4:10 PM
kib added inline comments to D51623: amd64: Add kexec support.
Wed, Oct 8, 5:42 AM
kib added inline comments to D52045: Copy kqueues into the child on fork.
Wed, Oct 8, 5:30 AM
kib updated the summary of D52045: Copy kqueues into the child on fork.
Wed, Oct 8, 3:09 AM
kib updated the diff for D52045: Copy kqueues into the child on fork.

Rebase. Document KQUEUE_CPONFORK

Wed, Oct 8, 3:08 AM
kib accepted D52941: acpidump: quiet gcc -Wstrict-aliasing.
Wed, Oct 8, 2:41 AM
kib accepted D52940: rb tree: quiet gcc -Wmaybe-uninitialized.

Might be s/compiler/gcc/

Wed, Oct 8, 2:40 AM
kib added a comment to D52939: rb tree: remove strict aliasing violations.

There are other options for how to spell the internal macros. I'm open to something else that might be more clear. Something in particular I considered is just providing

#define _RB_OP_RVAL(elm, op, dir)	((__typeof(elm))		\
					((__uintptr_t)(elm) op (dir)))
#define	_RB_OP(elm, op, dir)	((elm) = _RB_OP_RVAL((elm), op, (dir)))
#define	_RB_OPUP(elm, field, op, dir)	_RB_OP(_RB_UP((elm), field), op, (dir))

and not _RB_{OR,XOR,ORUP,XORUP} and then having the rb code look like e.g.

			_RB_OPUP(parent, field, ^, elmdir);

instead of _RB_XORUP(parent, field, elmdir).

Wed, Oct 8, 2:38 AM

Mon, Oct 6

kib committed rGf19ef352ec63: kern_exit.c: do not leak reaper bitmap busy bits (authored by kib).
kern_exit.c: do not leak reaper bitmap busy bits
Mon, Oct 6, 4:49 PM
kib closed D52814: kern_exit.c: do not leak reaper bitmap busy bits.
Mon, Oct 6, 4:49 PM
kib added inline comments to D52929: Makefile: Force DISTDIR=/ for (update-)packages.
Mon, Oct 6, 4:42 PM
kib accepted D52935: nullfs: Apply comments from D38761 (style fixes, small improvements).
Mon, Oct 6, 3:04 PM
kib added inline comments to D52820: arch.7: deprecate __ILP32__ and __LP64__ macros.
Mon, Oct 6, 3:02 PM
kib added a comment to D51623: amd64: Add kexec support.
In D51623#1209045, @kib wrote:

It seems that you always build 4-level intermediate page table. Wouldn't it blow up if the source kernel is running in LA57 mode? [Kernel always expect LA48 on start nonetheless]

You're right. I'll need to force it down to LA48 when entering the new page table. I'll have to check on this, as I'm not familiar with configuring LA57 mode.

Mon, Oct 6, 2:09 PM

Sun, Oct 5

kib accepted D51549: fusefs: Support for the auto_unmount FUSE option.
Sun, Oct 5, 10:03 PM
kib accepted D52915: fix file_v_unlock.
Sun, Oct 5, 9:04 PM
kib added a comment to D51623: amd64: Add kexec support.

It seems that you always build 4-level intermediate page table. Wouldn't it blow up if the source kernel is running in LA57 mode? [Kernel always expect LA48 on start nonetheless]

Sun, Oct 5, 2:07 PM
kib updated the diff for D52744: atomic.9: provide fine details about CAS memory model MD semantic.

Fix acq/rel description for RMW.

Sun, Oct 5, 8:53 AM
kib added a comment to D52744: atomic.9: provide fine details about CAS memory model MD semantic.

Yes indeed what you noted is a bug in the description of acq/rel for atomics that perform more than one memory access, basically all RWM atomics. I think just fixing that would be enough.

Sun, Oct 5, 8:52 AM
kib accepted D52898: libc: Move NLS catalogues to the locales packages.

Thanks.

Sun, Oct 5, 2:32 AM

Sat, Oct 4

kib accepted D52898: libc: Move NLS catalogues to the locales packages.
Sat, Oct 4, 10:23 AM
kib added inline comments to D52898: libc: Move NLS catalogues to the locales packages.
Sat, Oct 4, 9:28 AM
kib committed rG7b980bf5e526: kern/vfs_vnops.c: generalize the lock primitive for file foffset (authored by kib).
kern/vfs_vnops.c: generalize the lock primitive for file foffset
Sat, Oct 4, 9:10 AM
kib committed rG5f0155e497fc: kern/vfs_vnops.c: generalize the lock primitive for file foffset (authored by kib).
kern/vfs_vnops.c: generalize the lock primitive for file foffset
Sat, Oct 4, 9:10 AM

Fri, Oct 3

kib added inline comments to D52744: atomic.9: provide fine details about CAS memory model MD semantic.
Fri, Oct 3, 10:18 PM
kib accepted D52819: nullfs: smr-protected hash lookup and locking.
Fri, Oct 3, 7:09 PM
kib accepted D52864: */*: remove recallocarray() compat shims following import into libc.
Fri, Oct 3, 5:36 PM
kib added inline comments to D52854: lib{c,openbsd}: use ckd_mul() for overflow checking in re(c)allocarray.
Fri, Oct 3, 5:35 PM
kib accepted D52863: lib/libc: add recallocarray().
Fri, Oct 3, 5:35 PM
kib added inline comments to D52819: nullfs: smr-protected hash lookup and locking.
Fri, Oct 3, 5:34 PM
kib added inline comments to D51549: fusefs: Support for the auto_unmount FUSE option.
Fri, Oct 3, 5:31 PM
kib added inline comments to D51549: fusefs: Support for the auto_unmount FUSE option.
Fri, Oct 3, 5:29 PM
kib accepted D52820: arch.7: deprecate __ILP32__ and __LP64__ macros.
Fri, Oct 3, 3:54 PM
kib added inline comments to D52819: nullfs: smr-protected hash lookup and locking.
Fri, Oct 3, 3:52 PM
kib accepted D52822: arch.7: Add CHERI architectures.
Fri, Oct 3, 3:03 PM
kib accepted D52721: filedesc: Close race between fcntl(F_SETFL) and ioctl(FIONIO/FIOASYNC).
Fri, Oct 3, 2:57 PM
kib added inline comments to D51549: fusefs: Support for the auto_unmount FUSE option.
Fri, Oct 3, 2:53 PM
kib accepted D52863: lib/libc: add recallocarray().

Both changes (Versions.def) and this one can be MFCed, but we normally do the Versions.def change separately because there might be other symbol in FBSD_1.9 that is merged before your recallocarray.

Fri, Oct 3, 3:05 AM
kib accepted D52878: lib/libc: add FBSD-1.9 to Versions.def.
Fri, Oct 3, 3:01 AM

Thu, Oct 2

kib added inline comments to D52863: lib/libc: add recallocarray().
Thu, Oct 2, 11:03 PM
kib accepted D52854: lib{c,openbsd}: use ckd_mul() for overflow checking in re(c)allocarray.
Thu, Oct 2, 11:00 PM
kib added a comment to D52820: arch.7: deprecate __ILP32__ and __LP64__ macros.

So are ILP32/LP64 defined for cheri? If not, please mention it explicitly.

Thu, Oct 2, 10:44 PM
kib added inline comments to D51549: fusefs: Support for the auto_unmount FUSE option.
Thu, Oct 2, 10:42 PM
kib accepted D52819: nullfs: smr-protected hash lookup and locking.
Thu, Oct 2, 5:10 AM
kib added inline comments to D52822: arch.7: Add CHERI architectures.
Thu, Oct 2, 4:19 AM
kib added a comment to D52820: arch.7: deprecate __ILP32__ and __LP64__ macros.

Are ILP32/LP64 undefined for cheri? If yes, I think that this should be explicitly mentioned, and in fact these macros are still useful, to exclude the outliers from regular arches.

Thu, Oct 2, 3:21 AM

Wed, Oct 1

kib accepted D52821: arch.7: decouple long and pointer sizes.
Wed, Oct 1, 1:45 PM
kib added a comment to D52819: nullfs: smr-protected hash lookup and locking.

This is not a complete patch, I think? The other bits except smr lock are missing.

Wed, Oct 1, 1:42 PM
kib accepted D52817: arch.7: Remove mention of PDP11_ENDIAN.
Wed, Oct 1, 1:25 PM
kib accepted D52818: arch.7: correct claim about ILP32 alignment.
Wed, Oct 1, 12:59 PM
kib added a comment to D52818: arch.7: correct claim about ILP32 alignment.

Is this true for 32-bit powerpc as well?

From what I could tell in compiler explorer, yes.

Wed, Oct 1, 12:59 PM
kib added a comment to D52817: arch.7: Remove mention of PDP11_ENDIAN.

Might be, keep the note but replace the symbol by a descriptive text?

Wed, Oct 1, 12:49 PM
kib added inline comments to D52744: atomic.9: provide fine details about CAS memory model MD semantic.
Wed, Oct 1, 12:01 PM
kib updated the diff for D52744: atomic.9: provide fine details about CAS memory model MD semantic.

Markj@ editing

Wed, Oct 1, 10:39 AM
kib added inline comments to D52744: atomic.9: provide fine details about CAS memory model MD semantic.
Wed, Oct 1, 10:38 AM
kib updated the diff for D52814: kern_exit.c: do not leak reaper bitmap busy bits.

Tighten lock assert in reaper_clear()

Wed, Oct 1, 10:30 AM
kib added inline comments to D52814: kern_exit.c: do not leak reaper bitmap busy bits.
Wed, Oct 1, 10:29 AM
kib added a comment to D52819: nullfs: smr-protected hash lookup and locking.

The commit message body is ought to be more detailed than <nul>.

Wed, Oct 1, 10:22 AM
kib requested review of D52814: kern_exit.c: do not leak reaper bitmap busy bits.
Wed, Oct 1, 5:42 AM
kib added inline comments to D52721: filedesc: Close race between fcntl(F_SETFL) and ioctl(FIONIO/FIOASYNC).
Wed, Oct 1, 4:17 AM
kib committed rGd83bd3bb94fe: amd64: add wrmsr_early_safe(9) (authored by kib).
amd64: add wrmsr_early_safe(9)
Wed, Oct 1, 3:23 AM
kib committed rG799fae57caa7: libsys: drop private exports no longer needed (authored by kib).
libsys: drop private exports no longer needed
Wed, Oct 1, 3:14 AM
kib committed rG47f5f89dbd27: libc: properly forward the compat syscall references to libsys (authored by kib).
libc: properly forward the compat syscall references to libsys
Wed, Oct 1, 3:14 AM
kib committed rG8a8d6e18611f: libc: un-namespace gen-compat.h (authored by kib).
libc: un-namespace gen-compat.h
Wed, Oct 1, 3:13 AM
kib committed rG45f786241c92: mlx5 ipsec: Add VLAN tag to IPSec rules to prevent duplicates (authored by Ariel Ehrenberg <aehrenberg@nvidia.com>).
mlx5 ipsec: Add VLAN tag to IPSec rules to prevent duplicates
Wed, Oct 1, 3:13 AM
kib committed rGd4f91b6d25cb: amd64: add wrmsr_early_safe(9) (authored by kib).
amd64: add wrmsr_early_safe(9)
Wed, Oct 1, 3:13 AM
kib updated the diff for D52744: atomic.9: provide fine details about CAS memory model MD semantic.

Be explicit about what might happen on aarch64.

Wed, Oct 1, 2:58 AM

Tue, Sep 30

kib added a comment to D51594: pkgbasify: Add to the base system.

If /usr/sbin is fine, but libexec is decided, then it should be /usr/libexec and not /libexec. /libexec is for something that is needed when booting the system.

Tue, Sep 30, 3:10 PM
kib updated the diff for D52744: atomic.9: provide fine details about CAS memory model MD semantic.

Remove .Tn

Tue, Sep 30, 7:51 AM
kib accepted D52792: libstdthreads: Move to the runtime package.
Tue, Sep 30, 5:29 AM