Page MenuHomeFreeBSD
Feed Advanced Search

Nov 14 2021

trasz accepted D32977: iser: Remove redundant linuxkpi MODULE_DEPEND.
Nov 14 2021, 4:24 PM
trasz added a comment to D32463: rc.d/linux: Attempt to mount only if necessary.

I think so, yeah. Please make sure to test it though; iirc previously the “nocover” option support wasn’t MFC-ed and I had to work around it.

Nov 14 2021, 4:22 PM

Nov 13 2021

trasz accepted D26836: linsysfs: add drm render node.

I have no idea if this is still required, but if it is: please go ahead.

Nov 13 2021, 2:38 PM
trasz accepted D31524: linux(4): Add AT_NO_AUTOMOUNT to statx..
Nov 13 2021, 2:35 PM
trasz accepted D31591: linux(4): Rid unused defines from linux_mib..
Nov 13 2021, 2:33 PM
trasz accepted D31525: linprocfs: Eliminate bogus comment (KSE)..
Nov 13 2021, 2:33 PM
trasz accepted D32856: growfs: do not error if filesystem is already requested size.

It's the first time I see errx(0, ...);, and I find it somewhat confusing, compared to warnx(...); return (0);, but grepping the source it's used like that in other places, so I guess it's just me :-)

Nov 13 2021, 2:32 PM
trasz added a comment to D32977: iser: Remove redundant linuxkpi MODULE_DEPEND.

I wonder why it's there in the first place. Does autoloading dependencies (linuxkpi) on kldload iser work without it?

Nov 13 2021, 2:28 PM
trasz accepted D32463: rc.d/linux: Attempt to mount only if necessary.

There is a somewhat related issue in https://reviews.freebsd.org/D26240. Do you think you could fix it as well, by throwing in an mkdir(1) somewhere in linux_mount?

Nov 13 2021, 2:25 PM
trasz added a comment to D26240: Allow rc.d/linux to create mount points for Linux-specific filestsystems.

Sigh, sorry, it's my fault; every few months I got reminded about this, then find a problem, try to fix it, and then I get distracted and the cycle repeats.

Nov 13 2021, 2:20 PM · rc
trasz closed D32925: Drop some unnecessary includes.
Nov 13 2021, 2:03 PM
trasz committed rG06d5ef0aad20: linux: Drop some unnecessary includes (authored by trasz).
linux: Drop some unnecessary includes
Nov 13 2021, 2:02 PM

Nov 10 2021

trasz requested review of D32925: Drop some unnecessary includes.
Nov 10 2021, 9:51 AM
trasz closed D32918: Remove unfinished ARM Linuxulator support.
Nov 10 2021, 9:05 AM
trasz committed rG65e485014b0d: Remove unfinished ARM Linuxulator support (authored by trasz).
Remove unfinished ARM Linuxulator support
Nov 10 2021, 9:05 AM

Nov 9 2021

trasz edited reviewers for D32918: Remove unfinished ARM Linuxulator support, added: emaste, Linux Emulation; removed: ed.
Nov 9 2021, 10:17 PM
trasz added a reviewer for D32918: Remove unfinished ARM Linuxulator support: ed.
Nov 9 2021, 10:17 PM
trasz requested review of D32918: Remove unfinished ARM Linuxulator support.
Nov 9 2021, 10:16 PM
trasz closed D32888: linux: Replace ifdefs with per-architecture callbacks.
Nov 9 2021, 12:01 PM
trasz committed rG0bf8d5d5f434: linux: Replace ifdefs in ptrace with per-architecture callbacks (authored by trasz).
linux: Replace ifdefs in ptrace with per-architecture callbacks
Nov 9 2021, 12:01 PM

Nov 8 2021

trasz added reviewers for D32888: linux: Replace ifdefs with per-architecture callbacks: jhb, kib, Linux Emulation.
Nov 8 2021, 12:31 PM
trasz updated the diff for D32888: linux: Replace ifdefs with per-architecture callbacks.

Fix build on arm64.

Nov 8 2021, 12:29 PM
trasz requested review of D32888: linux: Replace ifdefs with per-architecture callbacks.
Nov 8 2021, 12:15 PM

Nov 7 2021

trasz committed rGa90ff3c4bc90: linux: Add ptrace(2) support on arm64 (authored by trasz).
linux: Add ptrace(2) support on arm64
Nov 7 2021, 9:20 AM
trasz closed D32868: linux: Make linux_ptrace.c MI.
Nov 7 2021, 9:20 AM

Nov 6 2021

trasz requested review of D32868: linux: Make linux_ptrace.c MI.
Nov 6 2021, 8:45 AM
trasz committed rG6f397bc0fbe3: linux: Implement linux_to_bsd_regset() on arm64 (authored by trasz).
linux: Implement linux_to_bsd_regset() on arm64
Nov 6 2021, 8:36 AM
trasz committed rG3be6e606d787: linux: Fix another amd64-specific piece of linux_ptrace.c (authored by trasz).
linux: Fix another amd64-specific piece of linux_ptrace.c
Nov 6 2021, 8:28 AM

Nov 3 2021

trasz committed rGe03813c3e1fd: development(7): Use a more common architecture for examples (authored by trasz).
development(7): Use a more common architecture for examples
Nov 3 2021, 9:15 AM
trasz committed rGc91d0e59be10: linux: Make linux_ptrace.c portable (authored by trasz).
linux: Make linux_ptrace.c portable
Nov 3 2021, 9:12 AM
trasz closed D32756: linux: Make linux_ptrace.c portable.
Nov 3 2021, 9:12 AM
trasz committed rG4dfd612286ec: linux: mv sys/i386/linux/linux_ptrace{,_machdep}.c (authored by trasz).
linux: mv sys/i386/linux/linux_ptrace{,_machdep}.c
Nov 3 2021, 9:09 AM
trasz closed D32757: linux: mv sys/i386/linux/linux_ptrace{,_machdep}.c.
Nov 3 2021, 9:09 AM
trasz committed rG91be6286e2a7: linprocfs: Fix formatting of Uid and Gid lines (authored by trasz).
linprocfs: Fix formatting of Uid and Gid lines
Nov 3 2021, 9:04 AM
trasz closed D32612: linprocfs: Fix formatting of Uid and Gid lines.
Nov 3 2021, 9:03 AM

Nov 2 2021

trasz added a comment to D32756: linux: Make linux_ptrace.c portable.
In D32756#740162, @kib wrote:

What about i386 and linux32 on amd64?

Nov 2 2021, 2:10 PM
trasz added inline comments to D32756: linux: Make linux_ptrace.c portable.
Nov 2 2021, 1:14 PM
trasz updated the diff for D32756: linux: Make linux_ptrace.c portable.

Fix ifdefs.

Nov 2 2021, 1:02 PM

Nov 1 2021

trasz added a comment to D32757: linux: mv sys/i386/linux/linux_ptrace{,_machdep}.c.

Tinderboxed.

Nov 1 2021, 1:44 PM

Oct 31 2021

trasz added a reviewer for D32757: linux: mv sys/i386/linux/linux_ptrace{,_machdep}.c: Linux Emulation.
Oct 31 2021, 1:43 PM
trasz requested review of D32757: linux: mv sys/i386/linux/linux_ptrace{,_machdep}.c.
Oct 31 2021, 1:43 PM
trasz added reviewers for D32756: linux: Make linux_ptrace.c portable: jhb, kib, Linux Emulation.
Oct 31 2021, 1:34 PM
trasz requested review of D32756: linux: Make linux_ptrace.c portable.
Oct 31 2021, 1:33 PM

Oct 30 2021

trasz closed D32735: linux: make PTRACE_SETREGS use a correct struct.
Oct 30 2021, 10:15 AM
trasz committed rGf0d9a6a781f3: linux: make PTRACE_SETREGS use a correct struct (authored by trasz).
linux: make PTRACE_SETREGS use a correct struct
Oct 30 2021, 10:15 AM
trasz closed D32726: linux: Add additional ptracestop only if the debugger is Linux.
Oct 30 2021, 9:13 AM
trasz committed rG8bbc0600cc21: linux: Add additional ptracestop only if the debugger is Linux (authored by trasz).
linux: Add additional ptracestop only if the debugger is Linux
Oct 30 2021, 9:13 AM
trasz updated the diff for D32726: linux: Add additional ptracestop only if the debugger is Linux.

Tweak the comment.

Oct 30 2021, 8:53 AM

Oct 29 2021

trasz updated the summary of D32726: linux: Add additional ptracestop only if the debugger is Linux.
Oct 29 2021, 8:26 PM
trasz updated the diff for D32726: linux: Add additional ptracestop only if the debugger is Linux.

Fix issues pointed out by kib@.

Oct 29 2021, 8:25 PM
trasz added a reviewer for D32735: linux: make PTRACE_SETREGS use a correct struct: Linux Emulation.
Oct 29 2021, 4:55 PM
trasz requested review of D32735: linux: make PTRACE_SETREGS use a correct struct.
Oct 29 2021, 4:54 PM
trasz committed rGad0379660d0c: linux: make PTRACE_GETREGS return correct struct (authored by trasz).
linux: make PTRACE_GETREGS return correct struct
Oct 29 2021, 4:35 PM
trasz closed D32601: linux: make PTRACE_GETREGS return correct struct.
Oct 29 2021, 4:35 PM
trasz committed rGf939dccfd770: linux: Make PTRACE_GETREGSET return proper buffer size (authored by trasz).
linux: Make PTRACE_GETREGSET return proper buffer size
Oct 29 2021, 3:05 PM
trasz closed D32616: linux: Make PTRACE_GETREGSET return proper buffer size.
Oct 29 2021, 3:04 PM
trasz retitled D32616: linux: Make PTRACE_GETREGSET return proper buffer size from linux: Make PTRACE_GETREGS return proper buffer size to linux: Make PTRACE_GETREGSET return proper buffer size.
Oct 29 2021, 2:31 PM
trasz added a comment to D32616: linux: Make PTRACE_GETREGSET return proper buffer size.

Sigh, no, you were right. My comment is for https://reviews.freebsd.org/D32601, not for this one here.

Oct 29 2021, 2:31 PM
trasz retitled D32601: linux: make PTRACE_GETREGS return correct struct from linux: make PTRACE_GETREGSET return correct struct to linux: make PTRACE_GETREGS return correct struct.
Oct 29 2021, 2:30 PM
trasz committed rGc8c93b151678: linux: Also translate the signal if the code is CLD_KILLED (authored by trasz).
linux: Also translate the signal if the code is CLD_KILLED
Oct 29 2021, 2:29 PM
trasz closed D32617: linux: Also translate the signal if the code is CLD_KILLED.
Oct 29 2021, 2:28 PM
trasz closed D32623: linux: Fix ptrace panic with ERESTART.
Oct 29 2021, 1:56 PM
trasz committed rG6547153e4618: linux: Fix ptrace panic with ERESTART (authored by trasz).
linux: Fix ptrace panic with ERESTART
Oct 29 2021, 1:56 PM
trasz added a comment to D32616: linux: Make PTRACE_GETREGSET return proper buffer size.

Was this just an incorrect understanding in R10:faf2fa21d70b1e625cb7af032e6608e631931486?

Oct 29 2021, 12:26 PM
trasz retitled D32616: linux: Make PTRACE_GETREGSET return proper buffer size from linux: Make PTRACE_GETREGSET return proper buffer size to linux: Make PTRACE_GETREGS return proper buffer size.
Oct 29 2021, 12:24 PM
trasz abandoned D32367: linux: implement PTRACE_EVENT_EXEC.

Thanks! See https://reviews.freebsd.org/D32726.

Oct 29 2021, 10:34 AM
trasz added a reviewer for D32726: linux: Add additional ptracestop only if the debugger is Linux: kib.
Oct 29 2021, 10:34 AM
trasz requested review of D32726: linux: Add additional ptracestop only if the debugger is Linux.
Oct 29 2021, 10:33 AM

Oct 24 2021

trasz reopened D32367: linux: implement PTRACE_EVENT_EXEC.

Okay, so as usual Konstantin is right: the patch is wrong, in that it adds an extra stop even if the ptracing process is native, not Linux. This needs to be fixed.

Oct 24 2021, 6:37 PM
trasz added reviewers for D32617: linux: Also translate the signal if the code is CLD_KILLED: jhb, kib, Linux Emulation.
Oct 24 2021, 9:37 AM
trasz added reviewers for D32623: linux: Fix ptrace panic with ERESTART: jhb, kib, Linux Emulation.
Oct 24 2021, 9:36 AM
trasz requested review of D32623: linux: Fix ptrace panic with ERESTART.
Oct 24 2021, 9:34 AM

Oct 23 2021

trasz requested review of D32617: linux: Also translate the signal if the code is CLD_KILLED.
Oct 23 2021, 7:44 PM
trasz added a reviewer for D32616: linux: Make PTRACE_GETREGSET return proper buffer size: Linux Emulation.
Oct 23 2021, 7:32 PM
trasz requested review of D32616: linux: Make PTRACE_GETREGSET return proper buffer size.
Oct 23 2021, 7:32 PM
trasz committed rG2ec26ae402fc: linux: Improve debug for PTRACE_GETEVENTMSG (authored by trasz).
linux: Improve debug for PTRACE_GETEVENTMSG
Oct 23 2021, 6:54 PM
trasz committed rG6e66030c4c05: linux: implement PTRACE_EVENT_EXEC (authored by trasz).
linux: implement PTRACE_EVENT_EXEC
Oct 23 2021, 6:47 PM
trasz closed D32367: linux: implement PTRACE_EVENT_EXEC.
Oct 23 2021, 6:46 PM
trasz closed D32355: linux: Make PTRACE_GET_SYSCALL_INFO handle negative errnos.
Oct 23 2021, 6:11 PM
trasz committed rG2558bb8e9166: linux: Make PTRACE_GET_SYSCALL_INFO handle EJUSTRETURN (authored by trasz).
linux: Make PTRACE_GET_SYSCALL_INFO handle EJUSTRETURN
Oct 23 2021, 6:11 PM
trasz added a comment to D32367: linux: implement PTRACE_EVENT_EXEC.
In D32367#736014, @kib wrote:

BTW, why cannot this be done somewhere in linux_on_exec(), or similar place?

Oct 23 2021, 9:17 AM
trasz added a reviewer for D32612: linprocfs: Fix formatting of Uid and Gid lines: Linux Emulation.
Oct 23 2021, 8:36 AM
trasz requested review of D32612: linprocfs: Fix formatting of Uid and Gid lines.
Oct 23 2021, 8:36 AM
trasz committed rGe3a83df1195c: linux: Improve debug for PTRACE_GETREGSET (authored by trasz).
linux: Improve debug for PTRACE_GETREGSET
Oct 23 2021, 8:32 AM
trasz closed D32604: linux: Fix ENOTSOCK handling in sendfile(2).
Oct 23 2021, 8:27 AM
trasz committed rG2c7f79828254: linux: Fix ENOTSOCK handling in sendfile(2) (authored by trasz).
linux: Fix ENOTSOCK handling in sendfile(2)
Oct 23 2021, 8:27 AM
trasz committed rG3417c29851b6: linux: Constify bsd_to_linux_regset() (authored by trasz).
linux: Constify bsd_to_linux_regset()
Oct 23 2021, 8:15 AM
trasz closed D32599: linux: Constify bsd_to_linux_regset().
Oct 23 2021, 8:15 AM
trasz added a comment to D32355: linux: Make PTRACE_GET_SYSCALL_INFO handle negative errnos.
In D32355#736013, @kib wrote:
In D32355#734342, @kib wrote:

Is there any practical scenario where this can be a problem?

Definitely, this is how EINTR is returned from syscall after a signal handler was run.

I'm not sure if Linux' ptrace API defines it this way. Also, I don't quite understand how it works for FreeBSD binaries, given that kern_ptrace() only fills sr_retval if sr_error == 0. Therefore I'm tempted to commit it as is, particularly given that it fixes a trivially-reproducible panic.

For native FreeBSD we can legitimately expose EJUSTRETURN. This is enough to inform caller that the real state is in the registers file.

For Linux, due to different ABI and absense of EJUSTRETURN, I have no other proposal than to decode the state (to have the code correct).

Oct 23 2021, 7:31 AM
trasz updated the diff for D32355: linux: Make PTRACE_GET_SYSCALL_INFO handle negative errnos.

Let the ptracer fallback to another method.

Oct 23 2021, 7:27 AM

Oct 22 2021

trasz added a reviewer for D32604: linux: Fix ENOTSOCK handling in sendfile(2): Linux Emulation.
Oct 22 2021, 3:15 PM
trasz requested review of D32604: linux: Fix ENOTSOCK handling in sendfile(2).
Oct 22 2021, 3:14 PM
trasz added a reviewer for D32601: linux: make PTRACE_GETREGS return correct struct: Linux Emulation.
Oct 22 2021, 2:16 PM
trasz requested review of D32601: linux: make PTRACE_GETREGS return correct struct.
Oct 22 2021, 2:15 PM
trasz requested review of D32599: linux: Constify bsd_to_linux_regset().
Oct 22 2021, 1:26 PM
trasz added a comment to D32355: linux: Make PTRACE_GET_SYSCALL_INFO handle negative errnos.
In D32355#734342, @kib wrote:

Is there any practical scenario where this can be a problem?

Definitely, this is how EINTR is returned from syscall after a signal handler was run.

Oct 22 2021, 12:55 PM

Oct 20 2021

trasz added a comment to D32579: Fix intra-object buffer overread for labeled msdosfs volumes.

Might be worth making the same change to usr/sbin/fstyp/msdosfs.c; it's largely copy/pasted from here.

Oct 20 2021, 3:08 PM

Oct 18 2021

trasz added inline comments to D32540: iSCSI: Fast and per-session timeouts.
Oct 18 2021, 3:45 PM

Oct 17 2021

trasz added a comment to D32355: linux: Make PTRACE_GET_SYSCALL_INFO handle negative errnos.
In D32355#734021, @kib wrote:

Isn't EJUSTRETURN always a success?

EJUSTRETURN means 'take the saved frame content and load it into CPU registers without any changes'. Now compare this with usual syscall return, which puts return values into some registers, set or clear error indicator etc.

Oct 17 2021, 1:26 PM
trasz closed D22038: Make vmdaemon timeout configurable.
Oct 17 2021, 12:53 PM