[Bug 274198] ktrace: logs only one arg for symlink() call

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 04 Oct 2023 14:37:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274198

--- Comment #5 from Mark Johnston <markj@FreeBSD.org> ---
(In reply to Dmitry Chagin from comment #4)
I am on the fence.  I agree it is weird to use NAMEI here, but as Ivan pointed
out, ktrnamei() is already (ab)used by shm_copyin_path() and vn_getcwd().

But, the symlink target is not accessed by the kernel, and the symlink target
can be an arbitrary string, it does not have to be a path, see malloc.conf(5)
for example.  So NAMEI really isn't right.  I think KTR_STRING is probably a
better solution; I would extend the KTR_STRUCT flag to include strings.

-- 
You are receiving this mail because:
You are the assignee for the bug.