Page MenuHomeFreeBSD
Feed Advanced Search

Oct 17 2021

trasz committed rG0f559a9f097b: Make vmdaemon timeout configurable (authored by trasz).
Make vmdaemon timeout configurable
Oct 17 2021, 12:53 PM
trasz committed rG70774c637b87: procfs: Document as deprecated (authored by trasz).
procfs: Document as deprecated
Oct 17 2021, 12:47 PM
trasz closed D22275: Document procfs(5) as obsolete.
Oct 17 2021, 12:47 PM
trasz committed rG99f563ed76f4: linux: recognize TCP_INFO and ratelimit the warning (authored by trasz).
linux: recognize TCP_INFO and ratelimit the warning
Oct 17 2021, 12:44 PM
trasz closed D32454: linux: recognize TCP_INFO and ratelimit the warning.
Oct 17 2021, 12:44 PM
trasz added a comment to D32355: linux: Make PTRACE_GET_SYSCALL_INFO handle negative errnos.
In D32355#734010, @kib wrote:
In D32355#733679, @kib wrote:

So after the second thought, would something like if (sr.sr_error == EJUSTRETURN) { is_error = IS_ERR_VALUE((sr.sr_retval[0]); ...} more appropriate? IS_ERR_VALUE() is the linux thing which is roughly ((x) >= (uintptr_t)-MAX_ERRNO), not sure how it is spelled in Linuxolator.

Not sure if I follow. The return value there is BSD errno, not Linux errno; also, this doesn't seem to be more readable than the current version.

For EJUSTRETURN, you need to determine (from the FreeBSD return frame, according to your statement) if it is error or success return, and then encode the si.exit values. In particular, rval would be either sr_retval[0] if there is no error, or bsd_to_linux_errno() if there is.

Oct 17 2021, 12:23 PM
trasz added a comment to D32367: linux: implement PTRACE_EVENT_EXEC.
In D32367#732149, @jhb wrote:

Can you describe what the two stops are? Is it one stop for syscall exit and a second for exec? If so, I think this isn't quite doing what you want. I think the first stop will report (LINUX_SIGTRAP | (0x80 | LINUX_PTRACE_EXEC_EVENT) << 8) << 8 and the second stop will report (LINUX_SIGTRAP | 0x80 << 8) << 8. I think you'd want to change the linux_ptrace bits to ignore SCX if EXEC is set?

Oct 17 2021, 12:21 PM
trasz committed rGa03d4d73e4c7: linux: Improve debugging for PTRACE_GETREGSET (authored by trasz).
linux: Improve debugging for PTRACE_GETREGSET
Oct 17 2021, 12:18 PM
trasz closed D32456: linux: Improve debugging for PTRACE_GETREGSET.
Oct 17 2021, 12:18 PM
trasz closed D32455: linux: Implement some bits of PTRACE_PEEKUSER.
Oct 17 2021, 11:52 AM
trasz committed rGf9246e148488: linux: Implement some bits of PTRACE_PEEKUSER (authored by trasz).
linux: Implement some bits of PTRACE_PEEKUSER
Oct 17 2021, 11:52 AM
trasz committed rG75a9d95b4d0a: linux: Adjust PTRACE_GET_SYSCALL_INFO buffer size semantics (authored by trasz).
linux: Adjust PTRACE_GET_SYSCALL_INFO buffer size semantics
Oct 17 2021, 11:20 AM
trasz closed D32368: linux: Adjust PTRACE_GET_SYSCALL_INFO buffer size semantics.
Oct 17 2021, 11:19 AM
trasz committed rG7e7859e7c2b9: linux: Partially implement TCSBRK (authored by trasz).
linux: Partially implement TCSBRK
Oct 17 2021, 10:49 AM
trasz closed D32291: linux: Partially implement TCSBRK.
Oct 17 2021, 10:49 AM
trasz added inline comments to D32291: linux: Partially implement TCSBRK.
Oct 17 2021, 10:21 AM
trasz added a comment to D32367: linux: implement PTRACE_EVENT_EXEC.
In D32367#732149, @jhb wrote:

Can you describe what the two stops are? Is it one stop for syscall exit and a second for exec? If so, I think this isn't quite doing what you want. I think the first stop will report (LINUX_SIGTRAP | (0x80 | LINUX_PTRACE_EXEC_EVENT) << 8) << 8 and the second stop will report (LINUX_SIGTRAP | 0x80 << 8) << 8. I think you'd want to change the linux_ptrace bits to ignore SCX if EXEC is set?

Oct 17 2021, 10:14 AM
trasz updated the diff for D32367: linux: implement PTRACE_EVENT_EXEC.

Emit those in the right order.

Oct 17 2021, 10:14 AM
trasz added a comment to D32355: linux: Make PTRACE_GET_SYSCALL_INFO handle negative errnos.
In D32355#733679, @kib wrote:

So after the second thought, would something like if (sr.sr_error == EJUSTRETURN) { is_error = IS_ERR_VALUE((sr.sr_retval[0]); ...} more appropriate? IS_ERR_VALUE() is the linux thing which is roughly ((x) >= (uintptr_t)-MAX_ERRNO), not sure how it is spelled in Linuxolator.

Oct 17 2021, 9:30 AM
trasz updated the diff for D32355: linux: Make PTRACE_GET_SYSCALL_INFO handle negative errnos.

Remove useless line wrapping.

Oct 17 2021, 9:26 AM

Oct 14 2021

trasz updated the diff for D32355: linux: Make PTRACE_GET_SYSCALL_INFO handle negative errnos.

Join the two conditionals.

Oct 14 2021, 8:43 PM

Oct 13 2021

trasz added inline comments to D32355: linux: Make PTRACE_GET_SYSCALL_INFO handle negative errnos.
Oct 13 2021, 4:47 PM

Oct 12 2021

trasz updated the diff for D32355: linux: Make PTRACE_GET_SYSCALL_INFO handle negative errnos.

Only expect EJUSTRETURN; don't claim it's an error. This one makes strace happy.

Oct 12 2021, 2:44 PM

Oct 11 2021

trasz added a reviewer for D32456: linux: Improve debugging for PTRACE_GETREGSET: Linux Emulation.
Oct 11 2021, 2:55 PM
trasz requested review of D32456: linux: Improve debugging for PTRACE_GETREGSET.
Oct 11 2021, 2:54 PM
trasz added a reviewer for D32455: linux: Implement some bits of PTRACE_PEEKUSER: Linux Emulation.
Oct 11 2021, 2:11 PM
trasz updated the summary of D32455: linux: Implement some bits of PTRACE_PEEKUSER.
Oct 11 2021, 2:10 PM
trasz requested review of D32455: linux: Implement some bits of PTRACE_PEEKUSER.
Oct 11 2021, 2:08 PM
trasz added reviewers for D32454: linux: recognize TCP_INFO and ratelimit the warning: Linux Emulation, netchild.
Oct 11 2021, 12:41 PM
trasz requested review of D32454: linux: recognize TCP_INFO and ratelimit the warning.
Oct 11 2021, 12:40 PM

Oct 10 2021

trasz added a comment to D32367: linux: implement PTRACE_EVENT_EXEC.

The reason why I don't want this flag set during the second ptracestop() is that I don't want to return LINUX_PTRACE_EVENT_EXEC on the second stop.

Oct 10 2021, 4:40 PM
trasz added inline comments to D32367: linux: implement PTRACE_EVENT_EXEC.
Oct 10 2021, 4:38 PM

Oct 8 2021

trasz added a comment to D32355: linux: Make PTRACE_GET_SYSCALL_INFO handle negative errnos.

No, bsd_to_linux_errno() assumes it's always called with correct value, and AFAIK other callers keep to it.

Oct 8 2021, 5:54 PM
trasz updated the diff for D32355: linux: Make PTRACE_GET_SYSCALL_INFO handle negative errnos.

There's no error there.

Oct 8 2021, 5:53 PM
trasz updated the diff for D32291: linux: Partially implement TCSBRK.

Fix warning.

Oct 8 2021, 2:45 PM
trasz added inline comments to D32291: linux: Partially implement TCSBRK.
Oct 8 2021, 2:02 PM
trasz added a reviewer for D32368: linux: Adjust PTRACE_GET_SYSCALL_INFO buffer size semantics: Linux Emulation.
Oct 8 2021, 1:05 PM
trasz requested review of D32368: linux: Adjust PTRACE_GET_SYSCALL_INFO buffer size semantics.
Oct 8 2021, 1:04 PM
trasz added a comment to D30457: linuxulator: Some ptrace fixes...

See also https://reviews.freebsd.org/D32367, which takes a slightly different route.

Oct 8 2021, 1:03 PM
trasz added reviewers for D32367: linux: implement PTRACE_EVENT_EXEC: Linux Emulation, jhb, kib.
Oct 8 2021, 1:02 PM
trasz added reviewers for D32355: linux: Make PTRACE_GET_SYSCALL_INFO handle negative errnos: Linux Emulation, jhb, kib.
Oct 8 2021, 1:01 PM
trasz added a comment to D32355: linux: Make PTRACE_GET_SYSCALL_INFO handle negative errnos.

I think this is reasonable but am curious why we get +ve and -ve values, do you know where they originate?

Oct 8 2021, 1:00 PM
trasz requested review of D32367: linux: implement PTRACE_EVENT_EXEC.
Oct 8 2021, 12:56 PM

Oct 7 2021

trasz requested review of D32355: linux: Make PTRACE_GET_SYSCALL_INFO handle negative errnos.
Oct 7 2021, 1:54 PM

Oct 6 2021

trasz added a comment to D32252: When sending ignored signal, arrange for zero return code from sleep.

Appears to work fine, thanks :-)

Oct 6 2021, 10:53 AM
trasz added a comment to D30457: linuxulator: Some ptrace fixes...
Oct 6 2021, 10:53 AM
trasz added a comment to D30457: linuxulator: Some ptrace fixes...

Ah, one more thing: we can't really have a (modern) strace(1) port for both native and Linux binaries; strace has removed support for everything not Linux several years ago.

Oct 6 2021, 10:28 AM
trasz added a comment to D32252: When sending ignored signal, arrange for zero return code from sleep.

I'm afraid it panics for me: panic: mtx_lock_spin: recursed on non-recursive mutex sleepq chain @ /usr/home/trasz/git/freebsd/sys/kern/subr_sleepqueue.c:267. Traceback looks like this:

panic() at panic+0x44
__mtx_lock_spin_flags() at __mtx_lock_spin_flags+0x190
wakeup() at wakeup+0x10
exit1() at exit1+0xb8c
linux_exit_group() at linux_exit_group+0x10
do_el0_sync() at do_el0_sync+0x4a8
handle_el0_sync() at handle_el0_sync+0x90
Oct 6 2021, 9:31 AM
trasz added a comment to D30457: linuxulator: Some ptrace fixes...

Can you say some more about what's missing for non-stop debugging?

Oct 6 2021, 9:05 AM

Oct 5 2021

trasz added inline comments to D32291: linux: Partially implement TCSBRK.
Oct 5 2021, 1:07 PM

Oct 4 2021

trasz added a reviewer for D32291: linux: Partially implement TCSBRK: Linux Emulation.
Oct 4 2021, 12:42 PM
trasz requested review of D32291: linux: Partially implement TCSBRK.
Oct 4 2021, 12:42 PM

Oct 2 2021

trasz added reviewers for D30457: linuxulator: Some ptrace fixes..: jhb, kib.

John, Konstantin, this extends our native ptrace(2), so I'd like to know what do you think. There should be documentation, but for now the new requests are described in https://man7.org/linux/man-pages/man2/ptrace.2.html.

Oct 2 2021, 2:47 PM

Oct 1 2021

trasz added a comment to D32252: When sending ignored signal, arrange for zero return code from sleep.

This fixes my testcase with strace(1), and also seems to fix problems with man(1) and ninja(8) on Bionic. Thank you :-)

Oct 1 2021, 12:16 PM

Sep 29 2021

trasz added a comment to D32224: Add a gic interface to allocate MSI interrupts.

This appears to fix kern/258534 for me, thanks :)

Sep 29 2021, 5:36 PM

Sep 16 2021

trasz added a comment to D31768: Add support for gicv2m as a child of gicv3.

Followup PR can be found at https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258534.

Sep 16 2021, 2:46 PM

Sep 14 2021

trasz closed D28212: linux: implement PTRACE_GET_SYSCALL_INFO.
Sep 14 2021, 8:42 PM
trasz committed rGbdf0f24bb16d: linux: implement PTRACE_GET_SYSCALL_INFO (authored by trasz).
linux: implement PTRACE_GET_SYSCALL_INFO
Sep 14 2021, 8:42 PM
trasz committed rG6f43f86bf36d: tzcode: Fix operation without WITH_DETECT_TZ_CHANGES (authored by trasz).
tzcode: Fix operation without WITH_DETECT_TZ_CHANGES
Sep 14 2021, 8:40 PM
trasz closed D31961: tzcode: Fix operation without WITH_DETECT_TZ_CHANGES.
Sep 14 2021, 8:40 PM
trasz updated the summary of D31961: tzcode: Fix operation without WITH_DETECT_TZ_CHANGES.
Sep 14 2021, 6:53 PM
trasz requested review of D31961: tzcode: Fix operation without WITH_DETECT_TZ_CHANGES.
Sep 14 2021, 6:52 PM

Sep 13 2021

trasz closed D30183: tzcode: Implement timezone change detection.
Sep 13 2021, 2:42 PM
trasz committed rGddedf2a11eb2: tzcode: Implement timezone change detection (authored by trasz).
tzcode: Implement timezone change detection
Sep 13 2021, 2:42 PM
trasz added a comment to D30183: tzcode: Implement timezone change detection.

I've asked for review on tz@, and here's what follows (see https://mm.icann.org/pipermail/tz/2021-September/030335.html and followups): this has a potential of breaking apps that depend on zone information to not change behind their back, but there's a precedent with Apple doing something similar (although not identical). One proposed solution that I particularly like is for tzcode to provide a function which returns the path to the zone file; this way the app could use whatever notification mechanism it likes, and it would also make it possible to implement a LD_PRELOADed wrapper to implement transparent change detection like this change does.

Sep 13 2021, 2:33 PM
trasz updated the diff for D28212: linux: implement PTRACE_GET_SYSCALL_INFO.

Fix buildworld.

Sep 13 2021, 1:30 PM

Sep 12 2021

trasz added a comment to D28212: linux: implement PTRACE_GET_SYSCALL_INFO.

There's still one problem: the #ifdef _KERNEL breaks world build (lib/libsysdecode/tables.h:406:13: error: use of undeclared identifier 'PT_GET_SC_ARGS_ALL'). Is there already some #define to allow libsysdecode to use kernel includes, or is there a different way?

Sep 12 2021, 8:40 PM

Sep 7 2021

trasz updated the diff for D28212: linux: implement PTRACE_GET_SYSCALL_INFO.

Handle freebsd32.

Sep 7 2021, 5:27 PM
trasz updated the diff for D28212: linux: implement PTRACE_GET_SYSCALL_INFO.

More fixes.

Sep 7 2021, 4:51 PM

Sep 6 2021

trasz updated the diff for D31822: iconv: remove "$FreeBSD$" tags from test reference files.

Use the right diff.

Sep 6 2021, 2:56 PM
trasz committed rG439aa5872860: iconv: Fix "make make-ref" (authored by trasz).
iconv: Fix "make make-ref"
Sep 6 2021, 2:49 PM
trasz closed D31820: iconv: fix "make make-ref".
Sep 6 2021, 2:49 PM
trasz committed rG0016b7da3441: iconv: Fix tablegen iconv test utility on arm64 (authored by trasz).
iconv: Fix tablegen iconv test utility on arm64
Sep 6 2021, 2:46 PM
trasz closed D31817: Fix tablegen iconv(3) test utility on arm64..
Sep 6 2021, 2:46 PM
trasz committed rGc6da134591a9: iconv: Fix path names used by iconv(3) tests. (authored by trasz).
iconv: Fix path names used by iconv(3) tests.
Sep 6 2021, 2:44 PM
trasz closed D31815: Fix path names used by iconv(3) tests..
Sep 6 2021, 2:44 PM
trasz committed rGefe014e6b177: iconv: Make it possible to build iconv(3) test suite. (authored by trasz).
iconv: Make it possible to build iconv(3) test suite.
Sep 6 2021, 2:43 PM
trasz closed D31816: Make it possible to build iconv(3) test suite..
Sep 6 2021, 2:43 PM

Sep 3 2021

trasz requested review of D31822: iconv: remove "$FreeBSD$" tags from test reference files.
Sep 3 2021, 11:58 AM
trasz requested review of D31820: iconv: fix "make make-ref".
Sep 3 2021, 11:55 AM
trasz requested review of D31818: iconv: strip $FreeBSD$ tags from data files.
Sep 3 2021, 8:35 AM
trasz requested review of D31817: Fix tablegen iconv(3) test utility on arm64..
Sep 3 2021, 8:20 AM
trasz requested review of D31816: Make it possible to build iconv(3) test suite..
Sep 3 2021, 8:19 AM
trasz requested review of D31815: Fix path names used by iconv(3) tests..
Sep 3 2021, 8:18 AM

Sep 2 2021

trasz added a comment to D31768: Add support for gicv2m as a child of gicv3.

Hm, interesting. With "<NetworkBusType>0</NetworkBusType>" and the VM type set to "Windows 11", it panics (with the patch above) after successfully probing vtnet0 on virtio_pci0:

Sep 2 2021, 7:29 PM

Sep 1 2021

trasz added a comment to D31768: Add support for gicv2m as a child of gicv3.

Now, regarding "vm.efi.dtb=0": with "Other", things change like this (I've omitted changes to USB enumeration order, I guess that's random):

Sep 1 2021, 4:37 PM
trasz added a comment to D31768: Add support for gicv2m as a child of gicv3.

I've tested this (applied on top of https://reviews.freebsd.org/D31767) and it fixes the problem, thank you :-)

Sep 1 2021, 4:27 PM
trasz committed rG0f49ecffb744: cam: revert second half of 75b5caa08ef (authored by trasz).
cam: revert second half of 75b5caa08ef
Sep 1 2021, 9:42 AM
trasz closed D31523: cam: revert second half of 75b5caa08ef.
Sep 1 2021, 9:42 AM
trasz abandoned D31366: msdosfs: drop DE_RENAME.

Obsoleted by https://reviews.freebsd.org/D31464.

Sep 1 2021, 9:38 AM

Aug 17 2021

trasz added a comment to D28212: linux: implement PTRACE_GET_SYSCALL_INFO.

Ping?

Aug 17 2021, 8:56 AM

Aug 12 2021

trasz added a reviewer for D31523: cam: revert second half of 75b5caa08ef: imp.
Aug 12 2021, 10:37 AM
trasz requested review of D31523: cam: revert second half of 75b5caa08ef.
Aug 12 2021, 10:36 AM

Aug 8 2021

trasz abandoned D27337: Fix use after free in msdosfs_rename().

https://reviews.freebsd.org/D31366

Aug 8 2021, 1:49 PM
trasz closed D31380: cam: revert half of 75b5caa08ef.
Aug 8 2021, 1:35 PM
trasz committed rGb0cf8194c236: cam: revert half of 75b5caa08ef (authored by trasz).
cam: revert half of 75b5caa08ef
Aug 8 2021, 1:35 PM

Aug 2 2021

trasz added a comment to D31366: msdosfs: drop DE_RENAME.
In D31366#706899, @imp wrote:

What cases is it supposed to prevent?

Aug 2 2021, 12:44 PM
trasz added a reviewer for D31380: cam: revert half of 75b5caa08ef: imp.
Aug 2 2021, 12:37 PM
trasz requested review of D31380: cam: revert half of 75b5caa08ef.
Aug 2 2021, 12:36 PM

Aug 1 2021

trasz committed rG60fb9e10c74c: cam: enable kern.cam.da.enable_uma_ccbs by default (authored by trasz).
cam: enable kern.cam.da.enable_uma_ccbs by default
Aug 1 2021, 9:52 AM