Bug 290667 - truss: nmount should show first parameter
Summary: truss: nmount should show first parameter
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: --- Affects Some People
Assignee: Dag-Erling Smørgrav
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-29 20:20 UTC by Tiago Gasiba
Modified: 2025-11-05 15:39 UTC (History)
1 user (show)

See Also:
des: mfc-stable15+
des: mfc-stable14+
des: mfc-stable13+


Attachments
git patch (979 bytes, application/mbox)
2025-10-29 20:20 UTC, Tiago Gasiba
no flags Details
git patch (979 bytes, patch)
2025-10-29 20:21 UTC, Tiago Gasiba
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tiago Gasiba freebsd_committer freebsd_triage 2025-10-29 20:20:52 UTC
Created attachment 265007 [details]
git patch

Hi

I recently came upon this small problem, that truss does not show the first parameter of the nmount system call, which is of type "struct *iovec".
I have looked at the source code of truss, and I believe I have identified and fixed the problem (note - I tested the patch, and it looks/runs fine...).

So, I would like to send the patch (see attachment) for consideration.

Thanks!
Comment 1 Tiago Gasiba freebsd_committer freebsd_triage 2025-10-29 20:21:54 UTC
Created attachment 265008 [details]
git patch

sorry for spamming - format should be a patch...
Comment 2 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2025-10-31 16:19:50 UTC
In the future, instead of opening a ticket, don't hesitate to create a Phabricator review (using git-arc from devel/freebsd-git-devtools) and add me as reviewer.
Comment 3 commit-hook freebsd_committer freebsd_triage 2025-10-31 16:20:28 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=b9f848ecbafce4e56ba9c8b7993b85347e83484a

commit b9f848ecbafce4e56ba9c8b7993b85347e83484a
Author:     Tiago Gasiba <tiga@FreeBSD.org>
AuthorDate: 2025-10-29 20:09:39 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2025-10-31 16:15:06 +0000

    truss: Properly display first argument to nmount

    The first argument to nmount(2) is an nvlist in the form of an iovec,
    which truss already knows how to decode.  Set the correct flag so
    this happens automatically.

    MFC after:      1 week
    PR:             290667

 usr.bin/truss/syscalls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 Tiago Gasiba freebsd_committer freebsd_triage 2025-11-02 11:53:05 UTC
(In reply to Dag-Erling Smørgrav from comment #2)

OK, and thanks!
Comment 5 commit-hook freebsd_committer freebsd_triage 2025-11-05 15:29:47 UTC
A commit in branch stable/15 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=a6ae5d3a2ed313eee8aabece5c8d8347f4db7baf

commit a6ae5d3a2ed313eee8aabece5c8d8347f4db7baf
Author:     Tiago Gasiba <tiga@FreeBSD.org>
AuthorDate: 2025-10-29 20:09:39 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2025-11-05 13:54:57 +0000

    truss: Properly display first argument to nmount

    The first argument to nmount(2) is an nvlist in the form of an iovec,
    which truss already knows how to decode.  Set the correct flag so
    this happens automatically.

    MFC after:      1 week
    PR:             290667

    (cherry picked from commit b9f848ecbafce4e56ba9c8b7993b85347e83484a)

 usr.bin/truss/syscalls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 6 commit-hook freebsd_committer freebsd_triage 2025-11-05 15:29:48 UTC
A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=b775b191b6bf02bab3322ffe7a2c2396a54e9f7b

commit b775b191b6bf02bab3322ffe7a2c2396a54e9f7b
Author:     Tiago Gasiba <tiga@FreeBSD.org>
AuthorDate: 2025-10-29 20:09:39 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2025-11-05 15:29:19 +0000

    truss: Properly display first argument to nmount

    The first argument to nmount(2) is an nvlist in the form of an iovec,
    which truss already knows how to decode.  Set the correct flag so
    this happens automatically.

    MFC after:      1 week
    PR:             290667

    (cherry picked from commit b9f848ecbafce4e56ba9c8b7993b85347e83484a)

 usr.bin/truss/syscalls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 7 commit-hook freebsd_committer freebsd_triage 2025-11-05 15:38:50 UTC
A commit in branch stable/13 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=58f534ec408c77d365426a03e8037d874151c421

commit 58f534ec408c77d365426a03e8037d874151c421
Author:     Tiago Gasiba <tiga@FreeBSD.org>
AuthorDate: 2025-10-29 20:09:39 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2025-11-05 15:37:44 +0000

    truss: Properly display first argument to nmount

    The first argument to nmount(2) is an nvlist in the form of an iovec,
    which truss already knows how to decode.  Set the correct flag so
    this happens automatically.

    MFC after:      1 week
    PR:             290667

    (cherry picked from commit b9f848ecbafce4e56ba9c8b7993b85347e83484a)

 usr.bin/truss/syscalls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)