Page MenuHomeFreeBSD

kib (Konstantin Belousov)
User

Projects

User Details

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

Recent Activity

Today

kib accepted D55494: Refinement to kernel extended error reporting.
Wed, Feb 25, 10:13 PM
kib committed rG87ca74de89e0: mlx5: convert GET_TRUNK_IF() to function (authored by kib).
mlx5: convert GET_TRUNK_IF() to function
Wed, Feb 25, 5:21 PM
kib committed rGde29fd032225: mlx5: report IPSEC offload capabilities whenever IPSEC_OFFLOAD is configured (authored by kib).
mlx5: report IPSEC offload capabilities whenever IPSEC_OFFLOAD is configured
Wed, Feb 25, 5:21 PM
kib committed rG0e5caac7d543: ipsec_offload: add comment stating why ipsec_accel_sa_newkey_cb() returns 0 (authored by kib).
ipsec_offload: add comment stating why ipsec_accel_sa_newkey_cb() returns 0
Wed, Feb 25, 5:21 PM
kib committed rG477f020c7b54: netipsec/ipsec_offload.c: handle failures to install SA nicely (authored by kib).
netipsec/ipsec_offload.c: handle failures to install SA nicely
Wed, Feb 25, 5:20 PM
kib added a comment to D55504: xen/acpi: implement hook to notify Xen about entering sleep.

I do not have any opinion on the change, perhaps the only feedback you need is from jkim@ who does the acpica imports.
I only have style/cosmetics notes.

Wed, Feb 25, 5:01 PM
kib added a comment to D55494: Refinement to kernel extended error reporting.
In D55494#1269805, @kib wrote:

Sorry for spamming.

More, I suggest to implement it by adding the new value to the exterr_verbose_state enum. The value of the variable would be checked only once then.

Wed, Feb 25, 5:45 AM
kib requested review of D55498: exterr: support for EXTERROR_VERBOSE=brief.
Wed, Feb 25, 5:44 AM
kib added a comment to D55230: fusefs: redo vnode attribute locking.

@kib is there anything else you'd like me to do for this PR, short of rewriting everything so the vnode lock isn't held while waiting for the daemon?

Wed, Feb 25, 2:22 AM
kib added a comment to D55391: LinuxKPI: pass attrs in more places in dma-mapping.h.

IB core does pass the DMA_ATTR_WRITE_BARRIER. What is the semantic for the flag?

Wed, Feb 25, 1:58 AM
kib added a comment to D55480: ELF: detect and reject CheriABI binaries.
In D55480#1269551, @kib wrote:

First, there are two unrelated changes. One for the in-kernel ELF image activator, another for the kernel linker.

Then, for the image activator, why the is_cheri checks needs to be done in MI code? We have brand matchers (header_supported/brand_supported), which get the pointer to the mapped ELF header. Why cannot it be done there, in <arch>/elf_machdep.c?

You could make the same argument for e_machine/EI_CLASS/EI_DATA. Like those, this is an MI concept, so it's in MI code rather than having MD boilerplate (that, I will note, also has some odd semantics when it comes to the bool-returning functions, though I don't remember off the top of my head what those were). The MD hooks are for MD things like "v1 or v2 of this architecture's psABI". Whereas this is part of ILP32-vs-LP64-vs-"L64PC128" (or whatever name gets given to it, if any), and corresponds to a specific instantiation of the imgact_elf.c template (Elf32 vs Elf64 vs "Elf64C")

Wed, Feb 25, 1:52 AM
kib added a comment to D55494: Refinement to kernel extended error reporting.

Sorry for spamming.

Wed, Feb 25, 1:41 AM
kib added inline comments to D55494: Refinement to kernel extended error reporting.
Wed, Feb 25, 1:39 AM
kib committed rGef1218add1d3: kern/sched_shims.c: back to ifunc (authored by kib).
kern/sched_shims.c: back to ifunc
Wed, Feb 25, 1:34 AM

Yesterday

kib accepted D55453: tools/build/stddef.h: fix stock clang/gcc headers.

Thanks

Tue, Feb 24, 4:46 PM
kib added a comment to D55480: ELF: detect and reject CheriABI binaries.

First, there are two unrelated changes. One for the in-kernel ELF image activator, another for the kernel linker.

Tue, Feb 24, 4:00 PM
kib requested review of D55490: kern/sched_shims.c: back to ifunc.
Tue, Feb 24, 3:38 PM
kib added a comment to D55453: tools/build/stddef.h: fix stock clang/gcc headers.

I also wanted to suggest that the reasons should be explained not only in the commit message, but also in the comment in the file itself. I hesitated, since this is tools/build and of limited scope.

Tue, Feb 24, 3:30 PM

Mon, Feb 23

kib added inline comments to D55426: msi: Support APIC Extended Destination IDs.
Mon, Feb 23, 11:30 PM
kib added inline comments to D55426: msi: Support APIC Extended Destination IDs.
Mon, Feb 23, 11:08 PM
kib accepted D55453: tools/build/stddef.h: fix stock clang/gcc headers.
Mon, Feb 23, 7:38 PM
kib added inline comments to D55426: msi: Support APIC Extended Destination IDs.
Mon, Feb 23, 7:36 PM
kib accepted D55426: msi: Support APIC Extended Destination IDs.
Mon, Feb 23, 7:36 PM
kib added a comment to D55430: vmm: Move defines from x86.c to x86/bhyve.h.

IMO other bits should be also moved to specialreg.h

Mon, Feb 23, 7:35 PM
kib added a comment to D55430: vmm: Move defines from x86.c to x86/bhyve.h.

Perhaps the defines should go into x86/include/specialreg.h together with all other CPUID bits definitions.

Mon, Feb 23, 5:10 PM
kib added inline comments to D55426: msi: Support APIC Extended Destination IDs.
Mon, Feb 23, 5:09 PM
kib added a comment to D55453: tools/build/stddef.h: fix stock clang/gcc headers.

Also use SIZE_TYPE instead of size_t since it's not guaranteed to be defined.

Mon, Feb 23, 4:59 PM

Sun, Feb 22

kib committed rGdfcd04c4c811: net/if_vlan.c: do not leak vlan sx slock in vlan_clone_dump_nl() (authored by kib).
net/if_vlan.c: do not leak vlan sx slock in vlan_clone_dump_nl()
Sun, Feb 22, 8:52 PM
kib closed D55447: net/if_vlan.c: do not leak vlan sx slock in vlan_clone_dump_nl().
Sun, Feb 22, 8:52 PM
kib accepted D55446: nullfs: Fix handling of doomed vnodes in nullfs_unlink_lowervp().
Sun, Feb 22, 7:39 PM
kib accepted D55446: nullfs: Fix handling of doomed vnodes in nullfs_unlink_lowervp().
Sun, Feb 22, 7:35 PM
kib requested review of D55447: net/if_vlan.c: do not leak vlan sx slock in vlan_clone_dump_nl().
Sun, Feb 22, 7:21 PM
kib added inline comments to D55446: nullfs: Fix handling of doomed vnodes in nullfs_unlink_lowervp().
Sun, Feb 22, 7:19 PM

Sat, Feb 21

kib committed rGde0a53727cd7: sys/abi_types.h: time32_t is 64-bit on non-x86 architectures (authored by olce).
sys/abi_types.h: time32_t is 64-bit on non-x86 architectures
Sat, Feb 21, 9:36 PM
kib committed rG2d63a28811e6: sys/event.h: reduce namespace pollution from sys/abi_compat.h (authored by kib).
sys/event.h: reduce namespace pollution from sys/abi_compat.h
Sat, Feb 21, 9:35 PM
kib committed rG1661d41cde10: dev/mfi: include sys/abi_compat.h unconditionally (authored by kib).
dev/mfi: include sys/abi_compat.h unconditionally
Sat, Feb 21, 9:35 PM
kib committed rG5ae9aac0c7d8: openzfs sys/types32.h: use abi_compat.h for time32_t (authored by kib).
openzfs sys/types32.h: use abi_compat.h for time32_t
Sat, Feb 21, 9:35 PM
kib committed rG7a2fdcc5acb9: sys/user.h: remove XXXSKE markers (authored by kib).
sys/user.h: remove XXXSKE markers
Sat, Feb 21, 9:35 PM
kib committed rGc709baba436d: sys/compat/freebsd32: use freebsd32_uint64_t for struct kinfo_proc32 (authored by kib).
sys/compat/freebsd32: use freebsd32_uint64_t for struct kinfo_proc32
Sat, Feb 21, 9:35 PM
kib committed rGc06360af56e8: sys/compat/freebsd32: use freebsd32_uint64_t for several struct stat's (authored by kib).
sys/compat/freebsd32: use freebsd32_uint64_t for several struct stat's
Sat, Feb 21, 9:35 PM
kib committed rG8a8e4399d8c8: sys/compat/freebsd32: ki_pd is missing from struct kinfo_proc32 (authored by kib).
sys/compat/freebsd32: ki_pd is missing from struct kinfo_proc32
Sat, Feb 21, 9:35 PM
kib committed rG838fcf30d7b8: sys/compat/freebsd32: use freebsd32_uint64_t for struct ffclock_estimate32 (authored by kib).
sys/compat/freebsd32: use freebsd32_uint64_t for struct ffclock_estimate32
Sat, Feb 21, 9:35 PM
kib committed rGf4f4f2783c6e: sys/compat/freebsd32: use freebsd32_uint64_t for struct kinfo_knote32 (authored by kib).
sys/compat/freebsd32: use freebsd32_uint64_t for struct kinfo_knote32
Sat, Feb 21, 9:35 PM
kib committed rGf0fe4e11be92: sys/event.h: use freebsd32_uint64_t for kevent32 64bit members (authored by kib).
sys/event.h: use freebsd32_uint64_t for kevent32 64bit members
Sat, Feb 21, 9:35 PM
kib committed rG3d14c793f882: sys/abi_compat.h: add Foundation copyright for uint64_t stuff (authored by kib).
sys/abi_compat.h: add Foundation copyright for uint64_t stuff
Sat, Feb 21, 9:35 PM
kib committed rGc3b1a6ab18cb: sys/abi_compat.h: move freebsd32_uint64_t and FU64_CP() there (authored by kib).
sys/abi_compat.h: move freebsd32_uint64_t and FU64_CP() there
Sat, Feb 21, 9:35 PM
kib committed rG51db826bcee3: sys/abi_compat.h: normalize include guard name (authored by kib).
sys/abi_compat.h: normalize include guard name
Sat, Feb 21, 9:35 PM
kib accepted D55418: buf: Relax an assertion in BUF_UNLOCK.
Sat, Feb 21, 5:10 PM
kib committed rG5c8af592f69a: procctl(PROC_REAP_KILL): align error reporting with pgkill(2) (authored by kib).
procctl(PROC_REAP_KILL): align error reporting with pgkill(2)
Sat, Feb 21, 10:08 AM
kib committed rGbe140717a0a4: procctl(PROC_REAP_KILL): use pgrp pg_killsx sx to sync with fork (authored by kib).
procctl(PROC_REAP_KILL): use pgrp pg_killsx sx to sync with fork
Sat, Feb 21, 10:08 AM
kib committed rG0e67c3f675ea: reap_kill_subtree_once(): reap_kill_proc_work() might drop proctree_lock (authored by kib).
reap_kill_subtree_once(): reap_kill_proc_work() might drop proctree_lock
Sat, Feb 21, 10:08 AM
kib closed D55341: procctl(PROC_REAP_KILL): align error reporting with pgkill(2).
Sat, Feb 21, 10:08 AM
kib closed D55288: procctl(PROC_REAP_KILL): use pgrp pg_killsx sx to sync with fork.
Sat, Feb 21, 10:08 AM
kib committed rG396d70935ecb: pdrfork(2) tests: enable on x86 (authored by kib).
pdrfork(2) tests: enable on x86
Sat, Feb 21, 9:52 AM
kib committed rG677bbff3991b: pdrfork(2) tests: should wait for the child to exit (authored by kib).
pdrfork(2) tests: should wait for the child to exit
Sat, Feb 21, 9:52 AM
kib committed rGe166a6ef87ee: pdrfork(2) tests: split basic_usage (authored by kib).
pdrfork(2) tests: split basic_usage
Sat, Feb 21, 9:52 AM
kib committed rGc2c3881f70ac: pdrfork(2) tests: catch runaway child for EFAULT test (authored by kib).
pdrfork(2) tests: catch runaway child for EFAULT test
Sat, Feb 21, 9:52 AM
kib committed rG7a1c336ab9d6: pdrfork(2) tests: do not rely on (int *)-1 being invalid address (authored by kib).
pdrfork(2) tests: do not rely on (int *)-1 being invalid address
Sat, Feb 21, 9:52 AM
kib committed rG558b76135452: Add tests for pdrfork (authored by asomers).
Add tests for pdrfork
Sat, Feb 21, 9:52 AM
kib committed rGe3fda88831d0: pdrfork(2) tests: RFPROCDESC|RFPROC are required (authored by kib).
pdrfork(2) tests: RFPROCDESC|RFPROC are required
Sat, Feb 21, 9:52 AM
kib committed rGafe686823aa6: pdfork.2: add EFAULT as possible error, explain some consequences of it (authored by kib).
pdfork.2: add EFAULT as possible error, explain some consequences of it
Sat, Feb 21, 9:51 AM
kib committed rGfea8849bacd6: pdrfork(2): do require RFPROCDESC | RFPROC (authored by kib).
pdrfork(2): do require RFPROCDESC | RFPROC
Sat, Feb 21, 9:51 AM
kib committed rGb0551b04f73d: libc: add man page for uexterr_gettext(3) (authored by kib).
libc: add man page for uexterr_gettext(3)
Sat, Feb 21, 9:51 AM
kib committed rG6a263d7c1fbb: libc: improve include usage for exterror sources (authored by kib).
libc: improve include usage for exterror sources
Sat, Feb 21, 9:50 AM
kib committed rGfd91b1f855ec: libc: print extended errors from warn(3) and vwarn(3) (authored by kib).
libc: print extended errors from warn(3) and vwarn(3)
Sat, Feb 21, 9:50 AM

Fri, Feb 20

kib added inline comments to D55395: asmc: introduce the concept of generic models.
Fri, Feb 20, 6:04 PM
kib accepted D55390: ofed: reduce usage of struct dma_attrs *dma_attrs.
Fri, Feb 20, 4:14 PM
kib added a comment to D55395: asmc: introduce the concept of generic models.

I would add a local like const struct asmc_model *m;, and set it to the found 'model'. Then goto to the end of the function, which would do

free(model);
return (m);

This way you have free() only in one place, and all returns would be guaranteed to free the memory.

Fri, Feb 20, 11:46 AM
kib added a comment to D55390: ofed: reduce usage of struct dma_attrs *dma_attrs.

The would it be the time to also change the macros itself to not pass 0 but the last arg?
(I do not have objections to either this patch or updated patch).

Fri, Feb 20, 11:16 AM

Thu, Feb 19

kib committed rGe334b70a2b5b: x86: provide extended description for x86_msr_op(9) (authored by kib).
x86: provide extended description for x86_msr_op(9)
Thu, Feb 19, 10:09 PM
kib committed rGb0bc769c363e: x86_msr_op(9): consistently return the value read from MSR (authored by kib).
x86_msr_op(9): consistently return the value read from MSR
Thu, Feb 19, 10:09 PM
kib committed rG0558fa8f5596: x86: add a safe variant of MSR_OP_SCHED* operations for x86_msr_op(9) (authored by kib).
x86: add a safe variant of MSR_OP_SCHED* operations for x86_msr_op(9)
Thu, Feb 19, 10:09 PM
kib added a comment to D55378: pipe: Avoid unnecessary priv_check() calls in pipespace_new().
In D55378#1266686, @kib wrote:

You could divide by 128 if this is so important.

Could you please explain the motivation for the changes?

I was looking at sources of frequent priv_check() calls from unprivileged processes, trying to see if any are avoidable. These calls might do some non-trivial work if MAC hooks are installed.

Thu, Feb 19, 5:53 PM
kib accepted D55377: sysctl: Avoid calling priv_check() unnecessarily.
Thu, Feb 19, 5:37 PM
kib accepted D55378: pipe: Avoid unnecessary priv_check() calls in pipespace_new().

You could divide by 128 if this is so important.

Thu, Feb 19, 5:37 PM
kib added a comment to D55365: ed: add unicode support for the l (list) command.

https://reviews.freebsd.org/D55364 now has your tests and they pass

Thu, Feb 19, 5:35 PM
kib added a comment to D55365: ed: add unicode support for the l (list) command.
In D55365#1266404, @kib wrote:

I may be missing some idea on what to test

Might be add some tests for e.g. ru_RU.UTF-8? What do you need for this?

In D55365#1266404, @kib wrote:

I may be missing some idea on what to test

Might be add some tests for e.g. ru_RU.UTF-8? What do you need for this?

juste provide me a set of command you would expect to work in ru_RU.UTF-8 and and expected output and I will add it to the test suite.

Thu, Feb 19, 12:27 PM
kib added a comment to D55365: ed: add unicode support for the l (list) command.

I may be missing some idea on what to test

Thu, Feb 19, 11:14 AM
kib added a comment to D55365: ed: add unicode support for the l (list) command.

Do regexps addresses and commands like 's' correctly operate on mb strings?

Thu, Feb 19, 10:28 AM

Wed, Feb 18

kib accepted D55348: kqueue: Make kn_sfflags unsigned.
Wed, Feb 18, 3:43 PM
kib accepted D55348: kqueue: Make kn_sfflags unsigned.
Wed, Feb 18, 3:13 PM
kib accepted D55281: mitigations.7: Describe LASS.
Wed, Feb 18, 3:12 PM
kib added inline comments to D55281: mitigations.7: Describe LASS.
Wed, Feb 18, 3:01 PM
kib accepted D55307: stddef.h: centralize definition of offsetof().
Wed, Feb 18, 2:58 PM
kib updated the diff for D55341: procctl(PROC_REAP_KILL): align error reporting with pgkill(2).

Add comment.

Wed, Feb 18, 2:20 PM
kib updated the diff for D55341: procctl(PROC_REAP_KILL): align error reporting with pgkill(2).

Return on any error, not excluding ESRCH.

Wed, Feb 18, 1:00 PM
kib added inline comments to D44454: intelhfi - Intel TD/HFI driver - Part2: Enable thermal interrupt handler for Local APIC's..
Wed, Feb 18, 11:09 AM · Contributor Reviews (src)
kib added inline comments to D55288: procctl(PROC_REAP_KILL): use pgrp pg_killsx sx to sync with fork.
Wed, Feb 18, 8:27 AM
kib requested review of D55341: procctl(PROC_REAP_KILL): align error reporting with pgkill(2).
Wed, Feb 18, 8:26 AM
kib committed rG48aeff4df8e7: open.2: grammar improvements (authored by kib).
open.2: grammar improvements
Wed, Feb 18, 8:05 AM
kib committed rG4338c437910b: open.2: stop making impression that fd must be directory (authored by kib).
open.2: stop making impression that fd must be directory
Wed, Feb 18, 8:05 AM
kib committed rG532c8d3f90b9: amd64: add LASS support (authored by kib).
amd64: add LASS support
Wed, Feb 18, 8:05 AM
kib committed rG1443a455a96e: libc: improve include usage for exterror sources (authored by kib).
libc: improve include usage for exterror sources
Wed, Feb 18, 7:56 AM
kib committed rGa03f285afafa: libc: add man page for uexterr_gettext(3) (authored by kib).
libc: add man page for uexterr_gettext(3)
Wed, Feb 18, 7:56 AM
kib closed D55337: libc: improve include usage for exterror sources.
Wed, Feb 18, 7:56 AM
kib closed D55336: libc: add man page for uexterr_gettext(3).
Wed, Feb 18, 7:56 AM
kib updated the diff for D55336: libc: add man page for uexterr_gettext(3).

Fix grammar.

Wed, Feb 18, 7:54 AM

Tue, Feb 17

kib abandoned D55319: sys/cdefs.h: tweak compat definition of __builtin_align_down().
Tue, Feb 17, 9:15 PM
kib accepted D55161: __builtin_align_down: Cast value to __uintptr_t in the fallback.
Tue, Feb 17, 9:10 PM
kib requested review of D55337: libc: improve include usage for exterror sources.
Tue, Feb 17, 9:01 PM