Page MenuHomeFreeBSD

khng (Ka Ho Ng)
User

Projects (1)

User Details

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

Recent Activity

Tue, Nov 17

khng added a comment to D61197: sglist: use u_int instead of u_short to store sizes.

This should be worth MFC'ing at least to 15.x.

By simple grep'ping, sys/sglist.h doesn't seem to be included from userland, should mean not exposed to userland, possibly except by abusers in ports.

And this fixes crashes on bandwidth tests of clpeak, too, in addition to affected softwares reported at Bug299611.
(Tested on stable/15 and main, amd64, with NVIDIA drivers. Not on 14.x.)

Tue, Nov 17, 11:31 PM

Nov 4 2026

khng accepted D61197: sglist: use u_int instead of u_short to store sizes.

Looks good to me.

Nov 4 2026, 7:04 PM

Oct 20 2026

khng accepted D60914: iichid: keep a fixed sampling cadence in polled mode.

Reviewed and approved.

Oct 20 2026, 9:57 PM

Oct 16 2026

khng accepted D57782: linuxkpi: implement irqs_disabled.

Approved.

Oct 16 2026, 8:26 PM · linuxkpi

Oct 15 2026

khng removed a member for bhyve: khng.
Oct 15 2026, 5:17 AM

Jul 20 2026

khng committed rG84eec65ebb27: Add sbintime.9 manual page.
Jul 20 2026, 3:51 AM
khng committed rGb4711ce4184c: Add sbintime.9 manual page.
Jul 20 2026, 3:48 AM

Jul 13 2026

khng committed rGc3f6c655dd15: Add sbintime.9 manual page.
Jul 13 2026, 12:22 AM
khng closed D57931: Add sbintime.9 manual page.
Jul 13 2026, 12:21 AM

Jul 12 2026

khng updated the diff for D57931: Add sbintime.9 manual page.

Updated.

Jul 12 2026, 5:40 PM
khng added a comment to D57931: Add sbintime.9 manual page.

Might be useful to mention the SBT_1S, SBT_1MS, etc. constants somewhere.

Jul 12 2026, 5:29 PM
khng updated the diff for D57931: Add sbintime.9 manual page.

Addressed markj@'s comments.

Jul 12 2026, 1:05 AM

Jul 5 2026

khng updated the summary of D57931: Add sbintime.9 manual page.
Jul 5 2026, 6:41 PM
khng updated the summary of D57931: Add sbintime.9 manual page.
Jul 5 2026, 5:30 AM
khng updated the diff for D57931: Add sbintime.9 manual page.
  • Incorporated imp@'s suggestions
  • Mentioned that Xstosbt functions were introduced in 14.0
Jul 5 2026, 12:14 AM

Jul 4 2026

khng updated the diff for D57931: Add sbintime.9 manual page.

Incorporate markj@'s suggestions.

Jul 4 2026, 11:09 AM

Jun 28 2026

khng updated the diff for D57931: Add sbintime.9 manual page.

Addressed ziaee@'s comments.

Jun 28 2026, 11:58 PM
khng updated the diff for D57931: Add sbintime.9 manual page.

Addressed ziaee@'s comments.

Jun 28 2026, 10:25 PM
khng requested review of D57931: Add sbintime.9 manual page.
Jun 28 2026, 9:36 PM

Jun 17 2026

khng committed R9:88591908cd44: pgp: Update my expiration date.
Jun 17 2026, 9:02 PM

Apr 10 2026

khng accepted D56297: Pass severity to vectx_open() rather than vectx_close().

Looks good.

Apr 10 2026, 3:33 PM

Feb 25 2026

khng committed rG0ac5cddebe1e: syscall_timing: add Makefile.depend.
Feb 25 2026, 5:39 AM
khng committed rGde773bcc2ffb: Use NO_SHARED instead of explicitly using -static flag (authored by stevek).
Feb 25 2026, 5:30 AM
khng closed D44761: Use NO_SHARED instead of explicitly using -static flag.
Feb 25 2026, 5:29 AM

Jan 6 2026

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.

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

Jan 5 2026

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

Dec 29 2025

khng committed rG9cfd75a6f88f: bio: Fix KASAN invalid access report in biodone.
Dec 29 2025, 6:50 PM

Dec 22 2025

khng committed rG725f4b108d54: geom(9): unset the BIO_ERROR_COMPAT flag correctly.
Dec 22 2025, 2:08 AM
khng committed rG112c453ba910: 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.
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).
Sep 14 2025, 12:34 AM
khng committed rG6faaef201ca3: contrib/libxo: fix API header files inclusions in C++ source files (authored by aokblast).
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).
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
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.
Sep 3 2025, 6:58 PM
khng committed rG4f41ff7ced8a: 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.
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++
Sep 1 2025, 2:47 AM

Aug 27 2025

khng committed rGa93e46f15693: 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.
Aug 10 2025, 1:38 AM

Aug 3 2025

khng committed rGecf65a4ae5cb: 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
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".
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.
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.
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