Page MenuHomeFreeBSD

kib (Konstantin Belousov)
User

Projects

User Details

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

Recent Activity

Today

kib requested review of D48200: Several fixes for libthr, related to cancellation.
Wed, Dec 25, 4:43 PM
kib committed rG3e8f4a30594f: efirt: use correct ABI for runtime EFI functions (authored by ahmadkhalifa570_gmail.com).
efirt: use correct ABI for runtime EFI functions
Wed, Dec 25, 2:02 AM
kib committed rGdd2b54436445: amd64: on any fault during call to EFI RT, restore execution and print fault… (authored by kib).
amd64: on any fault during call to EFI RT, restore execution and print fault…
Wed, Dec 25, 1:38 AM
kib committed rG5e3ab1894e1e: amd64: extract code to print fault details from trap_fatal() into a new helper (authored by kib).
amd64: extract code to print fault details from trap_fatal() into a new helper
Wed, Dec 25, 1:38 AM
kib closed D48186: amd64 EFI RT: provide fault data on call fault.
Wed, Dec 25, 1:38 AM

Yesterday

kib updated the diff for D48186: amd64 EFI RT: provide fault data on call fault.

Use trap_diag()

Tue, Dec 24, 4:41 PM
kib requested review of D48187: bhyve: fix CPUID L3 Cache Size reporting for AMD/SVM.
Tue, Dec 24, 4:21 AM
kib requested review of D48186: amd64 EFI RT: provide fault data on call fault.
Tue, Dec 24, 2:39 AM

Sun, Dec 22

kib added a comment to D48175: Fix various race conditions leading to an assertion failure in thr_exit().

I did not looked at the rest of the changes for now, what I see are huge stop signs already.

Sun, Dec 22, 7:16 PM
kib accepted D48168: hwpmc_x86: Fix NULL deref when loading on unsupported hardware.
Sun, Dec 22, 6:13 PM

Sat, Dec 21

kib added inline comments to D48168: hwpmc_x86: Fix NULL deref when loading on unsupported hardware.
Sat, Dec 21, 5:05 PM

Fri, Dec 20

kib added inline comments to D48022: cpu_machdep.9: New manpage describing the semantics of several cpu_*.
Fri, Dec 20, 11:34 PM
kib added inline comments to D48022: cpu_machdep.9: New manpage describing the semantics of several cpu_*.
Fri, Dec 20, 10:03 PM
kib committed rG709989bab5d0: nullfs: stop lying about mount flags in statfs(2) (authored by kib).
nullfs: stop lying about mount flags in statfs(2)
Fri, Dec 20, 4:12 PM
kib closed D48150: nullfs: stop lying about mount flags in statfs(2).
Fri, Dec 20, 4:12 PM
kib added a comment to D48150: nullfs: stop lying about mount flags in statfs(2).

Suppose a filesystem has MNT_NOSUID set, and contains a setuid root executable. If I create a nullfs mount of that filesystem and run the executable though nullfs, should the suid bit be honoured? I would expect not, but it is. In particular, MNT_NOSUID is not copied to the upper mount, and the code which checks MNT_NOSUID does not use a VOP, it just checks vp->v_mount->mnt_flags.

Fri, Dec 20, 3:11 PM
kib added a comment to D48150: nullfs: stop lying about mount flags in statfs(2).

When lower fs acts according to its mount configuration, it is reported up as VOP errors.

I do not quite understand what you mean here.

Fri, Dec 20, 2:56 PM
kib updated the diff for D48150: nullfs: stop lying about mount flags in statfs(2).
Fri, Dec 20, 12:09 AM

Thu, Dec 19

kib requested review of D48150: nullfs: stop lying about mount flags in statfs(2).
Thu, Dec 19, 10:17 PM
kib committed rGb762b199afc6: mlx5: Eliminate the use of mlx5_rule_fwd_action (authored by slavash).
mlx5: Eliminate the use of mlx5_rule_fwd_action
Thu, Dec 19, 12:13 AM

Wed, Dec 18

kib accepted D48135: deadfs: cleanup.
Wed, Dec 18, 11:14 PM
kib committed rG705337455f06: amd iommu: remove unused function (authored by kib).
amd iommu: remove unused function
Wed, Dec 18, 2:22 PM

Tue, Dec 17

kib committed rGc7d13682a1ad: lagg: do not advertize support for ipsec offload (authored by kib).
lagg: do not advertize support for ipsec offload
Tue, Dec 17, 9:50 PM

Mon, Dec 16

kib added a comment to D48062: (draft) i386 atomics: Implement 64-bit loading with SSE2.

I believe this is done in the wrong order. First, i386 kernel should be removed from the tree, then the userspace portion of this review can be pushed, with removal of non-sse implementation for load (and similar implementation for store should be done as well).

Mon, Dec 16, 7:37 PM
kib committed rGf87074000873: ip6_output(): if mtu is not yet computed for ipsec hook, use ifp mtu (authored by kib).
ip6_output(): if mtu is not yet computed for ipsec hook, use ifp mtu
Mon, Dec 16, 12:11 PM

Sun, Dec 15

kib committed rG58d1fdfaa90a: amd iommu: remove unused function (authored by kib).
amd iommu: remove unused function
Sun, Dec 15, 11:09 PM
kib committed rG2fb2c0351237: mlx5_core: fix "no space" error on sriov enablement (authored by Ariel Ehrenberg <aehrenberg@nvidia.com>).
mlx5_core: fix "no space" error on sriov enablement
Sun, Dec 15, 10:49 PM
kib committed rG29a9d7c6ce78: mlx5_core: fix panic on sriov enablement (authored by Ariel Ehrenberg <aehrenberg@nvidia.com>).
mlx5_core: fix panic on sriov enablement
Sun, Dec 15, 10:49 PM

Sat, Dec 14

kib added inline comments to D48076: rtld: restore abort for malformed environments while setuid.
Sat, Dec 14, 9:50 AM
kib accepted D48061: x86 atomics: Remove unused WANT_FUNCTIONS.
Sat, Dec 14, 9:37 AM

Fri, Dec 13

kib added a comment to D48069: ip_fw: address lock order reversal.
In D48069#1095714, @kib wrote:

What do you mean by 'lock release ordering'? Can you show exact diagnostic you are trying to fix, please?

lock order reversal:
1st 0xfffffe10d700f978 IPFW static rules (IPFW static rules, rm) @ src/sys/netpfil/ipfw/ip_fw2.c:1908
2nd 0xffffffff81bbb888 rawcb (rawcb, sleep mutex) @ src/sys/netipsec/keysock.c:208
lock order IPFW static rules -> rawcb attempted at:
#0 0xffffffff80acced5 at witness_checkorder+0x1265
#1 0xffffffff809e3327 at __mtx_lock_flags+0x2d7
#2 0xffffffff80d8a66b at key_sendup_mbuf+0x21b
#3 0xffffffff80d69ccb at key_allocsa_policy_debug+0xb2b
#4 0xffffffff80d6a018 at key_allocsa_policy+0x2d8
#5 0xffffffff80d65175 at ipsec4_check_pmtu+0x535
#6 0xffffffff80d648d5 at ipsec4_process_packet+0xb5
#7 0xffffffff80d6485a at ipsec4_process_packet+0x3a
#8 0xffffffff80d65582 at ipsec4_output+0x172
#9 0xffffffff80d6546d at ipsec4_output+0x5d
#10 0xffffffff80c8d16b at ip_output+0x288b
#11 0xffffffff80da074b at ipfw_chk+0xa41b
#12 0xffffffff80d9dfd7 at ipfw_chk+0x7ca7
#13 0xffffffff80db10bf at ipfw_chg_hook+0xb8f
#14 0xffffffff80c3fc9f at pfil_run_hooks+0x16f
#15 0xffffffff80c8533d at ip_input+0xc0d

Fri, Dec 13, 2:48 PM
kib added a comment to D48069: ip_fw: address lock order reversal.

What do you mean by 'lock release ordering'? Can you show exact diagnostic you are trying to fix, please?

Fri, Dec 13, 2:26 PM
kib committed rG2699315134ab: vmcb.h: fix typo in the comment (authored by kib).
vmcb.h: fix typo in the comment
Fri, Dec 13, 7:08 AM
kib committed rGc924f6176994: vmcb.h: fix typo in the comment, try two (authored by kib).
vmcb.h: fix typo in the comment, try two
Fri, Dec 13, 7:08 AM

Thu, Dec 12

kib added inline comments to D44910: sys: Add cpu_update_pcb hook.
Thu, Dec 12, 10:50 AM
kib accepted D46624: arm64: Support mapping a 52-bit physical adddress.
Thu, Dec 12, 10:48 AM
kib added inline comments to D48043: Tweak ppoll() to include 1003.1-2024 visibility.
Thu, Dec 12, 5:13 AM
kib added inline comments to D48043: Tweak ppoll() to include 1003.1-2024 visibility.
Thu, Dec 12, 4:58 AM

Wed, Dec 11

kib accepted D46625: stand/efi: Limit where we load the arm64 kernel.
Wed, Dec 11, 5:21 PM
kib added a comment to D46625: stand/efi: Limit where we load the arm64 kernel.
In D46625#1094801, @imp wrote:

Not currently as no kernels support it. We could add an elf note when we support LPA2 in locore.S to tell loader the kernel supports executing from a higher address.

That would be great.

Wed, Dec 11, 5:06 PM
kib accepted D48023: linux_clone_thread: Remove call to cpu_thread_clean.
Wed, Dec 11, 3:46 PM
kib added a comment to D48023: linux_clone_thread: Remove call to cpu_thread_clean.

amd64 cpu_set_upcall() also calls cpu_thread_clean(), basically for the fresh thread. I suspect this call was copied.

Wed, Dec 11, 3:46 PM
kib added a comment to D48022: cpu_machdep.9: New manpage describing the semantics of several cpu_*.

I feel that the better place for this stuff would be cpu_machdep(9) rather then comments in the header.

Wed, Dec 11, 3:04 PM

Tue, Dec 10

kib committed rGe02029e6f487: vmcb.h: fix typo in the comment, try two (authored by kib).
vmcb.h: fix typo in the comment, try two
Tue, Dec 10, 8:50 AM
kib committed rG36b39281a666: vmcb.h: fix typo in the comment (authored by kib).
vmcb.h: fix typo in the comment
Tue, Dec 10, 8:23 AM
kib accepted D48002: buf_ring: Remove an unneeded barrier.
Tue, Dec 10, 3:56 AM
kib committed rGb50851e8ebfa: prison_proc_iterate(): make it work for prison0 (authored by kib).
prison_proc_iterate(): make it work for prison0
Tue, Dec 10, 2:41 AM
kib committed rGfff3323694f7: amdiommu: correctly initialize iommu.unit (authored by kib).
amdiommu: correctly initialize iommu.unit
Tue, Dec 10, 2:41 AM
kib committed rG8cee8527d09f: vm_map(9): grammar corrections (authored by kib).
vm_map(9): grammar corrections
Tue, Dec 10, 2:39 AM

Mon, Dec 9

kib added a comment to D47940: sys: Remove redundant type casting to sysinit_cfunc_t.

Let me explain my PoV.

Mon, Dec 9, 6:05 AM
kib committed rG9114e15a8694: amd64: re-enable la57, try two (authored by kib).
amd64: re-enable la57, try two
Mon, Dec 9, 4:24 AM
kib accepted D47989: hwpmc_x86: Register interrupt handler using the dynamic NMI registration interface.
Mon, Dec 9, 3:34 AM
kib accepted D47394: x86: Add routines for querying XSAVE feature information.
Mon, Dec 9, 3:34 AM
kib committed rG32873ecb20ae: vm_map(9): some refresh (authored by kib).
vm_map(9): some refresh
Mon, Dec 9, 3:29 AM
kib committed rGfae0cc5fd82d: vm/vm_map.h: drop vm_flags_t (authored by kib).
vm/vm_map.h: drop vm_flags_t
Mon, Dec 9, 3:29 AM
kib committed rGd939fd2d4512: vm_map: convert several bool members into flags (authored by kib).
vm_map: convert several bool members into flags
Mon, Dec 9, 3:29 AM
kib committed rGb4431e95542a: vm/vm_map.h: extend number of digits in vm_map flags definitions (authored by kib).
vm/vm_map.h: extend number of digits in vm_map flags definitions
Mon, Dec 9, 3:29 AM
kib committed rG6ed68e6f5d47: vm_map: overlap system map mutex and user man sx (authored by kib).
vm_map: overlap system map mutex and user man sx
Mon, Dec 9, 3:29 AM
kib committed rGc5b19cef3609: vm_map: wrap map->system_map checks into wrapper (authored by kib).
vm_map: wrap map->system_map checks into wrapper
Mon, Dec 9, 3:29 AM
kib closed D47934: vm_map: overlap system map mutex and user man sx.
Mon, Dec 9, 3:29 AM

Sun, Dec 8

kib added a comment to D47945: sys/sys/kernel.h: Remove intermediate type casting.

For the udata part, I agree.

Sun, Dec 8, 4:35 AM

Sat, Dec 7

kib accepted D47980: lindebugfs: Export symbols.
Sat, Dec 7, 11:26 PM
kib accepted D47951: usb: serial: allow the open/close sleep to be interruptible.
Sat, Dec 7, 11:24 PM
kib accepted D47950: usb: serial: propagate errors from ucom_queue_command().
Sat, Dec 7, 11:23 PM
kib accepted D47952: usb: serial: make more commands execute synchronously.
Sat, Dec 7, 11:22 PM
kib updated the diff for D47934: vm_map: overlap system map mutex and user man sx.

vm_map_is_system()
Remove vm_flags_t
Some updates to vm_map(9)

Sat, Dec 7, 11:15 PM
kib added inline comments to D47951: usb: serial: allow the open/close sleep to be interruptible.
Sat, Dec 7, 2:47 AM
kib added inline comments to D47950: usb: serial: propagate errors from ucom_queue_command().
Sat, Dec 7, 2:39 AM
kib committed rG53adc0b898a4: amdiommu: correctly initialize iommu.unit (authored by kib).
amdiommu: correctly initialize iommu.unit
Sat, Dec 7, 1:57 AM
kib added a comment to D47935: pmap_growkernel(): do not panic immediately, return error.

Of course there are more deadlocks/live locks behind this change. But we wouldn't see them until this fix is done.

Sat, Dec 7, 12:08 AM
kib updated the diff for D47934: vm_map: overlap system map mutex and user man sx.

Add wrapper map_is_system_map().
Convert system_map and needs_wakeup to flags.

Sat, Dec 7, 12:04 AM
kib added inline comments to D47934: vm_map: overlap system map mutex and user man sx.
Sat, Dec 7, 12:01 AM

Fri, Dec 6

kib added a comment to D47940: sys: Remove redundant type casting to sysinit_cfunc_t.

BTW, why does SYSINIT() enforces the cast? Isn't it more correct to not cast in the macro, and allow a compiler to check that the function passed matches the type?

Fri, Dec 6, 10:09 PM
kib committed rG831531a82e0f: prison_proc_iterate(): make it work for prison0 (authored by kib).
prison_proc_iterate(): make it work for prison0
Fri, Dec 6, 9:43 PM
kib closed D47943: prison_proc_iterate(): make it work for prison.
Fri, Dec 6, 9:43 PM
kib updated the diff for D47935: pmap_growkernel(): do not panic immediately, return error.

Add a knob to select panicing behavior.

Fri, Dec 6, 5:27 PM
kib added a comment to D47935: pmap_growkernel(): do not panic immediately, return error.

We can add a knob to control the behavior, panic/not panic.

Fri, Dec 6, 5:05 PM
kib requested review of D47943: prison_proc_iterate(): make it work for prison.
Fri, Dec 6, 5:03 PM
kib committed rGd302c0539307: vm: rename MAP_STACK_GROWS_DOWN to MAP_STACK_AREA (authored by kib).
vm: rename MAP_STACK_GROWS_DOWN to MAP_STACK_AREA
Fri, Dec 6, 8:01 AM
kib committed rG030467548611: vm_map: remove _GN suffix from MAP_ENTRY_STACK_GAP and MAP_CREATE_STACK_GAP… (authored by kib).
vm_map: remove _GN suffix from MAP_ENTRY_STACK_GAP and MAP_CREATE_STACK_GAP…
Fri, Dec 6, 8:01 AM
kib committed rG17e624ca858c: sys/vm: remove support for growing-up stacks (authored by kib).
sys/vm: remove support for growing-up stacks
Fri, Dec 6, 8:01 AM
kib closed D47892: sys/vm: remove support for growing-up stacks.
Fri, Dec 6, 8:00 AM

Thu, Dec 5

kib added a comment to D24459: (WIP) tty: split the tty lock up, make the primary tty lock sleepable.

Actually, it looks like our driver callbacks typically do timeouts when they actually submit to the controller: https://cgit.freebsd.org/src/tree/sys/dev/usb/serial/uftdi.c#n1688 -- so most of these should be reasonably bounded. Perhaps still good to be defensive, since I'm not about to audit every path out of usb_serial.c

Thu, Dec 5, 11:10 PM
kib requested review of D47935: pmap_growkernel(): do not panic immediately, return error.
Thu, Dec 5, 11:04 PM
kib requested review of D47934: vm_map: overlap system map mutex and user man sx.
Thu, Dec 5, 11:02 PM
kib updated the diff for D47892: sys/vm: remove support for growing-up stacks.

Alan' notes. Remove outdated comment. Fix kassert message.

Thu, Dec 5, 10:28 PM
kib added a comment to D24459: (WIP) tty: split the tty lock up, make the primary tty lock sleepable.
In D24459#1092714, @kib wrote:

So userspace might end up waiting uninterruptibly for hw to finish something?

Yes, though we could presumably implement usb_proc_mwait_sig() for an escape hatch. It would be an improvement even before this change, because open/close will both drop the tty lock and wait potentially uninterruptibly for the hardware.

Thu, Dec 5, 5:12 AM
kib updated the diff for D47892: sys/vm: remove support for growing-up stacks.

Update comment about permissions for stack gap entries.

Thu, Dec 5, 4:45 AM
kib added inline comments to D47892: sys/vm: remove support for growing-up stacks.
Thu, Dec 5, 4:42 AM
kib added a comment to D24459: (WIP) tty: split the tty lock up, make the primary tty lock sleepable.

So userspace might end up waiting uninterruptibly for hw to finish something?

Thu, Dec 5, 3:13 AM
kib added inline comments to D47394: x86: Add routines for querying XSAVE feature information.
Thu, Dec 5, 1:59 AM
kib updated the diff for D47892: sys/vm: remove support for growing-up stacks.

Rename MAP_STACK_GROWS_DOWN to MAP_STACK_AREA

Thu, Dec 5, 1:43 AM
kib updated the diff for D47892: sys/vm: remove support for growing-up stacks.

Remove MAP_ENTRY_GROWS_UP

Thu, Dec 5, 1:36 AM

Wed, Dec 4

kib accepted D47884: rtld: Support multiple PT_GNU_RELRO program headers.
Wed, Dec 4, 11:13 PM
kib added inline comments to D47892: sys/vm: remove support for growing-up stacks.
Wed, Dec 4, 10:53 PM
kib added inline comments to D47892: sys/vm: remove support for growing-up stacks.
Wed, Dec 4, 10:51 PM
kib added inline comments to D47892: sys/vm: remove support for growing-up stacks.
Wed, Dec 4, 11:53 AM
kib updated the diff for D47892: sys/vm: remove support for growing-up stacks.

Reword comment.
Drop _DN suffixes, a separate commit.

Wed, Dec 4, 4:17 AM

Tue, Dec 3

kib requested review of D47892: sys/vm: remove support for growing-up stacks.
Tue, Dec 3, 11:33 PM
kib added inline comments to D47884: rtld: Support multiple PT_GNU_RELRO program headers.
Tue, Dec 3, 8:09 PM