Re: git: 16f600dc30b7 - main - jaildesc: replace EBADF with EINVAL
- In reply to: James Gritton : "Re: git: 16f600dc30b7 - main - jaildesc: replace EBADF with EINVAL"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 09 Sep 2025 18:54:02 UTC
On 9 Sep 2025, at 19:52, James Gritton <jamie@freebsd.org> wrote: > On 2025-09-09 11:42, Jessica Clarke wrote: >> On 9 Sep 2025, at 19:18, Jamie Gritton <jamie@freebsd.org> wrote: >>> The branch main has been updated by jamie: >>> URL: https://cgit.FreeBSD.org/src/commit/?id=16f600dc30b7bb82429660e540da802a1e3f7449 >>> commit 16f600dc30b7bb82429660e540da802a1e3f7449 >>> Author: Jamie Gritton <jamie@FreeBSD.org> >>> AuthorDate: 2025-09-09 18:13:11 +0000 >>> Commit: Jamie Gritton <jamie@FreeBSD.org> >>> CommitDate: 2025-09-09 18:13:11 +0000 >>> jaildesc: replace EBADF with EINVAL >>> Following fd9e09cb, EBADF is not the suitable error code for a non- >>> jail descriptor passed to jail_set, jail_get, jail_attach_fd, and >>> jail_remove_fd. >>> Reported by: kib >> Will you be MFC’ing this fix, the error checking one and any future >> fixes to the new jaildesc code? The original jaildesc commit made it in >> in time for stable/15 so will be part of 15.0, so either important >> fixes need to be MFC’ed to ensure we release something without bugs or >> it should be reverted in stable/15 and the whole series later MFC’ed >> once deemed ready. Especially given the discussion about file object >> ownership I’m a bit concerned that we have something in stable/15 that >> has a design, rather than implementation, aspect that might be wrong, >> and we really don’t want to be shipping a broken syscall ABI if so. >> Jessica > > Yes, I just forgot to set the MFC tag in the commit. This and some > following commits are all slated for MFC. > > This will include the file permission API concerns, and the missing > jail descriptor kevent support. Those are coming soon (next few days) > but I'm pushing the low-hanging fruit out right now. Great, thank you for the quick confirmation that it was just that, as I hoped, and that the bigger items are being worked on. Jessica