Page MenuHomeFreeBSD
Feed Advanced Search

Aug 8 2023

jfree updated the diff for D41362: syslogd: Replace int with bool, where applicable.

The needdofsync global variable was initialized as true, when it should be false. Fix this.

Aug 8 2023, 3:15 PM
jfree requested review of D41362: syslogd: Replace int with bool, where applicable.
Aug 8 2023, 3:02 PM
jfree requested review of D41361: syslogd: Reduce INET/INET6 ifdef cruft.
Aug 8 2023, 3:00 PM
jfree requested review of D41360: syslogd: Move fhead under filed struct declaration.
Aug 8 2023, 2:57 PM
jfree requested review of D41359: syslogd: Remove addfile() and free up some memory.
Aug 8 2023, 2:56 PM
jfree requested review of D41358: syslogd: Read configuration outside of init loop.
Aug 8 2023, 2:55 PM
jfree requested review of D41357: syslogd: Fix fd type, add enum for filed types.
Aug 8 2023, 2:54 PM

Jul 28 2023

jfree updated the diff for D40682: tests: Add ktrace capability violation test cases.

Fix formatting issue in license text

Jul 28 2023, 4:07 PM · capsicum

Jul 21 2023

jfree archived P596 parent --> libcasper.
Jul 21 2023, 10:03 PM
jfree edited P596 parent --> libcasper.
Jul 21 2023, 9:41 PM
jfree created P596 parent --> libcasper.
Jul 21 2023, 9:36 PM

Jun 28 2023

jfree updated the diff for D40790: kern_sig.c: Move SIG_FOREACH into signalvar.h.

Move SIG_FOREACH() into an #ifdef _KERNEL.

Jun 28 2023, 9:42 PM
jfree added inline comments to D40790: kern_sig.c: Move SIG_FOREACH into signalvar.h.
Jun 28 2023, 9:28 PM
jfree updated the diff for D40218: timerfd: Add manual page.

Fix formatting in HISTORY section thanks to @gbe.

Jun 28 2023, 8:24 PM · manpages
jfree added a comment to D38459: timerfd: Add native support for Linux's timerfd.

I would like to get this patch committed before the 14.0 freeze in August. I am personally in favor of making these syscalls, but I'd like some notice if we're not going this route.

Jun 28 2023, 8:01 PM · linuxkpi, Linux Emulation
jfree updated the diff for D38459: timerfd: Add native support for Linux's timerfd.

Add brief comments explaining each of the tfd_jumped macros.

Jun 28 2023, 7:57 PM · linuxkpi, Linux Emulation
jfree requested review of D40791: signalfd: Add native support for Linux's signalfd.
Jun 28 2023, 7:52 PM
jfree requested review of D40790: kern_sig.c: Move SIG_FOREACH into signalvar.h.
Jun 28 2023, 7:42 PM
jfree archived P591 Page fault with SIGCHLD.
Jun 28 2023, 1:28 AM
jfree created P591 Page fault with SIGCHLD.
Jun 28 2023, 12:59 AM

Jun 22 2023

jfree archived P574 ktrace exec CAPFAIL_VFS.
Jun 22 2023, 4:01 PM
jfree archived P576 ktrace: unzip(1).
Jun 22 2023, 4:01 PM
jfree archived P577 ktrace: syslogd(8).
Jun 22 2023, 4:01 PM
jfree created P582 tty panic.
Jun 22 2023, 3:13 PM

Jun 20 2023

jfree updated the diff for D40682: tests: Add ktrace capability violation test cases.

Use cap_svflags instead of cap_flags when determining kernel ABI with syscallabi().

Jun 20 2023, 10:40 PM · capsicum
jfree updated the diff for D40680: ktrace: Record namei violations with KTR_CAPFAIL.

Change NI_LCF_STRICTRELATIVE to NI_LCF_STRICTREL where applicable.

Jun 20 2023, 10:19 PM · capsicum
jfree requested review of D40682: tests: Add ktrace capability violation test cases.
Jun 20 2023, 10:10 PM · capsicum
jfree requested review of D40681: ktrace: Record socket violations with KTR_CAPFAIL.
Jun 20 2023, 10:09 PM · capsicum
jfree requested review of D40680: ktrace: Record namei violations with KTR_CAPFAIL.
Jun 20 2023, 10:08 PM · capsicum
jfree added a project to D40678: ktrace: Record syscall violations with KTR_CAPFAIL: capsicum.
Jun 20 2023, 10:07 PM · capsicum
jfree requested review of D40679: ktrace: Record signal violations with KTR_CAPFAIL.
Jun 20 2023, 10:07 PM · capsicum
jfree requested review of D40678: ktrace: Record syscall violations with KTR_CAPFAIL.
Jun 20 2023, 10:05 PM · capsicum
jfree requested review of D40677: ktrace: Record cpuset violations with KTR_CAPFAIL.
Jun 20 2023, 10:04 PM · capsicum
jfree requested review of D40676: ktrace: Record detailed ECAPMODE violations.
Jun 20 2023, 10:03 PM · capsicum

Jun 8 2023

jfree updated the title for P577 ktrace: syslogd(8) from ktrace: syslogd to ktrace: syslogd(8).
Jun 8 2023, 8:12 PM
jfree created P577 ktrace: syslogd(8).
Jun 8 2023, 8:11 PM
jfree created P576 ktrace: unzip(1).
Jun 8 2023, 8:03 PM

Jun 5 2023

jfree added a comment to P574 ktrace exec CAPFAIL_VFS.
1030 ktrace   CAP   disallowed system call: execve
1030 ktrace   CAP   restricted VFS operation: execve
1030 ktrace   NAMI  "/root/.local/share/cargo/bin/unzip"
1030 ktrace   CAP   disallowed system call: execve
1030 ktrace   CAP   restricted VFS operation: execve
1030 ktrace   NAMI  "/root/.local/share/go/bin/unzip"
1030 ktrace   CAP   disallowed system call: execve
1030 ktrace   CAP   restricted VFS operation: execve
1030 ktrace   NAMI  "/sbin/unzip"
1030 ktrace   CAP   disallowed system call: execve
1030 ktrace   CAP   restricted VFS operation: execve
1030 ktrace   NAMI  "/bin/unzip"
1030 ktrace   CAP   disallowed system call: execve
1030 ktrace   CAP   restricted VFS operation: execve
1030 ktrace   NAMI  "/usr/sbin/unzip"
1030 ktrace   CAP   disallowed system call: execve
1030 ktrace   CAP   restricted VFS operation: execve
1030 ktrace   NAMI  "/usr/bin/unzip"
1030 ktrace   CAP   restricted VFS operation: execve
1030 ktrace   NAMI  "/libexec/ld-elf.so.1"
Jun 5 2023, 3:40 PM
jfree added a comment to P574 ktrace exec CAPFAIL_VFS.
925 ktrace   CAP   disallowed system call: execve
925 ktrace   CAP   restricted VFS operation: execve
925 ktrace   CAP   disallowed system call: execve
925 ktrace   CAP   restricted VFS operation: execve
925 ktrace   CAP   disallowed system call: execve
925 ktrace   CAP   restricted VFS operation: execve
925 ktrace   CAP   disallowed system call: execve
925 ktrace   CAP   restricted VFS operation: execve
925 ktrace   CAP   disallowed system call: execve
925 ktrace   CAP   restricted VFS operation: execve
925 ktrace   CAP   disallowed system call: execve
925 ktrace   CAP   restricted VFS operation: execve
925 ktrace   CAP   restricted VFS operation: execve
925 unzip    CAP   disallowed system call: open
925 unzip    CAP   disallowed system call: open
925 unzip    CAP   disallowed system call: open
925 unzip    CAP   disallowed system call: open
925 unzip    CAP   disallowed system call: open
925 unzip    CAP   disallowed system call: open
925 unzip    CAP   disallowed system call: open
925 unzip    CAP   disallowed system call: open
925 unzip    CAP   disallowed system call: open
925 unzip    CAP   disallowed system call: open
925 unzip    CAP   disallowed system call: open
925 unzip    CAP   disallowed system call: open
925 unzip    CAP   disallowed system call: open
925 unzip    CAP   disallowed system call: open
925 unzip    CAP   disallowed system call: open
925 unzip    CAP   disallowed system call: open
925 unzip    CAP   disallowed system call: open
925 unzip    CAP   disallowed system call: readlink
925 unzip    CAP   disallowed system call: open
925 unzip    CAP   disallowed system call: open
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: open
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
925 unzip    CAP   disallowed system call: mkdir
Jun 5 2023, 3:31 PM
jfree added a comment to P574 ktrace exec CAPFAIL_VFS.
Jun 5 2023, 3:31 PM
jfree created P574 ktrace exec CAPFAIL_VFS.
Jun 5 2023, 3:08 PM

Jun 2 2023

jfree created P573 ktrace capability voilation tracing, no capability mode.
Jun 2 2023, 2:48 PM

May 22 2023

jfree updated the diff for D38459: timerfd: Add native support for Linux's timerfd.
  • tfd_jumped must be set to TFD_CANCELED, not TFD_JUMPED, for timerfd_settime to return ECANCELED.
  • style(9) line-break fixes courtesy of @mckusick.
May 22 2023, 10:28 PM · linuxkpi, Linux Emulation
jfree requested review of D40218: timerfd: Add manual page.
May 22 2023, 10:02 PM · manpages
jfree added a comment to D38459: timerfd: Add native support for Linux's timerfd.

Er? Can you explain? What is confusing for ioctl, and what is intuitive for the syscall interface?

May 22 2023, 8:42 PM · linuxkpi, Linux Emulation

May 21 2023

jfree added a comment to D38459: timerfd: Add native support for Linux's timerfd.

Why? I do not like it very much. It is not as if all (or most) other individual kernel ops where performed by dedicated syscall entries, so I do not see a good reason to do it there. Ioctl perfectly fits the intent of providing file-specific requests.

May 21 2023, 2:01 PM · linuxkpi, Linux Emulation
jfree updated the diff for D38459: timerfd: Add native support for Linux's timerfd.
  • Support TFD_TIMER_CANCEL_ON_SET settime flag using timerfd_jumped().
  • Convert ioctl() interface to native syscalls.
May 21 2023, 2:31 AM · linuxkpi, Linux Emulation

May 20 2023

jfree added a comment to D40177: Improve header self-containment.
In D40177#914781, @imp wrote:

There's a general preference to include sys/_types.h instead of sys/types.h

May 20 2023, 3:32 PM
jfree updated the summary of D40177: Improve header self-containment.
May 20 2023, 4:55 AM
jfree closed D38620: freebsd32.h: Include <sys/mount.h>.
May 20 2023, 4:37 AM
jfree added a comment to D38620: freebsd32.h: Include <sys/mount.h>.

This differential is superseded by this review:
https://reviews.freebsd.org/D40177
which covers some more include self-containment issues in aarch64.

May 20 2023, 4:36 AM
jfree requested review of D40177: Improve header self-containment.
May 20 2023, 4:34 AM

May 9 2023

jfree added a comment to D38459: timerfd: Add native support for Linux's timerfd.

Hey, couple random notes:

  • re: "Developers that wish to support FreeBSD should avoid using timerfd" in the quarterly… :/
    • file descriptor handle based APIs are actually kinda better because composability / fd-passing / capability mode friendliness
      • FreeBSD invented procdesc(4) soo it's strange that we're not yet striving to turn everything into a file descriptor and Linux has us beat on this…
    • also there's no explicit clock selection in EVFILT_TIMER so when we finally add a suspend-aware monotonic clock it would only be possible to explicitly choose suspend-awareness-or-not with timerfd :)
May 9 2023, 5:56 PM · linuxkpi, Linux Emulation
jfree added a comment to D38459: timerfd: Add native support for Linux's timerfd.

Quick update: I'm nearly finished with my school work for the year, so I've had more time to work on this. I've nearly re-engineered the entire patch and I'm passing ~95% of the epoll-shim timerfd testing suite. I should have a new patch out in the next week (hopefully).

May 9 2023, 5:51 PM · linuxkpi, Linux Emulation

Apr 4 2023

jfree added a comment to D38459: timerfd: Add native support for Linux's timerfd.
In D38459#896885, @kib wrote:

What is the destiny of these patches? Why did you not committed them still?

Apr 4 2023, 2:18 PM · linuxkpi, Linux Emulation

Mar 30 2023

jfree added inline comments to D39171: readpassphrase: Add readpassphraseat() function.
Mar 30 2023, 11:23 PM · capsicum
jfree updated the diff for D39171: readpassphrase: Add readpassphraseat() function.

Use AT_STDIN instead of STDIN_FILENO to force read from stdin in readpassphraseat().

Mar 30 2023, 11:15 PM · capsicum

Mar 19 2023

jfree updated the diff for D39009: unzip: Capsicumize it.
  • cdfd is no longer a global variable. Instead, it is passed locally per function call.
  • Open _PATH_TTY, limit its rights, and use readpassphraseat() instead of readpassphrase().
  • Limit stdio instead of just stdin.
Mar 19 2023, 6:01 AM · capsicum
jfree requested review of D39171: readpassphrase: Add readpassphraseat() function.
Mar 19 2023, 4:36 AM · capsicum

Mar 13 2023

jfree added a comment to D39009: unzip: Capsicumize it.

This looks good! Three comments:

  • I don't like that cdfd is a global variable. I'd rather see it plumbed everywhere that we pass a path, even though that's kind of onerous.
Mar 13 2023, 4:53 PM · capsicum

Mar 11 2023

jfree added a comment to D38459: timerfd: Add native support for Linux's timerfd.

BTW, something that will need testing is to verify that the timerfd_gettime and timerfd_settime pseudo syscalls work in capability mode.

Mar 11 2023, 1:33 AM · linuxkpi, Linux Emulation
jfree updated the diff for D39009: unzip: Capsicumize it.

Open current directory, enter capability mode, then use *at() syscalls to extract archive files.

Mar 11 2023, 1:27 AM · capsicum

Mar 9 2023

jfree updated the diff for D39009: unzip: Capsicumize it.

Alter function names and comments for clarity

Mar 9 2023, 10:38 PM · capsicum
jfree requested review of D39009: unzip: Capsicumize it.
Mar 9 2023, 10:24 PM · capsicum

Mar 7 2023

jfree requested review of D38937: .gitignore: Ignore LSP generated .cache.
Mar 7 2023, 1:41 AM
jfree added inline comments to D38459: timerfd: Add native support for Linux's timerfd.
Mar 7 2023, 1:27 AM · linuxkpi, Linux Emulation
jfree updated the diff for D38459: timerfd: Add native support for Linux's timerfd.
  • Remove __FBSDID tag
  • Move SYSINIT to avoid forward declaring timerfd_init()
  • Correctly check for read blocking in FIONREADioctl case
Mar 7 2023, 1:26 AM · linuxkpi, Linux Emulation

Mar 6 2023

jfree updated the diff for D38459: timerfd: Add native support for Linux's timerfd.

Fix minor logic error in FIONREAD ioctl case

Mar 6 2023, 2:21 AM · linuxkpi, Linux Emulation
jfree updated the diff for D38459: timerfd: Add native support for Linux's timerfd.
  • Use SYSINIT() to initialize timerfd ino unit number
  • Use atomic bitwise operations for file flags in FIONBIO ioctl
  • Return 0 when FNONBLOCK is not set in FIONREAD ioctl
Mar 6 2023, 2:13 AM · linuxkpi, Linux Emulation

Mar 2 2023

jfree added inline comments to D38459: timerfd: Add native support for Linux's timerfd.
Mar 2 2023, 6:06 AM · linuxkpi, Linux Emulation
jfree updated the diff for D38459: timerfd: Add native support for Linux's timerfd.
  • Add generic ioctl() support for FIONBIO and FIONREAD
Mar 2 2023, 6:06 AM · linuxkpi, Linux Emulation

Mar 1 2023

jfree added inline comments to D38459: timerfd: Add native support for Linux's timerfd.
Mar 1 2023, 5:45 AM · linuxkpi, Linux Emulation
jfree updated the diff for D38459: timerfd: Add native support for Linux's timerfd.
  • M_TIMERFD malloc type is now static
  • style(9) fixes
  • TFD_GETTIME32 will only be defined on amd64 machines
Mar 1 2023, 5:45 AM · linuxkpi, Linux Emulation

Feb 23 2023

jfree added a comment to D38420: lindebugfs: Update fops_blob_read to operate on a kernel pointer..
In D38420#881831, @bz wrote:

EAFNOTSUP; sorry, I'll try to give it a try within 48 hours. @jfree can you do drm testing?

Feb 23 2023, 10:22 PM
jfree updated the diff for D38459: timerfd: Add native support for Linux's timerfd.
  • Use SV_CURPROC_FLAG() to determine if TFD_GETTIME32 compatibility instructions should be executed.
Feb 23 2023, 7:10 AM · linuxkpi, Linux Emulation
jfree added inline comments to D38459: timerfd: Add native support for Linux's timerfd.
Feb 23 2023, 12:53 AM · linuxkpi, Linux Emulation
jfree added inline comments to D38459: timerfd: Add native support for Linux's timerfd.
Feb 23 2023, 12:29 AM · linuxkpi, Linux Emulation
jfree added inline comments to D38459: timerfd: Add native support for Linux's timerfd.
Feb 23 2023, 12:09 AM · linuxkpi, Linux Emulation

Feb 22 2023

jfree updated the diff for D38459: timerfd: Add native support for Linux's timerfd.
  • Use _IOC_NEWTYPE() for COMPAT32 ioctls().
Feb 22 2023, 11:18 PM · linuxkpi, Linux Emulation
jfree added inline comments to D38459: timerfd: Add native support for Linux's timerfd.
Feb 22 2023, 11:15 PM · linuxkpi, Linux Emulation
jfree added inline comments to D38459: timerfd: Add native support for Linux's timerfd.
Feb 22 2023, 10:55 PM · linuxkpi, Linux Emulation
jfree added inline comments to D38459: timerfd: Add native support for Linux's timerfd.
Feb 22 2023, 8:34 PM · linuxkpi, Linux Emulation
jfree updated the diff for D38459: timerfd: Add native support for Linux's timerfd.
  • Correct COMPAT32 pointer mistakes in struct timerfd_settime_args32
  • tfdino_unr is now global static for unique ino generation
Feb 22 2023, 8:33 PM · linuxkpi, Linux Emulation
jfree updated the diff for D38459: timerfd: Add native support for Linux's timerfd.
  • struct itimerspec32 is now uint32_t in timerfd_settime_args32
  • memset() itimerspec32s with zeros to avoid data leakage
  • Remove DTYPE_TIMERFD checks for tfd fops.
  • Various style(9) fixes
Feb 22 2023, 6:20 AM · linuxkpi, Linux Emulation
jfree added inline comments to D38460: timerfd: Add libc syscall wrappers.
Feb 22 2023, 6:12 AM · linuxkpi, Linux Emulation
jfree added inline comments to D38459: timerfd: Add native support for Linux's timerfd.
Feb 22 2023, 6:09 AM · linuxkpi, Linux Emulation

Feb 20 2023

jfree updated the diff for D38459: timerfd: Add native support for Linux's timerfd.
  • Add tfd_ino field to struct timerfd for inode identification.
Feb 20 2023, 8:05 PM · linuxkpi, Linux Emulation
jfree added inline comments to D38460: timerfd: Add libc syscall wrappers.
Feb 20 2023, 7:36 PM · linuxkpi, Linux Emulation
jfree added inline comments to D38459: timerfd: Add native support for Linux's timerfd.
Feb 20 2023, 6:52 PM · linuxkpi, Linux Emulation
jfree updated the diff for D38460: timerfd: Add libc syscall wrappers.

Pass timerfd_settime_args into TFD_SETTIME ioctl() to minimize kernel entries.

Feb 20 2023, 12:42 AM · linuxkpi, Linux Emulation
jfree updated the diff for D38459: timerfd: Add native support for Linux's timerfd.

Use timerfd_settime_user() to copyin timerfd_settime_args members.

Feb 20 2023, 12:41 AM · linuxkpi, Linux Emulation

Feb 19 2023

jfree added inline comments to D38460: timerfd: Add libc syscall wrappers.
Feb 19 2023, 5:12 AM · linuxkpi, Linux Emulation

Feb 18 2023

jfree added inline comments to D38460: timerfd: Add libc syscall wrappers.
Feb 18 2023, 5:36 PM · linuxkpi, Linux Emulation
jfree updated the diff for D38460: timerfd: Add libc syscall wrappers.

The TFD_SETTIME ioctl() now returns old_time in an effort to avoid race conditions between threads using the same timerfd fd. This reduces the number of kernel traps from 3 to 2 in timerfd_settime().

Feb 18 2023, 6:33 AM · linuxkpi, Linux Emulation
jfree added a comment to D38460: timerfd: Add libc syscall wrappers.

Sorry, a cut-and-paste error made that make no sense. My initial worry was about TFD_GETTIME and TFD_SETTIME, but actually it's both. Consider the following scenario:

thread0       thread1
TFD_GETTIME
TFD_SETFLAGS
              TFD_GETTIME
              TFD_SETFLAGS
              TFD_SETTIME
TFD_SETTIME

I'm not sure how important it is to prevent this problem in practice, but multiple system calls seem to make problems more likely.

Feb 18 2023, 12:36 AM · linuxkpi, Linux Emulation

Feb 17 2023

jfree updated the diff for D38460: timerfd: Add libc syscall wrappers.

Change file license from BSD-2-Clause-FreeBSD to BSD-2-Clause

Feb 17 2023, 11:18 PM · linuxkpi, Linux Emulation
jfree updated the diff for D38459: timerfd: Add native support for Linux's timerfd.
  • Add fo_stat implementation for timerfd
  • ifdef _kernel TFD compat32 ioctl() macros
Feb 17 2023, 11:15 PM · linuxkpi, Linux Emulation
jfree added a comment to D38460: timerfd: Add libc syscall wrappers.

Is the race between TFD_GETTIME and TFD_SETTIME in timerfd_settime acceptable? I wonder if TFD_SETFLAGS should be _IOWR and always return the previous value.

Feb 17 2023, 10:59 PM · linuxkpi, Linux Emulation

Feb 16 2023

jfree updated the diff for D38460: timerfd: Add libc syscall wrappers.
  • Remove unnecessary headers
  • Fix style(9) formatting
Feb 16 2023, 6:39 AM · linuxkpi, Linux Emulation
jfree added inline comments to D38459: timerfd: Add native support for Linux's timerfd.
Feb 16 2023, 6:19 AM · linuxkpi, Linux Emulation