Page MenuHomeFreeBSD
Feed Advanced Search

Nov 28 2024

kib requested review of D47834: fileno(3): set errno when returning -1.
Nov 28 2024, 10:40 PM
kib added inline comments to D47394: x86: Add routines for querying XSAVE feature information.
Nov 28 2024, 7:19 PM
kib added inline comments to D47822: fix build with LOCK_PROFILING but without KDTRACE_HOOKS.
Nov 28 2024, 7:08 PM
kib added a reviewer for D47830: Fix various opt_kbd.h related built error in hid module: wulf.
Nov 28 2024, 7:03 PM
kib added inline comments to D47822: fix build with LOCK_PROFILING but without KDTRACE_HOOKS.
Nov 28 2024, 2:15 PM
kib added inline comments to D47822: fix build with LOCK_PROFILING but without KDTRACE_HOOKS.
Nov 28 2024, 1:42 PM
kib committed rG1c65ea28841a: efirt: Fix the TDP_EFIRT assertion (authored by markj).
efirt: Fix the TDP_EFIRT assertion
Nov 28 2024, 1:31 PM
kib committed rG7efa3a6028ce: fhreadlink.2: fix old typo in the manpage (authored by wosch).
fhreadlink.2: fix old typo in the manpage
Nov 28 2024, 1:31 PM
kib committed rGab6a6a092834: kern___realpathat(): style (authored by kib).
kern___realpathat(): style
Nov 28 2024, 1:31 PM
kib committed rG5f5b47e37416: amd64 efi rt: handle #BP (authored by kib).
amd64 efi rt: handle #BP
Nov 28 2024, 1:30 PM
kib committed rG617e683319be: efirt: mark dynamic region executing the RT code with the TDP_EFIRT flag (authored by kib).
efirt: mark dynamic region executing the RT code with the TDP_EFIRT flag
Nov 28 2024, 1:30 PM

Nov 27 2024

kib added inline comments to D47782: procctl.2: Editing pass.
Nov 27 2024, 10:51 PM
kib committed rG45d108ee147c: pf_route6(): one more __sdt_used annotation (authored by kib).
pf_route6(): one more __sdt_used annotation
Nov 27 2024, 2:32 PM
kib committed rG73cc71607d37: rtld: drop RTLD_INIT_PAGESIZES_EARLY (authored by kib).
rtld: drop RTLD_INIT_PAGESIZES_EARLY
Nov 27 2024, 11:33 AM

Nov 26 2024

kib committed rG3f0289ea7f66: dmar: set acpi ivar domain on identify() (authored by kib).
dmar: set acpi ivar domain on identify()
Nov 26 2024, 10:01 PM
kib committed rG7dd1f0dcd134: acpica: add domain ivar (authored by kib).
acpica: add domain ivar
Nov 26 2024, 10:01 PM
kib closed D47291: acpi bus: store children domain in ivar.
Nov 26 2024, 10:01 PM
kib committed rG6f423295f18a: acpica: rename acpi_parse_pxm() to acpi_pxm_parse() and make it non-static (authored by kib).
acpica: rename acpi_parse_pxm() to acpi_pxm_parse() and make it non-static
Nov 26 2024, 10:01 PM
kib committed rG28fdf718b30b: amd64: add machine/pte.h (authored by kib).
amd64: add machine/pte.h
Nov 26 2024, 7:49 PM
kib closed D47749: amd64: add machine/pte.h.
Nov 26 2024, 7:48 PM
kib abandoned D47768: amdiommu_create_dev_tbl(): eliminate magic '3'.
Nov 26 2024, 6:39 PM
kib added a comment to D47768: amdiommu_create_dev_tbl(): eliminate magic '3'.
In D47768#1089266, @jah wrote:

Oops, I didn't see this until after I wrote and tested my own version: https://reviews.freebsd.org/D47769

Nov 26 2024, 6:38 PM
kib accepted D47769: amdiommu: use static device table base register offset array.
Nov 26 2024, 6:38 PM
kib accepted D47767: swap_pager: fix seek_data with invalid first page.
Nov 26 2024, 6:11 PM
kib added inline comments to D47752: amdiommu: Fix device table segment base register offsets.
Nov 26 2024, 6:07 PM
kib requested review of D47768: amdiommu_create_dev_tbl(): eliminate magic '3'.
Nov 26 2024, 6:07 PM
kib added inline comments to D47752: amdiommu: Fix device table segment base register offsets.
Nov 26 2024, 1:32 PM
kib committed rG4cc5d081d8c2: mlx5en: only enable to toggle offload caps if they are supported (authored by kib).
mlx5en: only enable to toggle offload caps if they are supported
Nov 26 2024, 12:35 PM
kib committed rGcca0dc49e0ca: mlx5en: move runtime capabilities checks into helper functions (authored by kib).
mlx5en: move runtime capabilities checks into helper functions
Nov 26 2024, 12:35 PM
kib accepted D47741: kern: restore signal mask before ast() for pselect/ppoll.
Nov 26 2024, 12:22 AM
kib added inline comments to D47741: kern: restore signal mask before ast() for pselect/ppoll.
Nov 26 2024, 12:08 AM

Nov 25 2024

kib accepted D47752: amdiommu: Fix device table segment base register offsets.
Nov 25 2024, 11:40 PM
kib requested review of D47749: amd64: add machine/pte.h.
Nov 25 2024, 11:14 PM
kib accepted D47741: kern: restore signal mask before ast() for pselect/ppoll.
Nov 25 2024, 10:54 PM
kib added a comment to D47741: kern: restore signal mask before ast() for pselect/ppoll.
In D47741#1088837, @kib wrote:
In D47741#1088787, @kib wrote:

Is the problem caused by the fact that AST_SIG is processed before AST_SIGSUSPEND? Would reordering the AST indexes be enough?

As I understand, the complain is that signal ast handler might push the signal frame before sigsuspend handler restores the sigmask which marks the signal as blocked?

AST_SIG has to be processed before AST_SIGSUSPEND in order for the temporary signal mask stuff to work, AFAICT,

Do you mean AST_SIGSUSPEND scheduling from kern_sigsuspend()? If yes, then perhaps we need AST_SIGSUSPEND2, which is scheduled from pselect/ppoll and processed after AST_SIG.

I mean AST_SIGSUSPEND as scheduled from here- if seltdwait()'s sleep was interrupted by a signal, then my understanding is that we need to keep the temporary signal mask installed all the way until AST_SIG is done in order to process signals that are blocked by the old signal mask, but not by the temporary signal mask.

Nov 25 2024, 10:05 PM
kib added a comment to D47741: kern: restore signal mask before ast() for pselect/ppoll.
In D47741#1088787, @kib wrote:

Is the problem caused by the fact that AST_SIG is processed before AST_SIGSUSPEND? Would reordering the AST indexes be enough?

As I understand, the complain is that signal ast handler might push the signal frame before sigsuspend handler restores the sigmask which marks the signal as blocked?

AST_SIG has to be processed before AST_SIGSUSPEND in order for the temporary signal mask stuff to work, AFAICT,

Nov 25 2024, 9:10 PM
kib added a comment to D47741: kern: restore signal mask before ast() for pselect/ppoll.

Is the problem caused by the fact that AST_SIG is processed before AST_SIGSUSPEND? Would reordering the AST indexes be enough?

Nov 25 2024, 8:18 PM
kib committed rGbde575b273ee: kern___realpathat(): honor uio_seg argument (authored by kib).
kern___realpathat(): honor uio_seg argument
Nov 25 2024, 7:37 PM
kib committed rG67218bcea847: kern___realpathat(): do not copyout past end of string (authored by kib).
kern___realpathat(): do not copyout past end of string
Nov 25 2024, 7:37 PM
kib committed rG31784ee1e37d: kern___realpathat(): style (authored by kib).
kern___realpathat(): style
Nov 25 2024, 7:37 PM
kib closed D47739: kern___realpathat(): fix uninitialized memory read.
Nov 25 2024, 7:37 PM
kib added a comment to D47739: kern___realpathat(): fix uninitialized memory read.
In D47739#1088673, @kib wrote:

Just realized that this is a kernel memory exposure.

Yes :(

It looks like the problem can happen "only" when a nullfs file mount is present?

Nov 25 2024, 7:33 PM
kib retitled D47739: kern___realpathat(): fix uninitialized memory read from kern___readlink(): fix uninitialized memory read to kern___realpathat(): fix uninitialized memory read.
Nov 25 2024, 7:01 PM
kib added a comment to D47739: kern___realpathat(): fix uninitialized memory read.

Just realized that this is a kernel memory exposure.

Nov 25 2024, 7:00 PM
kib requested review of D47739: kern___realpathat(): fix uninitialized memory read.
Nov 25 2024, 6:58 PM
kib committed rG6ec4ff70885d: amd64: switch pmap_map_io_transient() to use pmap_kenter_attr() (authored by kib).
amd64: switch pmap_map_io_transient() to use pmap_kenter_attr()
Nov 25 2024, 12:21 PM
kib committed rG2d6923790b16: amd64 pmap: assert and explain why pmap_qremove() is safe WRT supermappings (authored by kib).
amd64 pmap: assert and explain why pmap_qremove() is safe WRT supermappings
Nov 25 2024, 12:21 PM
kib closed D47717: Tweaks for pmap_qremove() and transient mappings.
Nov 25 2024, 12:21 PM
kib accepted D47729: vm: Retire an unused declaration.
Nov 25 2024, 10:25 AM

Nov 24 2024

kib accepted D47718: vm_map: replace list links with iterator.
Nov 24 2024, 8:02 AM

Nov 23 2024

kib requested review of D47717: Tweaks for pmap_qremove() and transient mappings.
Nov 23 2024, 9:07 PM
kib added inline comments to D47678: arm64: Implement pmap_map_io_transient.
Nov 23 2024, 6:54 PM
kib committed rG253a1fa16b98: mlx5: Fix handling of port_module_event (authored by Ariel Ehrenberg <aehrenberg@nvidia.com>).
mlx5: Fix handling of port_module_event
Nov 23 2024, 11:01 AM
kib committed rG0d38b0bc8fbc: mlx5en: fix the sign of mlx5e_tls_st_init() error, convert from Linux to BSD (authored by kib).
mlx5en: fix the sign of mlx5e_tls_st_init() error, convert from Linux to BSD
Nov 23 2024, 10:22 AM
kib committed rG81b38bce0794: mlx5e tls: Ensure all allocated tags have a hw context associated (authored by gallatin).
mlx5e tls: Ensure all allocated tags have a hw context associated
Nov 23 2024, 10:05 AM
kib committed rG7fbc896e28e4: vm_page.c: remove transiently defined vm_page_free_toq_impl() prototype (authored by kib).
vm_page.c: remove transiently defined vm_page_free_toq_impl() prototype
Nov 23 2024, 10:05 AM
kib committed rG64bf5a431cbe: mlx5_en: style function prototype (authored by kib).
mlx5_en: style function prototype
Nov 23 2024, 10:05 AM

Nov 22 2024

kib added inline comments to D47678: arm64: Implement pmap_map_io_transient.
Nov 22 2024, 11:22 PM
kib added inline comments to D47678: arm64: Implement pmap_map_io_transient.
Nov 22 2024, 8:50 AM
kib added inline comments to D47694: amd64 efi rt: handle #BP.
Nov 22 2024, 8:46 AM

Nov 21 2024

kib committed rGe6ec41fa86d8: amd64 efi rt: handle #BP (authored by kib).
amd64 efi rt: handle #BP
Nov 21 2024, 10:06 PM
kib committed rGa03957a706a0: efirt: mark dynamic region executing the RT code with the TDP_EFIRT flag (authored by kib).
efirt: mark dynamic region executing the RT code with the TDP_EFIRT flag
Nov 21 2024, 10:06 PM
kib closed D47694: amd64 efi rt: handle #BP.
Nov 21 2024, 10:06 PM
kib added inline comments to D47694: amd64 efi rt: handle #BP.
Nov 21 2024, 8:09 PM
kib updated the diff for D47694: amd64 efi rt: handle #BP.

Mark rt call region with TDP_EFIRT. It allows to not depend on the implementation detail of disabling page faults in the region.

Nov 21 2024, 7:43 PM
kib accepted D47696: buf: Add a runningbufclaim() helper.
Nov 21 2024, 7:37 PM
kib added a comment to D47694: amd64 efi rt: handle #BP.

Reformulating what @imp said, loader is executing in EFI boot services environment, while EFI RT is EFI runtime services client. The switch of the environment is supposed to pass ownership of the machine to OS, and also the rt code must be relocated. The later is known to be often buggy. This is why I implemented onfault handling for RT calls.

Nov 21 2024, 7:27 PM
kib updated the diff for D47694: amd64 efi rt: handle #BP.

Reorder checks. Explain why I did not wanted to do it initially.

Nov 21 2024, 4:07 PM
kib accepted D47692: device_pager: user iterators to free device pages.
Nov 21 2024, 10:34 AM
kib updated the diff for D47694: amd64 efi rt: handle #BP.

Add some debugging

Nov 21 2024, 10:24 AM
kib requested review of D47694: amd64 efi rt: handle #BP.
Nov 21 2024, 5:01 AM

Nov 20 2024

kib accepted D47681: sh(1): add -l option.
Nov 20 2024, 12:31 PM
kib committed rG5bc24fd7a21f: rtld: drop RTLD_INIT_PAGESIZES_EARLY (authored by kib).
rtld: drop RTLD_INIT_PAGESIZES_EARLY
Nov 20 2024, 8:17 AM
kib added inline comments to D47678: arm64: Implement pmap_map_io_transient.
Nov 20 2024, 7:54 AM
kib accepted D47678: arm64: Implement pmap_map_io_transient.
Nov 20 2024, 6:15 AM

Nov 19 2024

kib accepted D47672: vfs: Fix vop_stdis_text().
Nov 19 2024, 4:01 PM
kib accepted D47672: vfs: Fix vop_stdis_text().

So currently ETXTBSY does not work?

Nov 19 2024, 3:14 PM
kib committed rGab2dfb93e372: ps.1: remove stray tab which breaks columns alignment (authored by kib).
ps.1: remove stray tab which breaks columns alignment
Nov 19 2024, 5:21 AM
kib committed rG8925ea58c206: mlx5en: improve reporting of kernel TLS, IPSEC offload, and ratelimit caps (authored by kib).
mlx5en: improve reporting of kernel TLS, IPSEC offload, and ratelimit caps
Nov 19 2024, 5:20 AM
kib closed D47523: SU+J: all writes to SU journal must be exempt from runningbufspace throttling.
Nov 19 2024, 1:21 AM

Nov 18 2024

kib committed rG645f8bcba9c8: ps.1: remove stray tab which breaks columns alignment (authored by kib).
ps.1: remove stray tab which breaks columns alignment
Nov 18 2024, 12:25 PM
kib accepted D47647: Speed up syncer shutdown.
Nov 18 2024, 12:38 AM

Nov 17 2024

kib accepted D47644: vm: static-ize vm_page_alloc_after().
Nov 17 2024, 5:49 AM

Nov 16 2024

kib accepted D47630: atomic.9: Document atomic_testand*_64 and atomic_testandset_acq_long.
Nov 16 2024, 7:01 PM
kib accepted D47629: atomic(9): Remove fcmpset-based fallback for atomic_testand(clear|set).
Nov 16 2024, 6:59 PM
kib accepted D47628: arm: Implement atomic_testandset_acq_long as a simple wrapper.
Nov 16 2024, 6:58 PM
kib accepted D47627: riscv: Add implementations of atomic_testand(set|clear)_(32|64|long).
Nov 16 2024, 6:57 PM
kib accepted D47632: rangelock: Use atomic_testandset_ptr.
Nov 16 2024, 1:50 AM
kib accepted D47631: atomic(9): Implement atomic_testand(clear|set)_ptr.
Nov 16 2024, 1:49 AM
kib committed rG9b2226eef29a: SU+J: all writes to SU journal must be exempt from runningbufspace throttling (authored by kib).
SU+J: all writes to SU journal must be exempt from runningbufspace throttling
Nov 16 2024, 1:42 AM
kib committed rGff7de7aa49fa: bufwrite(): adjust the comment (authored by kib).
bufwrite(): adjust the comment
Nov 16 2024, 1:41 AM
kib committed rG9d9a14c5b612: bufwrite(): style (authored by kib).
bufwrite(): style
Nov 16 2024, 1:41 AM

Nov 15 2024

kib accepted D47588: fork: document _Fork as POSIX 2024.
In D47588#1085785, @kib wrote:

My feeling is that it is strange to claim that fork is 2024. It costs nothing to say there specifically that it is -p1003.1 (might be even -88, but I do not have the text).

Nov 15 2024, 10:46 PM
kib added a comment to D47588: fork: document _Fork as POSIX 2024.

My feeling is that it is strange to claim that fork is 2024. It costs nothing to say there specifically that it is -p1003.1 (might be even -88, but I do not have the text).

Nov 15 2024, 10:17 PM
kib accepted D47583: aio: remove write-only jobid & kernelinfo.
Nov 15 2024, 5:09 AM
kib added a comment to D47581: libc: indicate existing functions in POSIX 2024.

Also _Fork()

Nov 15 2024, 3:55 AM

Nov 14 2024

kib committed rG209fd89a2810: _dl_iterate_phdr_locked(): fix libc and libdl (authored by kib).
_dl_iterate_phdr_locked(): fix libc and libdl
Nov 14 2024, 4:58 AM
kib closed D47563: _dl_iterate_phdr_locked(): fix libc and libdl.
Nov 14 2024, 4:58 AM
kib requested review of D47563: _dl_iterate_phdr_locked(): fix libc and libdl.
Nov 14 2024, 3:59 AM
kib committed rG092e2ff33be2: ps.1: restore always true if predicate (authored by kib).
ps.1: restore always true if predicate
Nov 14 2024, 2:42 AM