Page MenuHomeFreeBSD

khng (Ka Ho Ng)
User

Projects

User Details

User Since
Jun 12 2018, 3:15 AM (397 w, 4 d)

Recent Activity

Tue, Jan 6

khng added a comment to D54526: libutil: fix memory leak in login_cap.
In D54526#1246414, @des wrote:

Your use of “Obtained from” is incorrect, unless “Hewlett Packard Enterprise” is the name of a piece of open-source software I've never heard of that has a copy of our libutil and already had this patch. You probably want to use “Sponsored by” instead.

Tue, Jan 6, 7:46 PM
khng updated the summary of D54526: libutil: fix memory leak in login_cap.
Tue, Jan 6, 7:45 PM

Mon, Jan 5

khng requested review of D54526: libutil: fix memory leak in login_cap.
Mon, Jan 5, 2:48 PM

Mon, Dec 29

khng committed rG9cfd75a6f88f: bio: Fix KASAN invalid access report in biodone (authored by khng).
bio: Fix KASAN invalid access report in biodone
Mon, Dec 29, 6:50 PM

Dec 22 2025

khng committed rG725f4b108d54: geom(9): unset the BIO_ERROR_COMPAT flag correctly (authored by khng).
geom(9): unset the BIO_ERROR_COMPAT flag correctly
Dec 22 2025, 2:08 AM
khng committed rG112c453ba910: geom(9): struct bio KBI fix (authored by khng).
geom(9): struct bio KBI fix
Dec 22 2025, 12:39 AM
khng closed D54327: geom(9): struct bio KBI fix.
Dec 22 2025, 12:39 AM

Dec 21 2025

khng added a comment to D54327: geom(9): struct bio KBI fix.
In D54327#1241761, @kib wrote:

I suppose this is for stable/15, right?

Dec 21 2025, 10:33 PM
khng added inline comments to D54327: geom(9): struct bio KBI fix.
Dec 21 2025, 10:31 PM
khng updated the diff for D54327: geom(9): struct bio KBI fix.

Fix multi-line comments and wordings.

Dec 21 2025, 10:09 PM
khng added inline comments to D54327: geom(9): struct bio KBI fix.
Dec 21 2025, 9:32 PM
khng updated the diff for D54327: geom(9): struct bio KBI fix.

Within biodone(9):

  • Translate bio_error_compat to bio_error, then clear the bio_error_compat and BIO_ERROR_COMPAT flag.
  • Beforef calling bp->bio_done(), set the bio_error_compat field and BIO_ERROR_COMPAT flag if BIO_ERROR is set. Clear bio_error_compat and the BIO_ERROR_COMPAT flag after returning from bp->bio_done().
Dec 21 2025, 9:25 PM
khng added a reviewer for D54327: geom(9): struct bio KBI fix: kib.
Dec 21 2025, 6:03 AM
khng updated the summary of D54327: geom(9): struct bio KBI fix.
Dec 21 2025, 1:18 AM

Dec 20 2025

khng added a comment to D54327: geom(9): struct bio KBI fix.
In D54327#1241511, @imp wrote:

So a few words about why this is useful. Our KBI commitments on 15.x is fuzzy at best. What does this enable?

Dec 20 2025, 8:37 PM
khng updated the diff for D54327: geom(9): struct bio KBI fix.

.

Dec 20 2025, 8:19 PM
khng updated the diff for D54327: geom(9): struct bio KBI fix.

g_io_request will empty bio_error_compat as well.

Dec 20 2025, 8:16 PM
khng planned changes to D54327: geom(9): struct bio KBI fix.
Dec 20 2025, 8:03 PM
khng updated the summary of D54327: geom(9): struct bio KBI fix.
Dec 20 2025, 7:58 PM
khng requested review of D54327: geom(9): struct bio KBI fix.
Dec 20 2025, 7:56 PM

Nov 27 2025

khng committed rG52c0749723bd: libsecureboot: do further checks on files without manifests (authored by khng).
libsecureboot: do further checks on files without manifests
Nov 27 2025, 2:19 AM
khng closed D53940: libsecureboot: do further checks on files without manifests.
Nov 27 2025, 2:19 AM

Nov 26 2025

khng added a reviewer for D53940: libsecureboot: do further checks on files without manifests: sjg.
Nov 26 2025, 7:59 PM
khng requested review of D53940: libsecureboot: do further checks on files without manifests.
Nov 26 2025, 7:58 PM

Oct 23 2025

khng accepted D53309: padlock(4)/nehemiah: move i386-only entropy source to MD files.
Oct 23 2025, 11:12 PM

Sep 14 2025

khng committed rGc065db9f83ff: contrib/libxo: fix API header files inclusions in C++ source files (authored by aokblast).
contrib/libxo: fix API header files inclusions in C++ source files
Sep 14 2025, 12:34 AM
khng committed rG6faaef201ca3: contrib/libxo: fix API header files inclusions in C++ source files (authored by aokblast).
contrib/libxo: fix API header files inclusions in C++ source files
Sep 14 2025, 12:32 AM

Sep 7 2025

khng committed rG11ace56fa030: contrib/libxo: fix API header files inclusions in C++ source files (authored by aokblast).
contrib/libxo: fix API header files inclusions in C++ source files
Sep 7 2025, 6:43 PM
khng closed D47930: contrib/libxo: fix API header files inclusions in C++ source files.
Sep 7 2025, 6:42 PM

Sep 5 2025

khng updated the diff for D52389: libkern: implement string functions as wrappers on ASAN/CSAN kernels.

Only implement this for string stuff. mem* stuff will end up calling into itself again because of the use of __builtin_mem*.

Sep 5 2025, 5:31 PM
khng retitled D52389: libkern: implement string functions as wrappers on ASAN/CSAN kernels from libkern: implement string functions as wrappers on ASAN/CSAN kernels to libkern: implement string functions as wrappers on ASAN/CSAN kernels.
Sep 5 2025, 5:30 PM
khng retitled D52389: libkern: implement string functions as wrappers on ASAN/CSAN kernels from libkern: implement str*/mem* as wrappers for SAN-enabled kernel to libkern: implement string functions as wrappers on ASAN/CSAN kernels.
Sep 5 2025, 5:27 PM
khng added a comment to D52389: libkern: implement string functions as wrappers on ASAN/CSAN kernels.

Have to rethink the whole patch again.

Sep 5 2025, 5:12 PM
khng planned changes to D52389: libkern: implement string functions as wrappers on ASAN/CSAN kernels.
Sep 5 2025, 5:11 PM
khng updated the diff for D52389: libkern: implement string functions as wrappers on ASAN/CSAN kernels.

Updated.

Sep 5 2025, 2:20 PM
khng updated the summary of D52389: libkern: implement string functions as wrappers on ASAN/CSAN kernels.
Sep 5 2025, 2:19 PM
khng retitled D52389: libkern: implement string functions as wrappers on ASAN/CSAN kernels from libkern: implement strlen as a wrapper for SAN-enabled kernel to libkern: implement str*/mem* as wrappers for SAN-enabled kernel.
Sep 5 2025, 2:18 PM
khng planned changes to D52389: libkern: implement string functions as wrappers on ASAN/CSAN kernels.
Sep 5 2025, 12:13 AM

Sep 4 2025

khng updated the diff for D52389: libkern: implement string functions as wrappers on ASAN/CSAN kernels.

style(9).

Sep 4 2025, 9:34 PM
khng updated the summary of D52389: libkern: implement string functions as wrappers on ASAN/CSAN kernels.
Sep 4 2025, 9:21 PM
khng requested review of D52389: libkern: implement string functions as wrappers on ASAN/CSAN kernels.
Sep 4 2025, 8:55 PM

Sep 3 2025

khng committed rGe2a3408b612f: irdma: normalize .CURDIR-relative paths to SRCTOP (authored by khng).
irdma: normalize .CURDIR-relative paths to SRCTOP
Sep 3 2025, 6:58 PM
khng committed rG4f41ff7ced8a: IfAPI: fix LINT-NOIP build (authored by khng).
IfAPI: fix LINT-NOIP build
Sep 3 2025, 6:58 PM
khng closed D52362: IfAPI: fix LINT-NOIP build.
Sep 3 2025, 6:58 PM
khng requested review of D52362: IfAPI: fix LINT-NOIP build.
Sep 3 2025, 6:26 PM
khng committed rG7b3094df479f: IfAPI: restore KBI after bceb9c2f2b19 (authored by khng).
IfAPI: restore KBI after bceb9c2f2b19
Sep 3 2025, 6:06 PM

Sep 1 2025

khng updated the diff for D47930: contrib/libxo: fix API header files inclusions in C++ source files.

Updated.

Sep 1 2025, 2:47 AM
khng retitled D47930: contrib/libxo: fix API header files inclusions in C++ source files from contrib/libxo/libxo/*.h fix libxo header include when the source is C++ to contrib/libxo: fix API header files inclusions in C++ source files.
Sep 1 2025, 2:47 AM

Aug 27 2025

khng committed rGa93e46f15693: irdma: normalize .CURDIR-relative paths to SRCTOP (authored by khng).
irdma: normalize .CURDIR-relative paths to SRCTOP
Aug 27 2025, 9:15 PM
khng closed D52192: irdma: normalize .CURDIR-relative paths to SRCTOP.
Aug 27 2025, 9:14 PM
khng requested review of D52192: irdma: normalize .CURDIR-relative paths to SRCTOP.
Aug 27 2025, 6:57 PM

Aug 23 2025

khng commandeered D47930: contrib/libxo: fix API header files inclusions in C++ source files.
Aug 23 2025, 9:02 AM

Aug 10 2025

khng committed rG35ce5a0f6d3f: amd64/pmap: include opt_kstack_pages.h (authored by khng).
amd64/pmap: include opt_kstack_pages.h
Aug 10 2025, 1:38 AM

Aug 3 2025

khng committed rGecf65a4ae5cb: amd64/pmap: include opt_kstack_pages.h (authored by khng).
amd64/pmap: include opt_kstack_pages.h
Aug 3 2025, 3:41 AM
khng closed D51709: amd64/pmap: include opt_kstack_pages.h.
Aug 3 2025, 3:41 AM

Aug 2 2025

khng retitled D51709: amd64/pmap: include opt_kstack_pages.h from amd64: include opt_kstack_pages.h to amd64/pmap: include opt_kstack_pages.h.
Aug 2 2025, 6:06 PM
khng requested review of D51709: amd64/pmap: include opt_kstack_pages.h.
Aug 2 2025, 6:06 PM
khng committed rGee09ce3f1f2e: Revert "amd64: include opt_kstack_pages.h" (authored by khng).
Revert "amd64: include opt_kstack_pages.h"
Aug 2 2025, 5:59 PM
khng added a reverting change for rGd5ec97156d33: amd64: include opt_kstack_pages.h: rGee09ce3f1f2e: Revert "amd64: include opt_kstack_pages.h".
Aug 2 2025, 5:59 PM
khng added a reverting change for D51676: amd64/pmap: include opt_kstack_pages.h: rGee09ce3f1f2e: Revert "amd64: include opt_kstack_pages.h".
Aug 2 2025, 5:58 PM

Aug 1 2025

khng committed rGd5ec97156d33: amd64: include opt_kstack_pages.h (authored by khng).
amd64: include opt_kstack_pages.h
Aug 1 2025, 4:41 PM
khng closed D51676: amd64/pmap: include opt_kstack_pages.h.
Aug 1 2025, 4:41 PM
khng updated the diff for D51676: amd64/pmap: include opt_kstack_pages.h.

markj's suggestion.

Aug 1 2025, 4:37 PM
khng added a comment to D51676: amd64/pmap: include opt_kstack_pages.h.

But that use of KSTACK_PAGES matches the definition of BOOTSTACK_SIZE in amd64/locore.S, which also doesn't include opt_kstack_pages.h. So both files should include it.

Aug 1 2025, 4:13 PM
khng updated the summary of D51676: amd64/pmap: include opt_kstack_pages.h.
Aug 1 2025, 4:04 PM
khng requested review of D51676: amd64/pmap: include opt_kstack_pages.h.
Aug 1 2025, 4:00 PM

Jun 25 2025

khng abandoned D46538: libkvm: look up linker_files for symbols in vmcore.
Jun 25 2025, 7:22 PM
khng abandoned D46537: linker: expose symbol and string table sections of elf_file.

Or, I might just do it the way like how other debugger does - not using elf_file but doing adjustments with only ELF parsing libraries rather.

As discussed elsewhere, I'd prefer to have libkvm walk the linker_files list and locate the corresponding binaries, like kgdb does. This way we avoid growing the kernel ABI.

Jun 25 2025, 7:21 PM

Jun 12 2025

khng accepted D49587: hwpstate: add CPPC support for pstate driver on AMD.
Jun 12 2025, 10:42 PM

Jun 11 2025

khng added a reviewer for D49587: hwpstate: add CPPC support for pstate driver on AMD: khng.
Jun 11 2025, 5:30 PM

Jun 9 2025

khng committed rG42905aa17b7e: nfsd, rpcbind: add -P option to support pidfile path (authored by khng).
nfsd, rpcbind: add -P option to support pidfile path
Jun 9 2025, 3:41 PM
khng closed D50624: nfsd, rpcbind: add -P option to support pidfile path.
Jun 9 2025, 3:41 PM
khng updated the diff for D50624: nfsd, rpcbind: add -P option to support pidfile path.

Addressed.

Jun 9 2025, 3:23 AM

Jun 8 2025

khng added a comment to D50624: nfsd, rpcbind: add -P option to support pidfile path.

By the way, given that rpcbind and nfsd will install a default pidfile to /var/run even without specifying -P: shall we document that somewhere in RELNOTES and the commit message, or do we make the errno == EEXIST case a warn() call instead of errx()? I am thinking of that because some people might spin up multiple nfsd in their setup without using the rc.d/nfsd script, and with different bound IP for each nfsd spun.

Jun 8 2025, 12:50 AM
khng added a comment to D50624: nfsd, rpcbind: add -P option to support pidfile path.

I'll leave the minor nits up to you.
Are you a committer or do you need me
to do it?

Jun 8 2025, 12:45 AM

Jun 2 2025

khng updated the diff for D50624: nfsd, rpcbind: add -P option to support pidfile path.

Add comments.

Jun 2 2025, 6:39 PM

May 31 2025

khng requested review of D50624: nfsd, rpcbind: add -P option to support pidfile path.
May 31 2025, 7:31 AM

May 18 2025

khng committed rG10d94b403add: sched: mark several kern.sched.* sysctls as CTLFLAG_RWTUN (authored by khng).
sched: mark several kern.sched.* sysctls as CTLFLAG_RWTUN
May 18 2025, 3:14 AM

May 11 2025

khng committed rG62f55b34ec42: sched: mark several kern.sched.* sysctls as CTLFLAG_RWTUN (authored by khng).
sched: mark several kern.sched.* sysctls as CTLFLAG_RWTUN
May 11 2025, 7:00 PM
khng closed D50279: sched: mark several kern.sched.* sysctls as CTLFLAG_RWTUN.
May 11 2025, 7:00 PM
khng added inline comments to D50279: sched: mark several kern.sched.* sysctls as CTLFLAG_RWTUN.
May 11 2025, 4:50 PM

May 10 2025

khng updated the diff for D50279: sched: mark several kern.sched.* sysctls as CTLFLAG_RWTUN.

Add more sysctls.

May 10 2025, 9:46 AM
khng retitled D50279: sched: mark several kern.sched.* sysctls as CTLFLAG_RWTUN from sched: mark preempt_thresh and sched_interact as RWTUN to sched: mark several kern.sched.* sysctls as CTLFLAG_RWTUN.
May 10 2025, 9:46 AM
khng planned changes to D50279: sched: mark several kern.sched.* sysctls as CTLFLAG_RWTUN.
May 10 2025, 9:44 AM
khng updated the diff for D50279: sched: mark several kern.sched.* sysctls as CTLFLAG_RWTUN.

Changed commit message.

May 10 2025, 9:22 AM
khng retitled D50279: sched: mark several kern.sched.* sysctls as CTLFLAG_RWTUN from sched: mark preempt_thresh and interact_score as RWTUN to sched: mark preempt_thresh and sched_interact as RWTUN.
May 10 2025, 9:21 AM
khng requested review of D50279: sched: mark several kern.sched.* sysctls as CTLFLAG_RWTUN.
May 10 2025, 9:00 AM

Apr 11 2025

khng committed rG7c72c0822b94: tmpfs: turn vfs.tmpfs.memory_percent into CTLFLAG_RWTUN (authored by khng).
tmpfs: turn vfs.tmpfs.memory_percent into CTLFLAG_RWTUN
Apr 11 2025, 5:03 PM
khng closed D49763: tmpfs: turn vfs.tmpfs.memory_percent into CTLFLAG_RWTUN.
Apr 11 2025, 5:03 PM

Apr 10 2025

khng added inline comments to D49763: tmpfs: turn vfs.tmpfs.memory_percent into CTLFLAG_RWTUN.
Apr 10 2025, 7:58 PM
khng requested review of D49763: tmpfs: turn vfs.tmpfs.memory_percent into CTLFLAG_RWTUN.
Apr 10 2025, 6:48 PM

Mar 15 2025

khng committed rGfa301530e0ca: arm64: bus: Add 36-bit address mask for use in bus space allocations (authored by khng).
arm64: bus: Add 36-bit address mask for use in bus space allocations
Mar 15 2025, 7:06 AM

Feb 6 2025

khng committed rG5484c3d6eb31: arm64: bus: Add 36-bit address mask for use in bus space allocations (authored by khng).
arm64: bus: Add 36-bit address mask for use in bus space allocations
Feb 6 2025, 9:28 PM
khng closed D44764: arm64: bus: Add 36-bit address mask for use in bus space allocations.
Feb 6 2025, 9:27 PM

Dec 5 2024

khng accepted D47930: contrib/libxo: fix API header files inclusions in C++ source files.

@phil for a confirmation as well.

Dec 5 2024, 9:56 PM

Nov 30 2024

khng committed rG57a7f61b13c3: kerneldump: fix incorrect SETSIZE to BIT_COPY_STORE_REL when livedump (authored by khng).
kerneldump: fix incorrect SETSIZE to BIT_COPY_STORE_REL when livedump
Nov 30 2024, 6:54 AM

Nov 24 2024

khng accepted D47714: livedump: Silence KASAN and KMSAN when livedumping.
Nov 24 2024, 6:49 PM

Nov 23 2024

khng accepted D47714: livedump: Silence KASAN and KMSAN when livedumping.
Nov 23 2024, 4:43 PM
khng committed rG9ad8116b5461: kerneldump: fix incorrect SETSIZE to BIT_COPY_STORE_REL when livedump (authored by khng).
kerneldump: fix incorrect SETSIZE to BIT_COPY_STORE_REL when livedump
Nov 23 2024, 4:35 PM
khng closed D47708: kerneldump: fix incorrect SETSIZE to BIT_COPY_STORE_REL when livedump.
Nov 23 2024, 4:35 PM