Page MenuHomeFreeBSD

kib (Konstantin Belousov)
User

Projects

User Details

User Since
May 16 2014, 7:35 PM (604 w, 6 d)

Recent Activity

Yesterday

kib updated the diff for D54263: vm_object_coalesce(): do not account holes twice.

Use next_end

Thu, Dec 18, 10:17 PM
kib committed rG5c1d9df10b78: vmem.9: provide a reference to libuvmem(3) (authored by kib).
vmem.9: provide a reference to libuvmem(3)
Thu, Dec 18, 8:15 PM
kib updated subscribers of D54263: vm_object_coalesce(): do not account holes twice.
Thu, Dec 18, 7:41 PM
kib added inline comments to D54279: nfsd.8: Add a short paragraph w.r.t. NFSv3 vs NFSv4 setup.
Thu, Dec 18, 3:27 AM

Wed, Dec 17

kib added a comment to D54229: unionfs: Support renaming symbolic links.
In D54229#1240206, @des wrote:

Can I please get a decision on this?

Wed, Dec 17, 6:35 PM
kib added reviewers for D54270: libc/stdlib: port illumos#15365: strtonumx() would be a useful companion to strtonum(): des, emaste.
Wed, Dec 17, 4:30 PM
kib accepted D54270: libc/stdlib: port illumos#15365: strtonumx() would be a useful companion to strtonum().

This looks fine to me, but I prefer to have more eyes on it before is is engraved into the libc.

Wed, Dec 17, 4:30 PM
kib accepted D54268: vmem: Fix the gcc build.
Wed, Dec 17, 2:37 PM
kib accepted D54225: LinuxKPI: Implement vmap_pfn.
Wed, Dec 17, 1:59 PM
kib added inline comments to D54225: LinuxKPI: Implement vmap_pfn.
Wed, Dec 17, 1:40 PM
kib requested review of D54263: vm_object_coalesce(): do not account holes twice.
Wed, Dec 17, 4:38 AM
kib committed rGf94bfc469df9: vm_object_coalesce(): check that coalescing does not revive stale pages (authored by kib).
vm_object_coalesce(): check that coalescing does not revive stale pages
Wed, Dec 17, 3:54 AM
kib committed rG30ae88e3b217: swap_pager_seek_data(): move the clipping at the object size to consumers (authored by kib).
swap_pager_seek_data(): move the clipping at the object size to consumers
Wed, Dec 17, 3:54 AM
kib closed D54219: vm_object_coalesce(): check that coalescing does not revive stale pages.
Wed, Dec 17, 3:53 AM
kib committed rGbdfd695037a9: swap_pager_seek_data(): improve assertions (authored by kib).
swap_pager_seek_data(): improve assertions
Wed, Dec 17, 3:53 AM
kib added a comment to D54258: tmpfs: Fix comparison in tmpfs_extattr_update_mem().
In D54258#1239826, @kib wrote:

This is only relevant for 32bit arches, am I right? (I do not claim that it is not a bug to fix).

Hmm, now that I look at it again, I think this patch is just bogus, and there is no problem. If size < 0 and size is promoted to an unsigned type, addition with tm_ea_memory_inuse will cause wraparound and the result will be correct. It does not make much sense to perform the comparison at all if size < 0, but I think there is no problem, even on 32-bit arches. I did not test it at all yet.

Wed, Dec 17, 3:50 AM

Tue, Dec 16

kib updated the diff for D54219: vm_object_coalesce(): check that coalescing does not revive stale pages.

Correct the article in comment.

Tue, Dec 16, 6:31 PM
kib added a comment to D54258: tmpfs: Fix comparison in tmpfs_extattr_update_mem().

This is only relevant for 32bit arches, am I right? (I do not claim that it is not a bug to fix).

Tue, Dec 16, 6:27 PM
kib added inline comments to D54225: LinuxKPI: Implement vmap_pfn.
Tue, Dec 16, 3:37 PM
kib updated the diff for D54219: vm_object_coalesce(): check that coalescing does not revive stale pages.

Fix pend (and eliminate).

Tue, Dec 16, 8:22 AM
kib accepted D54009: sys/_types.h: avoid use of __has_feature().
Tue, Dec 16, 6:46 AM
kib added a comment to D54221: Revert "Additional icache paranoia: non-PLT relocations can modify the text segment.".

Ok, if somebody from the powerpc crowd confirm that the isync is redundant there, I am fine with that.
If not, I put a sketch for my proposal at D54246.

Tue, Dec 16, 6:20 AM
kib added a comment to D54246: powerpc64: only sync icache if we relocated in executable segment.

Not even compiled.

Tue, Dec 16, 6:19 AM
kib requested review of D54246: powerpc64: only sync icache if we relocated in executable segment.
Tue, Dec 16, 6:17 AM
kib updated the diff for D54219: vm_object_coalesce(): check that coalescing does not revive stale pages.

Remove pstart.
Remove clipping from swap_pager_seek_data(), so that PG_ZERO check can see all pages in the object.

Tue, Dec 16, 5:38 AM
kib added inline comments to D54219: vm_object_coalesce(): check that coalescing does not revive stale pages.
Tue, Dec 16, 5:35 AM
kib added inline comments to D54229: unionfs: Support renaming symbolic links.
Tue, Dec 16, 5:16 AM
kib committed rGe5fbddef958d: ofed/libibverbs: remove no longer needed local alloca.h (authored by kib).
ofed/libibverbs: remove no longer needed local alloca.h
Tue, Dec 16, 4:59 AM
kib committed rG0cfd862d4769: ofed/libibverbs: remove strdupa() hack from config.h (authored by kib).
ofed/libibverbs: remove strdupa() hack from config.h
Tue, Dec 16, 4:58 AM
kib committed rG242f545e4e31: libc/string: add strdupa(3) and strndupa(3) (authored by kib).
libc/string: add strdupa(3) and strndupa(3)
Tue, Dec 16, 4:58 AM
kib committed rG90c370615158: ofed/libibverbs: remove no longer needed local alloca.h (authored by kib).
ofed/libibverbs: remove no longer needed local alloca.h
Tue, Dec 16, 4:58 AM
kib committed rG477c4645bbcc: libc/string: put source files list one item per line (authored by kib).
libc/string: put source files list one item per line
Tue, Dec 16, 4:58 AM
kib committed rGdd1a76f1d969: ofed/libibverbs: remove strdupa() hack from config.h (authored by kib).
ofed/libibverbs: remove strdupa() hack from config.h
Tue, Dec 16, 4:58 AM
kib committed rGb2e649a0b98d: libc/string: add strdupa(3) and strndupa(3) (authored by kib).
libc/string: add strdupa(3) and strndupa(3)
Tue, Dec 16, 4:58 AM
kib added inline comments to D54225: LinuxKPI: Implement vmap_pfn.
Tue, Dec 16, 4:56 AM
kib closed D54234: proc_dtor(): style improvements.
Tue, Dec 16, 4:44 AM
kib committed rG9b943425fd90: proc_dtor(): style improvements (authored by kib).
proc_dtor(): style improvements
Tue, Dec 16, 4:44 AM
kib added inline comments to D54229: unionfs: Support renaming symbolic links.
Tue, Dec 16, 4:33 AM

Mon, Dec 15

kib requested review of D54234: proc_dtor(): style improvements.
Mon, Dec 15, 2:47 PM
kib updated the diff for D54219: vm_object_coalesce(): check that coalescing does not revive stale pages.

swap_pager_seek_data(): check for the swap object, this is what the function assumes

Mon, Dec 15, 2:41 PM
kib committed rG99f641267d44: vm_fault: only rely on PG_ZERO when the page was newly allocated (authored by kib).
vm_fault: only rely on PG_ZERO when the page was newly allocated
Mon, Dec 15, 10:43 AM
kib committed rG76dc56765afd: vm_page.h: remove no longer defined (P) locking annotation (authored by kib).
vm_page.h: remove no longer defined (P) locking annotation
Mon, Dec 15, 10:43 AM
kib committed rG3c0942f99209: vm_fault: only rely on PG_ZERO when the page was newly allocated (authored by kib).
vm_fault: only rely on PG_ZERO when the page was newly allocated
Mon, Dec 15, 10:39 AM
kib committed rG64b3757b4d85: vm_page.h: remove no longer defined (P) locking annotation (authored by kib).
vm_page.h: remove no longer defined (P) locking annotation
Mon, Dec 15, 10:39 AM
kib added inline comments to D54225: LinuxKPI: Implement vmap_pfn.
Mon, Dec 15, 10:30 AM

Sun, Dec 14

kib added a comment to D54221: Revert "Additional icache paranoia: non-PLT relocations can modify the text segment.".

IMO the commits that added the icache sync were done due to some actual problems seen.

Probably due to a broken pmap (at least at the time) then.

Sun, Dec 14, 3:59 PM
kib added a comment to D54221: Revert "Additional icache paranoia: non-PLT relocations can modify the text segment.".

in principle, non-plt relocations can modify any kind of segments. There are DT_TEXTREL binries, as well as nothing in ELF spec prevents existence of PF_W|PF_X segment with relocs.
IMO the commits that added the icache sync were done due to some actual problems seen.

Sun, Dec 14, 3:44 PM
kib added a comment to D54214: vfs: Let prison_enforce_statfs zero the fsid.
In D54214#1238647, @des wrote:

@kib can you also please take a look at the PR? the originator claims this used to work as recently as 14.2 but I see no evidence that it has ever worked, the code to zero out the fsid has been there since 1997.

Sun, Dec 14, 1:14 PM
kib accepted D54215: proc: Fix proc_init / proc_dtor ordering issues.

Indeed, p_klist initialization should not be moved into constructor, since it is cleared in exit1() (and should not be done in destructor, I believe). Then it would leak in each case where exit1() is not called, i.e. fork failures.
For mac, I have no idea what modules expect, so IMO it is better to keep them as is.

Sun, Dec 14, 11:31 AM
kib added a comment to D53891: Fixes for dreaded assert in jemalloc page allocator AKA mmap(MAP_ANON) providing non-zeroed pages.

So lets split this review, hopefully to revive it.

Sun, Dec 14, 9:41 AM
kib requested review of D54219: vm_object_coalesce(): check that coalescing does not revive stale pages.
Sun, Dec 14, 9:40 AM
kib added a comment to D54215: proc: Fix proc_init / proc_dtor ordering issues.
In D54215#1238587, @kib wrote:

IMO it would be more proper to move the initialization into proc_init().

Sun, Dec 14, 3:44 AM
kib accepted D54214: vfs: Let prison_enforce_statfs zero the fsid.
Sun, Dec 14, 2:13 AM
kib added a comment to D54215: proc: Fix proc_init / proc_dtor ordering issues.

IMO it would be more proper to move the initialization into proc_init().

Sun, Dec 14, 2:12 AM

Sat, Dec 13

kib added a comment to D54198: ichwd: Don't disable watchdog when rebooting.

I think users must have ability to get back to the previous behavior. Might be add a sysctl to tweak it.

Sat, Dec 13, 1:45 AM

Thu, Dec 11

kib added a comment to D50848: eventfd: Rename `struct eventfd` to `struct eventfd_ctx`.

It is really eventfd data, so might be slightly better to call it eventfd_data. I do not object to proposal to rename the FreeBSD own structure,

Thu, Dec 11, 1:08 AM

Tue, Dec 9

kib committed rG36b12ea1fbfb: lib/libc: add FBSD-1.9 to Versions.def (authored by fuz).
lib/libc: add FBSD-1.9 to Versions.def
Tue, Dec 9, 1:24 AM
kib committed rG7be091979260: libuvmem: provide man page mostly as a pointer to vmem(9) (authored by kib).
libuvmem: provide man page mostly as a pointer to vmem(9)
Tue, Dec 9, 12:30 AM
kib committed rG3ae14e8f332f: libuvmem: usermode port of vmem(9) (authored by kib).
libuvmem: usermode port of vmem(9)
Tue, Dec 9, 12:30 AM
kib committed rGc4b0e25fa1f3: kern/subr_vmem.c: remove unused VMEM_TRYLOCK() macro (authored by kib).
kern/subr_vmem.c: remove unused VMEM_TRYLOCK() macro
Tue, Dec 9, 12:29 AM
kib committed rGccb0a245dff8: kern/subr_vmem.c: convert explicit vmem_list_lock use to macros (authored by kib).
kern/subr_vmem.c: convert explicit vmem_list_lock use to macros
Tue, Dec 9, 12:29 AM
kib committed rG70edd3c126a5: ofed/libibverbs: remove no longer needed local alloca.h (authored by kib).
ofed/libibverbs: remove no longer needed local alloca.h
Tue, Dec 9, 12:21 AM
kib committed rG6a75e3951506: ofed/libibverbs: remove strdupa() hack from config.h (authored by kib).
ofed/libibverbs: remove strdupa() hack from config.h
Tue, Dec 9, 12:21 AM
kib committed rG98b7cca0186d: libc/string: put source files list one item per line (authored by kib).
libc/string: put source files list one item per line
Tue, Dec 9, 12:21 AM
kib committed rGa98e5d785001: libc/string: add strdupa(3) and strndupa(3) (authored by kib).
libc/string: add strdupa(3) and strndupa(3)
Tue, Dec 9, 12:21 AM
kib closed D54066: libc: add strdupa(3) and strndupa(3).
Tue, Dec 9, 12:21 AM

Mon, Dec 8

kib committed rGcff67bc43df1: vm_fault: only rely on PG_ZERO when the page was newly allocated (authored by kib).
vm_fault: only rely on PG_ZERO when the page was newly allocated
Mon, Dec 8, 10:34 PM
kib committed rG636ee0269db0: vm_page.h: remove no longer defined (P) locking annotation (authored by kib).
vm_page.h: remove no longer defined (P) locking annotation
Mon, Dec 8, 10:33 PM
kib closed D53963: vm_fault: only rely on PG_ZERO when the page was newly allocated.
Mon, Dec 8, 10:33 PM
kib accepted D54119: noshutdown: Fix startup order.
Mon, Dec 8, 12:32 AM

Fri, Dec 5

kib accepted D54093: libkern: Avoid a one-byte OOB access in strndup().
Fri, Dec 5, 10:29 PM
kib added inline comments to D54093: libkern: Avoid a one-byte OOB access in strndup().
Fri, Dec 5, 9:55 PM
kib updated the summary of D54066: libc: add strdupa(3) and strndupa(3).
Fri, Dec 5, 9:46 PM
kib updated the diff for D54066: libc: add strdupa(3) and strndupa(3).

Switch to macros.

Fri, Dec 5, 9:45 PM
kib added a comment to D54066: libc: add strdupa(3) and strndupa(3).

This cannot work, alloca result is only valid for the duration of the current frame.
The functions can be moved to string.h as __always_inline, but I suspect that this would cause compat issues with weird compilers.

Fri, Dec 5, 9:45 PM
kib added inline comments to D54049: ruxreset: Add an inline function to reset all the stats in rusage_ext.
Fri, Dec 5, 8:54 PM

Thu, Dec 4

kib added inline comments to D54070: uio.9: Document uiomove_fromphys().
Thu, Dec 4, 6:31 PM
kib updated the diff for D54066: libc: add strdupa(3) and strndupa(3).

strndupa is from glibc as well

Thu, Dec 4, 6:19 PM
kib added inline comments to D54070: uio.9: Document uiomove_fromphys().
Thu, Dec 4, 6:17 PM
kib accepted D53946: libcasper: fix warnings when _ALIGN preserves types.
Thu, Dec 4, 3:39 AM
kib added inline comments to D54066: libc: add strdupa(3) and strndupa(3).
Thu, Dec 4, 3:18 AM
kib requested review of D54066: libc: add strdupa(3) and strndupa(3).
Thu, Dec 4, 12:53 AM

Wed, Dec 3

kib accepted D54040: thread0: Clear td_rux stats in proc0_post.
Wed, Dec 3, 8:38 PM
kib accepted D54049: ruxreset: Add an inline function to reset all the stats in rusage_ext.
Wed, Dec 3, 8:37 PM
kib accepted D54050: proc0_post: Clear relevant thread stats directly.
Wed, Dec 3, 8:36 PM

Tue, Dec 2

kib accepted D54040: thread0: Clear td_rux stats in proc0_post.
Tue, Dec 2, 11:51 PM
kib accepted D54039: thread0: Stop calling thread0 "swapper".
Tue, Dec 2, 11:46 PM
kib accepted D54022: riscv/pmap: Handle superpages in pmap_extract_and_hold().

Thanks.

Tue, Dec 2, 11:45 PM
kib added a comment to D54033: rtld-elf: Mark LD_SHOW_AUXV insecure.
In D54033#1234624, @kib wrote:

Indeed, the explicitly stated motivation, at least in the commit message, would be quite useful.

BTW, should LD_BIND_NOW be marked as unsecure, it potentially changes the bindings of the image?

I'm not sure, what happens if we perform lazy binding and the application dlopens a DSO which provides a duplicate symbol? How else can LD_BIND_NOW change the bindings of the image?

Tue, Dec 2, 11:43 PM
kib accepted D54022: riscv/pmap: Handle superpages in pmap_extract_and_hold().
Tue, Dec 2, 10:15 PM
kib accepted D54033: rtld-elf: Mark LD_SHOW_AUXV insecure.

Indeed, the explicitly stated motivation, at least in the commit message, would be quite useful.

Tue, Dec 2, 10:11 PM
kib committed rG7295aeaf5f5c: libuvmem: provide man page mostly as a pointer to vmem(9) (authored by kib).
libuvmem: provide man page mostly as a pointer to vmem(9)
Tue, Dec 2, 3:42 AM
kib committed rG1ecf01065b45: libuvmem: usermode port of vmem(9) (authored by kib).
libuvmem: usermode port of vmem(9)
Tue, Dec 2, 3:42 AM
kib committed rG305e33d4c6ed: kern/subr_vmem.c: remove unused VMEM_TRYLOCK() macro (authored by kib).
kern/subr_vmem.c: remove unused VMEM_TRYLOCK() macro
Tue, Dec 2, 3:42 AM
kib committed rG202292ef1078: kern/subr_vmem.c: convert explicit vmem_list_lock use to macros (authored by kib).
kern/subr_vmem.c: convert explicit vmem_list_lock use to macros
Tue, Dec 2, 3:42 AM
kib closed D27220: libuvmem: usermode port of vmem(9).
Tue, Dec 2, 3:42 AM
kib accepted D54026: powerpc/_stdint.h: fix SIG_ATOMIC_{MIN,MAX,WIDTH}.
Tue, Dec 2, 3:40 AM
kib accepted D53988: unionfs: Implement VOP_GETLOWVNODE and employ it for basicmount-time deadlock detection.
Tue, Dec 2, 1:13 AM

Mon, Dec 1

kib accepted D54022: riscv/pmap: Handle superpages in pmap_extract_and_hold().
Mon, Dec 1, 10:15 PM
kib added inline comments to D53946: libcasper: fix warnings when _ALIGN preserves types.
Mon, Dec 1, 8:10 PM