Page MenuHomeFreeBSD

Add kern_openatfp(9)
ClosedPublic

Authored by kib on Jan 20 2024, 8:39 PM.
Tags
None
Referenced Files
F157036603: D43529.id133104.diff
Mon, May 18, 1:54 AM
F157036546: D43529.id133106.diff
Mon, May 18, 1:54 AM
F157036539: D43529.id133252.diff
Mon, May 18, 1:54 AM
F157036522: D43529.id133104.diff
Mon, May 18, 1:54 AM
F157036517: D43529.id133105.diff
Mon, May 18, 1:54 AM
F157035265: D43529.diff
Mon, May 18, 1:44 AM
Unknown Object (File)
Fri, May 15, 10:46 AM
Unknown Object (File)
Fri, May 15, 5:56 AM

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib requested review of this revision.Jan 20 2024, 8:39 PM
pjd requested changes to this revision.Jan 20 2024, 9:59 PM

Thank you for working on this!

sys/kern/vfs_syscalls.c
1234

Personally I'd just add 'return (0)' here and eliminate 'else' below, which would reduce the diff.

I also don't see '*fpp = fp' anywhere.

This revision now requires changes to proceed.Jan 20 2024, 9:59 PM
kib marked an inline comment as done.

Do assign *fpp.

This revision is now accepted and ready to land.Jan 20 2024, 10:21 PM
sys/kern/vfs_syscalls.c
1116
1275

Is there a specific scenario you are guarding against here?

kib marked 2 inline comments as done.Jan 22 2024, 10:00 PM
kib added inline comments.
sys/kern/vfs_syscalls.c
1275

Recursing into VFS, which we sort of explicitly enable there with a backdoor into filesystem driver VOP_CREATE/VOP_OPEN.

It is similar how td_fpop is handled for devfs, to avoid unlikely but hard to diagnose surprises.

This revision was automatically updated to reflect the committed changes.
kib marked an inline comment as done.