Page MenuHomeFreeBSD

khng (Ka Ho Ng)
User

Projects

User Details

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

Recent Activity

Thu, Feb 6

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
Thu, Feb 6, 9:28 PM
khng closed D44764: arm64: bus: Add 36-bit address mask for use in bus space allocations.
Thu, Feb 6, 9:27 PM

Dec 5 2024

khng accepted D47930: contrib/libxo/libxo/*.h fix libxo header include when the source is C++.

@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
khng retitled D47708: kerneldump: fix incorrect SETSIZE to BIT_COPY_STORE_REL when livedump from kerneldump: fix incorrect SETSIZE parameter to BITCOPY when livedump to kerneldump: fix incorrect SETSIZE to BIT_COPY_STORE_REL when livedump.
Nov 23 2024, 7:50 AM
khng updated the summary of D47708: kerneldump: fix incorrect SETSIZE to BIT_COPY_STORE_REL when livedump.
Nov 23 2024, 7:44 AM
khng requested review of D47708: kerneldump: fix incorrect SETSIZE to BIT_COPY_STORE_REL when livedump.
Nov 23 2024, 6:58 AM

Nov 14 2024

khng added inline comments to D47383: libkldelf: skip loading zero-sized and non-SHF_ALLOC sections.
Nov 14 2024, 5:52 PM

Nov 12 2024

khng added inline comments to D47383: libkldelf: skip loading zero-sized and non-SHF_ALLOC sections.
Nov 12 2024, 8:24 PM
khng added inline comments to D47383: libkldelf: skip loading zero-sized and non-SHF_ALLOC sections.
Nov 12 2024, 8:21 PM
khng added inline comments to D47383: libkldelf: skip loading zero-sized and non-SHF_ALLOC sections.
Nov 12 2024, 8:13 PM
khng updated the diff for D47383: libkldelf: skip loading zero-sized and non-SHF_ALLOC sections.

Separate SHT_INIT_ARRAY/SHT_FINI_ARRAY/SHT_X86_64_UNWIND out.

Nov 12 2024, 8:07 PM
khng added inline comments to D47383: libkldelf: skip loading zero-sized and non-SHF_ALLOC sections.
Nov 12 2024, 8:05 PM
khng added inline comments to D47383: libkldelf: skip loading zero-sized and non-SHF_ALLOC sections.
Nov 12 2024, 7:56 PM
khng closed D45563: sys: move SAN and COVERAGE options handling to kern.mk.
Nov 12 2024, 7:05 PM
khng committed rG6e3875ebcf0e: sys: move SAN and COVERAGE options handling to kern.mk (authored by khng).
sys: move SAN and COVERAGE options handling to kern.mk
Nov 12 2024, 7:05 PM

Nov 10 2024

khng updated the diff for D45563: sys: move SAN and COVERAGE options handling to kern.mk.

Remove duplicated fsanitize flags during module build

Nov 10 2024, 3:46 AM

Nov 5 2024

khng added a comment to D47383: libkldelf: skip loading zero-sized and non-SHF_ALLOC sections.
In D47383#1081811, @jhb wrote:

We can probably just do this all the time without needing the flag? I think kldxref just doesn't care, or more likely ef_object.c in kldxref wasn't updated when the kernel linker changed.

Nov 5 2024, 7:15 PM

Nov 4 2024

khng updated the diff for D47383: libkldelf: skip loading zero-sized and non-SHF_ALLOC sections.

Addresses jhb@'s comments

Nov 4 2024, 6:36 PM
khng retitled D47383: libkldelf: skip loading zero-sized and non-SHF_ALLOC sections from libkldelf: introduce KELF_F_OINCORELAYOUT flag to libkldelf: skip loading zero-sized and non-SHF_ALLOC sections.
Nov 4 2024, 6:35 PM

Nov 1 2024

khng requested review of D47383: libkldelf: skip loading zero-sized and non-SHF_ALLOC sections.
Nov 1 2024, 1:27 PM

Oct 25 2024

khng committed rG72e15f76a1b3: libkldelf: add see_local parameter to elf_lookup_symbol (authored by khng).
libkldelf: add see_local parameter to elf_lookup_symbol
Oct 25 2024, 4:20 PM
khng closed D47206: libkldelf: add see_local parameter to elf_lookup_symbol.
Oct 25 2024, 4:20 PM

Oct 23 2024

khng added inline comments to D47265: libc: fix WRONLY/RDONLY test in fmemopen.
Oct 23 2024, 3:44 PM
khng added inline comments to D47265: libc: fix WRONLY/RDONLY test in fmemopen.
Oct 23 2024, 3:40 PM
khng accepted D47265: libc: fix WRONLY/RDONLY test in fmemopen.
Oct 23 2024, 3:28 PM

Oct 20 2024

khng requested review of D47206: libkldelf: add see_local parameter to elf_lookup_symbol.
Oct 20 2024, 4:57 AM

Oct 18 2024

khng committed rG599c4399e9b8: libkldelf: use warnx instead of printf (authored by khng).
libkldelf: use warnx instead of printf
Oct 18 2024, 8:22 PM
khng committed rG43628a31e3a2: libkldelf: add elf_lookup_symbol function (authored by khng).
libkldelf: add elf_lookup_symbol function
Oct 18 2024, 8:22 PM
khng committed rG968bcca262a2: libkldelf: add a private library for kernel/kld-related ELF parsing (authored by khng).
libkldelf: add a private library for kernel/kld-related ELF parsing
Oct 18 2024, 8:22 PM
khng updated the diff for D45563: sys: move SAN and COVERAGE options handling to kern.mk.

Updated to adapt to NOSAN's introduction

Oct 18 2024, 2:00 PM

Oct 10 2024

khng abandoned D47034: RFC: fix static libkldelf library without proper LINKER_SET.
Oct 10 2024, 10:24 PM
khng requested review of D47052: kldxref: compile libkldelf source files directly.
Oct 10 2024, 10:23 PM
khng requested review of D47034: RFC: fix static libkldelf library without proper LINKER_SET.
Oct 10 2024, 3:17 AM

Oct 8 2024

khng committed rG50c64df2a173: Revert "libkldelf: add a private library for kernel/kld-related ELF parsing" (authored by khng).
Revert "libkldelf: add a private library for kernel/kld-related ELF parsing"
Oct 8 2024, 7:49 PM
khng added a reverting change for rG0a2cfd653e86: libkldelf: add a private library for kernel/kld-related ELF parsing: rG50c64df2a173: Revert "libkldelf: add a private library for kernel/kld-related ELF parsing".
Oct 8 2024, 7:49 PM
khng added a reverting change for rG2c7d84795628: libkldelf: add elf_lookup_symbol function: rG7007de7d1095: Revert "libkldelf: add elf_lookup_symbol function".
Oct 8 2024, 7:49 PM
khng committed rG7007de7d1095: Revert "libkldelf: add elf_lookup_symbol function" (authored by khng).
Revert "libkldelf: add elf_lookup_symbol function"
Oct 8 2024, 7:49 PM
khng added a reverting change for rG550ee2d03c5b: libkldelf: use warnx instead of printf: rG6df3a2d1bfed: Revert "libkldelf: use warnx instead of printf".
Oct 8 2024, 7:49 PM
khng committed rG6df3a2d1bfed: Revert "libkldelf: use warnx instead of printf" (authored by khng).
Revert "libkldelf: use warnx instead of printf"
Oct 8 2024, 7:49 PM
khng added a reverting change for D46719: libkldelf: add a private library for kernel/kld-related ELF parsing: rG50c64df2a173: Revert "libkldelf: add a private library for kernel/kld-related ELF parsing".
Oct 8 2024, 7:49 PM
khng added a reverting change for D46764: libkldelf: add elf_lookup_symbol function: rG7007de7d1095: Revert "libkldelf: add elf_lookup_symbol function".
Oct 8 2024, 7:49 PM
khng added a reverting change for D46893: libkldelf: use warnx instead of printf: rG6df3a2d1bfed: Revert "libkldelf: use warnx instead of printf".
Oct 8 2024, 7:49 PM
khng committed rG550ee2d03c5b: libkldelf: use warnx instead of printf (authored by khng).
libkldelf: use warnx instead of printf
Oct 8 2024, 4:30 AM
khng committed rG0a2cfd653e86: libkldelf: add a private library for kernel/kld-related ELF parsing (authored by khng).
libkldelf: add a private library for kernel/kld-related ELF parsing
Oct 8 2024, 4:30 AM
khng committed rG2c7d84795628: libkldelf: add elf_lookup_symbol function (authored by khng).
libkldelf: add elf_lookup_symbol function
Oct 8 2024, 4:30 AM
khng closed D46893: libkldelf: use warnx instead of printf.
Oct 8 2024, 4:29 AM
khng closed D46719: libkldelf: add a private library for kernel/kld-related ELF parsing.
Oct 8 2024, 4:29 AM
khng closed D46764: libkldelf: add elf_lookup_symbol function.
Oct 8 2024, 4:29 AM

Oct 4 2024

khng updated the diff for D46891: libkldelf: returns EOPNOTSUPP for unrecognizable relocations.

Comments update.

Oct 4 2024, 10:02 PM
khng added inline comments to D46891: libkldelf: returns EOPNOTSUPP for unrecognizable relocations.
Oct 4 2024, 9:59 PM
khng updated the diff for D46893: libkldelf: use warnx instead of printf.

Oops.

Oct 4 2024, 9:24 PM
khng updated the diff for D46893: libkldelf: use warnx instead of printf.

Fix per markj@'s comment. ef_print_phdr related part now is left unchanged for now.

Oct 4 2024, 9:23 PM
khng updated the summary of D46891: libkldelf: returns EOPNOTSUPP for unrecognizable relocations.
Oct 4 2024, 1:12 AM
khng requested review of D46893: libkldelf: use warnx instead of printf.
Oct 4 2024, 1:11 AM

Oct 3 2024

khng requested review of D46891: libkldelf: returns EOPNOTSUPP for unrecognizable relocations.
Oct 3 2024, 8:10 PM

Oct 2 2024

khng updated the summary of D46719: libkldelf: add a private library for kernel/kld-related ELF parsing.
Oct 2 2024, 5:52 PM
khng updated the diff for D46719: libkldelf: add a private library for kernel/kld-related ELF parsing.

Bootstrap it everytime, and remove the __FreeBSD_version bump as well given this library is private.

Oct 2 2024, 5:52 PM
khng added inline comments to D46719: libkldelf: add a private library for kernel/kld-related ELF parsing.
Oct 2 2024, 12:58 AM

Sep 27 2024

khng added inline comments to D46719: libkldelf: add a private library for kernel/kld-related ELF parsing.
Sep 27 2024, 5:20 PM
khng updated the diff for D46719: libkldelf: add a private library for kernel/kld-related ELF parsing.

Remove include headers installation

Sep 27 2024, 5:19 PM
khng added inline comments to D46764: libkldelf: add elf_lookup_symbol function.
Sep 27 2024, 3:29 PM

Sep 24 2024

khng updated the summary of D46719: libkldelf: add a private library for kernel/kld-related ELF parsing.
Sep 24 2024, 8:48 PM
khng updated the diff for D46719: libkldelf: add a private library for kernel/kld-related ELF parsing.

Update commit message. If it is not reflected on Phabricator I will do it one more time.

Sep 24 2024, 8:47 PM
khng added a comment to D46719: libkldelf: add a private library for kernel/kld-related ELF parsing.

This is missing some description of libkldelf's intended functionality, either in the commit message or in a man page (maybe a man page is not required for private libraries). It's hard to tell at a glance what this library does, at least for me who is not familiar with kldxref internals.

I don't have any objection to the change itself, it seems fine and will be useful for debuggers and related tools. libdtrace might be able to take advantage of it as well, replacing some existing code.

Sep 24 2024, 2:38 PM
khng committed rG1d910b5f8819: dirdeps: update Makefile.depend for toolchain (authored by khng).
dirdeps: update Makefile.depend for toolchain
Sep 24 2024, 1:26 AM
khng committed rG306113630dd6: libthr: add libsys for dirdeps build (authored by khng).
libthr: add libsys for dirdeps build
Sep 24 2024, 1:26 AM
khng updated the diff for D46719: libkldelf: add a private library for kernel/kld-related ELF parsing.

Update Makefile.depend as well.

Sep 24 2024, 12:45 AM
khng committed rG8067debcd19f: dirdeps: update/fix Makefile.depend.host for hosttools (authored by khng).
dirdeps: update/fix Makefile.depend.host for hosttools
Sep 24 2024, 12:27 AM

Sep 23 2024

khng committed rG018a491dcea9: dirdeps: Update Makefile.depend.host for hosttools (authored by khng).
dirdeps: Update Makefile.depend.host for hosttools
Sep 23 2024, 11:53 PM
khng updated the diff for D46719: libkldelf: add a private library for kernel/kld-related ELF parsing.

Fix indentiation issue in mtree files

Sep 23 2024, 10:24 PM
khng requested review of D46764: libkldelf: add elf_lookup_symbol function.
Sep 23 2024, 6:42 PM
khng added a comment to D46719: libkldelf: add a private library for kernel/kld-related ELF parsing.
In D46719#1066014, @imp wrote:

Do we need ef_mips.c still ?

Sep 23 2024, 6:13 PM
khng added a reviewer for D46719: libkldelf: add a private library for kernel/kld-related ELF parsing: markj.
Sep 23 2024, 6:09 PM
khng updated the diff for D46719: libkldelf: add a private library for kernel/kld-related ELF parsing.

Updated to be a private library.

Sep 23 2024, 6:09 PM
khng retitled D46719: libkldelf: add a private library for kernel/kld-related ELF parsing from libkldelf: add an internal library for kernel/kld-related ELF parsing to libkldelf: add a private library for kernel/kld-related ELF parsing.
Sep 23 2024, 6:07 PM

Sep 22 2024

khng added a comment to D46719: libkldelf: add a private library for kernel/kld-related ELF parsing.

I think I have to make it PRIVATELIB to be more useful.

Sep 22 2024, 10:08 AM

Sep 21 2024

khng abandoned D46720: kldxref: use libkldxref.

Superseded by D46719.

Sep 21 2024, 8:28 AM
khng updated the diff for D46719: libkldelf: add a private library for kernel/kld-related ELF parsing.

per jhb@'s suggestion.

Sep 21 2024, 8:27 AM

Sep 20 2024

khng added a reviewer for D46719: libkldelf: add a private library for kernel/kld-related ELF parsing: jrtc27.
Sep 20 2024, 4:56 PM
khng requested review of D46720: kldxref: use libkldxref.
Sep 20 2024, 4:55 PM
khng requested review of D46719: libkldelf: add a private library for kernel/kld-related ELF parsing.
Sep 20 2024, 4:55 PM

Sep 13 2024

khng added a comment to D46537: linker: expose symbol and string table sections of elf_file.
In D46537#1063010, @jhb wrote:

Is it to have libkvm resolve symbols in loaded modules by name via kvm_nlist*() when looking at a crash dump?

Sep 13 2024, 12:51 AM

Sep 5 2024

khng added a comment to 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.

Sep 5 2024, 2:11 AM
khng added a comment to D46537: linker: expose symbol and string table sections of elf_file.

These exposed part could be consumed by libkvm easily to look for symbols in a vmcore.

Could you please explain further? libkvm should have access to the kernel and KLD binaries, why does it need to inspect symbol tables in a vmcore?

Which in case of non-live kvm_open() libkvm does not call into kldsym(2). Currently we do not populate the linker_files list in the vmcore. In this scenario usually callers call the kvm_open function with a vmcore and a kernel ELF binary path, so libkvm will never have knowledge of the loaded modules.

I do not follow the bit about "populating the linker_files list". The list should certainly be in the vmcore, that's how kgdb is able to figure out which KLDs were loaded.

Sep 5 2024, 1:48 AM
khng added a comment to D46537: linker: expose symbol and string table sections of elf_file.

These exposed part could be consumed by libkvm easily to look for symbols in a vmcore.

Could you please explain further? libkvm should have access to the kernel and KLD binaries, why does it need to inspect symbol tables in a vmcore?

Sep 5 2024, 1:29 AM

Sep 4 2024

khng added reviewers for D46537: linker: expose symbol and string table sections of elf_file: dfr, markj.
Sep 4 2024, 11:59 PM
khng requested review of D46538: libkvm: look up linker_files for symbols in vmcore.
Sep 4 2024, 11:37 PM
khng requested review of D46537: linker: expose symbol and string table sections of elf_file.
Sep 4 2024, 11:36 PM

Aug 15 2024

khng added a comment to D45282: Move malloc_large_slab and malloc_large_size to malloc.h.

Or that can be addressed by malloc_usable_size() ?

Aug 15 2024, 6:19 PM
khng added a comment to D45282: Move malloc_large_slab and malloc_large_size to malloc.h.

Or you probably want to expose a proper API rather?

Aug 15 2024, 6:07 PM
khng added reviewers for D45282: Move malloc_large_slab and malloc_large_size to malloc.h: markj, khng.
Aug 15 2024, 6:04 PM
khng added a reviewer for D45212: amd64 elf_machdep.c needs a dependency on elf-vdso.so.o: kib.
Aug 15 2024, 6:01 PM

Aug 12 2024

khng accepted D46273: mlx5: Remove a less than helpful debug print.
Aug 12 2024, 4:29 PM

Jul 11 2024

khng committed rG8cd71a0e01d6: libfetch: parse IPv4address in IPv6address properly (authored by khng).
libfetch: parse IPv4address in IPv6address properly
Jul 11 2024, 7:49 PM
khng closed D45896: libfetch: parse IPv4address in IPv6address properly.
Jul 11 2024, 7:49 PM