Page MenuHomeFreeBSD

kib (Konstantin Belousov)
User

Projects

User Details

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

Recent Activity

Yesterday

kib committed rG6b0cf2a2379b: vfs_lookup.c: only call ktrcapfail() if KTRACE is enabled (authored by kib).
vfs_lookup.c: only call ktrcapfail() if KTRACE is enabled
Wed, Apr 24, 7:44 PM
kib closed D44931: vfs_lookup.c: only call ktrcapfail() if KTRACE is enabled.
Wed, Apr 24, 7:44 PM
kib committed rG66df81021e54: sys/namei.h: move NI_CAP_VIOLATION() macro from namei.h to vfs_lookup.c (authored by kib).
sys/namei.h: move NI_CAP_VIOLATION() macro from namei.h to vfs_lookup.c
Wed, Apr 24, 7:44 PM
kib accepted D44930: syscalls.master: correct return type of {read,write}v.
Wed, Apr 24, 7:16 PM
kib requested review of D44931: vfs_lookup.c: only call ktrcapfail() if KTRACE is enabled.
Wed, Apr 24, 7:08 PM
kib accepted D44927: kthread: Set *tdptr earlier in kproc_kthread_add().
Wed, Apr 24, 2:03 PM

Tue, Apr 23

kib committed rGaa66995b4c80: libc printf_render_errno(): do not use strerror() (authored by kib).
libc printf_render_errno(): do not use strerror()
Tue, Apr 23, 7:44 PM
kib committed rGbac9d7e8f293: libc: minor style, wrap long lines (authored by kib).
libc: minor style, wrap long lines
Tue, Apr 23, 7:44 PM
kib committed rGf88766769463: __vprintf(): switch from strerror() to strerror_rl() (authored by kib).
__vprintf(): switch from strerror() to strerror_rl()
Tue, Apr 23, 7:44 PM
kib committed rG92771bc00ad0: libc: make strerror_rl() usable for libc (authored by kib).
libc: make strerror_rl() usable for libc
Tue, Apr 23, 7:44 PM
kib closed D44916: Stop using strerror() in printf*() guts.
Tue, Apr 23, 7:44 PM
kib added a comment to D44910: sys: Add cpu_update_pcb hook.

Could the purpose of the new cpu method expressed as "move CPU state to PCB/thread save location in preparation for ..."? I think a comment like that would be due.

Tue, Apr 23, 6:00 PM
kib requested review of D44916: Stop using strerror() in printf*() guts.
Tue, Apr 23, 5:18 PM
kib committed rGfb2ab7ce52d3: Add test for pthread_sigqueue(3) (authored by kib).
Add test for pthread_sigqueue(3)
Tue, Apr 23, 4:53 PM
kib committed rG91da6becae62: pthread_sigqueue(3): document (authored by kib).
pthread_sigqueue(3): document
Tue, Apr 23, 4:53 PM
kib committed rG220aa0f45040: libthr: add pthread_sigqueue(3) (authored by kib).
libthr: add pthread_sigqueue(3)
Tue, Apr 23, 4:53 PM
kib committed rG97acb35bd704: sys/signal.h: move union sigval into dedicated private header sys/_sigval.h (authored by kib).
sys/signal.h: move union sigval into dedicated private header sys/_sigval.h
Tue, Apr 23, 4:53 PM
kib committed rGdcc180c51b9c: sigqueue(2): Document __SIGQUEUE_TID (authored by kib).
sigqueue(2): Document __SIGQUEUE_TID
Tue, Apr 23, 4:53 PM
kib committed rG53186bc1435e: sigqueue(2): add impl-specific flag __SIGQUEUE_TID (authored by kib).
sigqueue(2): add impl-specific flag __SIGQUEUE_TID
Tue, Apr 23, 4:53 PM
kib committed rG0c11c1792b13: kern_thr.c: normalize includes (authored by kib).
kern_thr.c: normalize includes
Tue, Apr 23, 4:53 PM
kib committed rG2effad53b467: kern_thr.c/kern_sig.c: remove sys/cdefs.h (authored by kib).
kern_thr.c/kern_sig.c: remove sys/cdefs.h
Tue, Apr 23, 4:53 PM
kib committed rG53e0938b0b56: kern_thread.c: remove unneeded include of sys/param.h (authored by kib).
kern_thread.c: remove unneeded include of sys/param.h
Tue, Apr 23, 4:53 PM
kib closed D44867: Add pthread_sigqueue(3).
Tue, Apr 23, 4:52 PM
kib committed rG57d49c4bcb49: rtld: introduce STATIC_TLS_EXTRA (authored by stevek).
rtld: introduce STATIC_TLS_EXTRA
Tue, Apr 23, 12:34 AM
kib committed rGed9f44083dba: rtld(1): minor clarification for LD_STATIC_TLS_EXTRA (authored by kib).
rtld(1): minor clarification for LD_STATIC_TLS_EXTRA
Tue, Apr 23, 12:33 AM
kib committed rG2cd1939e2e58: rtld(1): minor clarification for LD_STATIC_TLS_EXTRA (authored by kib).
rtld(1): minor clarification for LD_STATIC_TLS_EXTRA
Tue, Apr 23, 12:33 AM

Mon, Apr 22

kib added a comment to D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.

Taking into the account bz' grep output, I believe that the best route is to properly implement the struct module. For start it could be simply struct module {int dummy;}; if nothing is needed from its guts. But there should be an instance of the structure for each LKPI module, and THIS_MODULE underlying symbol should be magic indeed, but not in the sense of the current review. Instead, it should be only resolved locally, causing undefined symbol error if attempt is made to reference it from kld without the module symbol (section ?).

Mon, Apr 22, 8:19 PM
kib added a comment to D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.

So what is the expected use of THIS_MODULE in Linux? Determine that current module is not that module, or something else?

Mon, Apr 22, 5:12 PM
kib updated the diff for D44867: Add pthread_sigqueue(3).

More license lines

Mon, Apr 22, 4:19 PM
kib updated the diff for D44867: Add pthread_sigqueue(3).

Licenses and man page fixes.

Mon, Apr 22, 2:46 PM

Sat, Apr 20

kib updated the diff for D44867: Add pthread_sigqueue(3).

Add documentation and test.

Sat, Apr 20, 10:17 PM
kib committed rG0b56acfc498e: rtld: introduce STATIC_TLS_EXTRA (authored by stevek).
rtld: introduce STATIC_TLS_EXTRA
Sat, Apr 20, 1:54 PM
kib committed rG8d7473703520: rtld(1): minor clarification for LD_STATIC_TLS_EXTRA (authored by kib).
rtld(1): minor clarification for LD_STATIC_TLS_EXTRA
Sat, Apr 20, 1:51 PM

Fri, Apr 19

kib accepted D44881: Make __libsys_interposing_slot libsys only.
Fri, Apr 19, 10:52 PM
kib accepted D44883: lib{c,sys}: .note.GNU-stack in syscall stubs.

Does it matter/used on arm64 and risc-v? I remember that psABIs require nx stack always for them. It might be that some (old ?) linker complained about the note on these arches.

Fri, Apr 19, 10:47 PM
kib accepted D44880: libthr: always use __libc_interposing_slot().
Fri, Apr 19, 10:44 PM
kib added inline comments to D44869: rtld: Add support for arm64 variant pcs.
Fri, Apr 19, 9:19 PM
kib accepted D44868: elf_common.h: Add STO_AARCH64_VARIANT_PCS.
Fri, Apr 19, 5:43 PM
kib added a comment to D44868: elf_common.h: Add STO_AARCH64_VARIANT_PCS.

Is it flag or enumeration?

Fri, Apr 19, 5:40 PM
kib updated the diff for D44867: Add pthread_sigqueue(3).

Handle Mark' notes:

  • move include of sys/_sigval.h at the top of pthread.h
  • add comments to the signo flags definitions
  • use _types.h names for types

-sort rwlock.h in kern_thr.c

Fri, Apr 19, 5:10 PM
kib added a comment to D44867: Add pthread_sigqueue(3).

What's the problem with one more syscall ?

Fri, Apr 19, 5:09 PM
kib added inline comments to D44867: Add pthread_sigqueue(3).
Fri, Apr 19, 5:06 PM
kib edited reviewers for D44867: Add pthread_sigqueue(3), added: brooks, emaste, markj; removed: olce.
Fri, Apr 19, 3:38 PM
kib added a comment to D44867: Add pthread_sigqueue(3).

This review adds pthread_sigqueue(3) as requested. Right now it is not tested and unfinished: it lacks man pages update and test case, which I add after the issue below is discussed.

Fri, Apr 19, 3:38 PM
kib requested review of D44867: Add pthread_sigqueue(3).
Fri, Apr 19, 3:32 PM

Wed, Apr 17

kib added a reverting change for rGf7fd7f8b88a1: acpidump: add printfield() helper: rG7cf0b203f57d: Revert "acpidump: dump AMD IVRS table describing IOMMU layout".
Wed, Apr 17, 9:42 AM
kib added a reverting change for rGf95a254aa722: acpidump: dump AMD IVRS table describing IOMMU layout: rG7cf0b203f57d: Revert "acpidump: dump AMD IVRS table describing IOMMU layout".
Wed, Apr 17, 9:42 AM
kib added a reverting change for rG256ee428f5a3: acpidump: add Foundation copyright: rG7cf0b203f57d: Revert "acpidump: dump AMD IVRS table describing IOMMU layout".
Wed, Apr 17, 9:42 AM
kib committed rG7cf0b203f57d: Revert "acpidump: dump AMD IVRS table describing IOMMU layout" (authored by kib).
Revert "acpidump: dump AMD IVRS table describing IOMMU layout"
Wed, Apr 17, 9:42 AM
kib committed rG02dc74cc21af: pciconf(8): dump AMD IOMMU Base Capability (authored by kib).
pciconf(8): dump AMD IOMMU Base Capability
Wed, Apr 17, 8:14 AM
kib committed rG6b771774c5c6: pcireg.h: Add AMD IOMMU Base Cap definitions (authored by kib).
pcireg.h: Add AMD IOMMU Base Cap definitions
Wed, Apr 17, 8:14 AM
kib committed rG6f8e8d0723cc: pcireg.h: add include guard (authored by kib).
pcireg.h: add include guard
Wed, Apr 17, 8:14 AM
kib committed rG256ee428f5a3: acpidump: add Foundation copyright (authored by kib).
acpidump: add Foundation copyright
Wed, Apr 17, 8:14 AM
kib committed rGf95a254aa722: acpidump: dump AMD IVRS table describing IOMMU layout (authored by kib).
acpidump: dump AMD IVRS table describing IOMMU layout
Wed, Apr 17, 8:14 AM
kib committed rGf7fd7f8b88a1: acpidump: add printfield() helper (authored by kib).
acpidump: add printfield() helper
Wed, Apr 17, 8:14 AM
kib committed rG84944bf5e282: acpidump: bump WARNS to 6 (authored by kib).
acpidump: bump WARNS to 6
Wed, Apr 17, 8:14 AM
kib committed rG930c76a733d0: acpidump: the acpi_get_fadt_revision() argument is unused (authored by kib).
acpidump: the acpi_get_fadt_revision() argument is unused
Wed, Apr 17, 8:14 AM
kib committed rGf77abc3526d6: acpidump: silent the warning about unaligned uuid (authored by kib).
acpidump: silent the warning about unaligned uuid
Wed, Apr 17, 8:14 AM
kib committed rGa6caa7bc5423: stop_all_proc(): skip traced or signal-stoped processes (authored by kib).
stop_all_proc(): skip traced or signal-stoped processes
Wed, Apr 17, 8:14 AM

Tue, Apr 16

kib added a comment to D43306: arm64: Initial SVE support.

Rework to not guarentee the SVE registers are saved over a syscall other than sigreturn.
The ABI doesn't require SVE registers to be saved on a function call so extend this to a system call.
As dropping the SVE state on all system calls could get expensive only do it on context switch when in one.

Tue, Apr 16, 4:20 PM
kib added a comment to D44807: arm64: Clear td_frame when returning to userspace.

Do you mean that td_frame is not constant on arm64?

Tue, Apr 16, 4:15 PM

Sun, Apr 14

kib accepted D44788: unionfs_rename: fix numerous locking issues.

Could you try to (greatly) simplify unionfs rename by using ERELOOKUP? For instance, it can be split into two essentially independent cases: 1. need to copy fdvp from lower to upper (and return ERELOOKUP) 2. Just directly call VOP_RENAME() on upper if copy is not needed.

Sun, Apr 14, 2:28 PM

Sat, Apr 13

kib accepted D44773: nullfs: Show correct exported flag..
Sat, Apr 13, 8:04 AM

Fri, Apr 12

kib accepted D44465: Reduce reliance on sys/sysproto.h pollution.
Fri, Apr 12, 11:36 PM
kib accepted D44766: sys/malloc.h: move sys/proc.h MALLOC_DECLAREs here.
Fri, Apr 12, 11:35 PM
kib accepted D44474: acl_to_text: include sys/param.h for MAXLOGNAME.
Fri, Apr 12, 11:35 PM
kib accepted D44752: defaults/rc.conf: Remove /usr/lib32 from ldconfig32_paths.
Fri, Apr 12, 1:24 AM
kib accepted D44751: rc.d/ldconfig: Compute ldconfig paths in a function.
Fri, Apr 12, 1:23 AM
kib committed rGfb8eb2042dbe: pciconf(8): dump AMD IOMMU Base Capability (authored by kib).
pciconf(8): dump AMD IOMMU Base Capability
Fri, Apr 12, 1:19 AM
kib committed rGfd02cfeb9ade: pcireg.h: Add AMD IOMMU Base Cap definitions (authored by kib).
pcireg.h: Add AMD IOMMU Base Cap definitions
Fri, Apr 12, 1:19 AM
kib committed rG83fe75d6c16e: pcireg.h: add include guard (authored by kib).
pcireg.h: add include guard
Fri, Apr 12, 1:19 AM
kib committed rG80bf64732ce5: acpidump: add Foundation copyright (authored by kib).
acpidump: add Foundation copyright
Fri, Apr 12, 1:19 AM
kib committed rGec9952bd472e: acpidump: dump AMD IVRS table describing IOMMU layout (authored by kib).
acpidump: dump AMD IVRS table describing IOMMU layout
Fri, Apr 12, 1:19 AM
kib committed rG9ab216e2646a: acpidump: add printfield() helper (authored by kib).
acpidump: add printfield() helper
Fri, Apr 12, 1:19 AM
kib committed rG0a7de174b779: acpidump: bump WARNS to 6 (authored by kib).
acpidump: bump WARNS to 6
Fri, Apr 12, 1:19 AM
kib committed rG0b5c1913b0fe: acpidump: the acpi_get_fadt_revision() argument is unused (authored by kib).
acpidump: the acpi_get_fadt_revision() argument is unused
Fri, Apr 12, 1:19 AM
kib committed rG2bb6e35f3b9f: acpidump: silent the warning about unaligned uuid (authored by kib).
acpidump: silent the warning about unaligned uuid
Fri, Apr 12, 1:19 AM
kib committed rGa648f68c9254: stop_all_proc(): skip traced or signal-stoped processes (authored by kib).
stop_all_proc(): skip traced or signal-stoped processes
Fri, Apr 12, 1:19 AM

Thu, Apr 11

kib accepted D44734: Create little-endian hints files on all architectures.
Thu, Apr 11, 11:43 AM
kib added inline comments to D44734: Create little-endian hints files on all architectures.
Thu, Apr 11, 9:42 AM

Wed, Apr 10

kib committed rG1e6db7be6921: pciconf(8): dump AMD IOMMU Base Capability (authored by kib).
pciconf(8): dump AMD IOMMU Base Capability
Wed, Apr 10, 5:29 AM
kib committed rG33adb388c78e: pcireg.h: Add AMD IOMMU Base Cap definitions (authored by kib).
pcireg.h: Add AMD IOMMU Base Cap definitions
Wed, Apr 10, 5:29 AM
kib committed rG1cd9868f04c3: pcireg.h: add include guard (authored by kib).
pcireg.h: add include guard
Wed, Apr 10, 5:29 AM
kib closed D44732: pciconf(8): dump AMD IOMMU Base Capability.
Wed, Apr 10, 5:29 AM
kib updated the diff for D44732: pciconf(8): dump AMD IOMMU Base Capability.

Reference the IOMMU spec for pcireg.h

Wed, Apr 10, 12:27 AM
kib added inline comments to D44732: pciconf(8): dump AMD IOMMU Base Capability.
Wed, Apr 10, 12:26 AM

Tue, Apr 9

kib requested review of D44732: pciconf(8): dump AMD IOMMU Base Capability.
Tue, Apr 9, 11:15 PM
kib added a comment to D44623: vm: add macro to mark arguments used when NUMA is defined.

Go ahead with the current patch.

Tue, Apr 9, 6:14 AM

Mon, Apr 8

kib accepted D38852: vm: improve kstack_object pindex calculation scheme to avoid pindex holes.
In D38852#1018757, @alc wrote:

Just so we're all on the same page, I want to point out the following: While this patch achieves contiguity, it doesn't guarantee 2 MB alignment. Let 'F' represent a fully populated 2 MB reservation, 'E', represent a partially populated reservation, where the population begins in the middle and goes to the end, and 'B' is the complement of 'E', where the population begins at the start and ends in the middle. Typically, the physical memory allocation for one chunk of stacks on amd64 looks like 'EFFFB'. While it would be nice to achieve 'FFFF', this patch is already a great improvement over the current state of affairs.

Mon, Apr 8, 9:58 PM
kib added a comment to D44581: Introduce a new kernel-only errno EUNSDEP for unsatisfied dependency.
In D44581#1017675, @kib wrote:

I do not like it. Errno has the defined scope of providing the communication between kernel and userspace. Some of the 'out of band' values like ERESTART and EJUSTRETURN and valid extensions because they modify the kernel->user edge behavior, all other in the list are hacks.

If "Errno" above means the standard macro errno, of course, but then ERESTART and EJUSTRETURN are also just hacks: They never reach userland (i.e., are never placed in errno).

They are hacks, but not in the same sense as the proposed value. ERESTART and EJUSTRETURN directly affect the content of the user context restored by the syscall return to userspace, same as any other userspace errno values, unlike the EUNSDEP (and unlike ENOIOCTL/EDIRIOCTL/ERELOOKUP).

Mon, Apr 8, 9:54 PM

Sun, Apr 7

kib added inline comments to D38852: vm: improve kstack_object pindex calculation scheme to avoid pindex holes.
Sun, Apr 7, 8:12 PM

Sat, Apr 6

kib added inline comments to D38852: vm: improve kstack_object pindex calculation scheme to avoid pindex holes.
Sat, Apr 6, 11:19 PM

Fri, Apr 5

kib accepted D44646: swap_pager: Unbusy readahead pages after an I/O error.
Fri, Apr 5, 9:27 PM
kib added a comment to D44581: Introduce a new kernel-only errno EUNSDEP for unsatisfied dependency.

Adding anything to errno is the wrong direction. If you want to get arbitrary error back from kldload(2), then perhaps kldload2(2) is due, with a signature allowing to pass back a text describing the error.
This would be similar to the interface of rtld itself, where dl*() functions do not try to extend errno but provide dlerror() with the description of the problem.

Fri, Apr 5, 9:27 PM
kib added inline comments to D44646: swap_pager: Unbusy readahead pages after an I/O error.
Fri, Apr 5, 8:56 PM
kib added inline comments to D44646: swap_pager: Unbusy readahead pages after an I/O error.
Fri, Apr 5, 8:00 PM
kib committed rGf1519a8229d7: acpidump: add Foundation copyright (authored by kib).
acpidump: add Foundation copyright
Fri, Apr 5, 3:19 PM
kib committed rG6d789b6126af: acpidump: dump AMD IVRS table describing IOMMU layout (authored by kib).
acpidump: dump AMD IVRS table describing IOMMU layout
Fri, Apr 5, 3:19 PM
kib committed rG969a4b8be5a7: acpidump: add printfield() helper (authored by kib).
acpidump: add printfield() helper
Fri, Apr 5, 3:18 PM
kib committed rG29a6b72775ee: acpidump: bump WARNS to 6 (authored by kib).
acpidump: bump WARNS to 6
Fri, Apr 5, 3:18 PM