In D46296#1061077, @emil_etsalapatis.com wrote:In D46296#1060950, @val_packett.cool wrote:A couple more notes from testing:
There's some other place where FUSE layer can pick up zero-padded-to-power-of-two things, now with 1024 instead of 4096:
WARNING: FUSE protocol violation for server mounted at /: Returned an embedded NUL from FUSE_READLINK. This warning will not be repeated. Len 1024 0000 62 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 |bash............| 0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| …And trying to just find something in a src tree checkout, there are sporadic errors like
find: ./contrib/llvm-project/llvm/lib/DebugInfo/Symbolize: Bad file descriptor find: ./sys/dev/qat/qat_hw: Invalid argument find: ./sys/dev/qat/qat_api/common/stubs: Invalid argument // etc…that seem completely random, on one invocation there are none, on another there's a couple…
Thank you for the testing! Are you using writethrough or writeback mode for FUSE? Also, what command line arguments are you using for virtiofsd on the host side?
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Feed Advanced Search
Advanced Search
Advanced Search
Sep 19 2024
Sep 19 2024
Sep 5 2024
Sep 5 2024
A couple more notes from testing:
Sep 2 2024
Sep 2 2024
Do we actually need the utility? mount.c says,
Sep 1 2024
Sep 1 2024
Thanks a lot for working on this!
Jun 25 2024
Jun 25 2024
val_packett.cool added reviewers for D45724: virtio_gpu: Avoid panic if a 0x0 mode is provided: Contributor Reviews (src), andrew.
Jun 19 2024
Jun 19 2024
val_packett.cool added inline comments to D45589: caam: Introduce new driver for NXP CAAM controller.
Jun 14 2024
Jun 14 2024
In D41844#1040226, @dfr wrote:In D41844#992483, @val_packett.cool wrote:In D41844#992328, @editor_callfortesting.org wrote:Can we land this without an aggressive MFC and test in CURRENT before the review goes stale?
+1. Will be a lot easier for me to submit my patches then. With those, it almost works well enough for me, the only thing missing is mmap'ed writes.
I'm rebasing this change today and would like to commit it. Would you like me to include your patches? If so, would you prefer them to be folded into the main commit or kept separate as in the tarball you attached?
May 30 2024
May 30 2024
May 27 2024
May 27 2024
May 25 2024
May 25 2024
May 21 2024
May 21 2024
In D44373#1032959, @jonathan wrote:I wonder if, instead of changing the in-kernel model, this might be better addressed through interposition, either using LDPRELOAD-ed wrappers that convert open(2) to openat(2) (relative a pre-set "root" FD) or within libc itself?
Jan 21 2024
Jan 21 2024
In D41844#992328, @editor_callfortesting.org wrote:Can we land this without an aggressive MFC and test in CURRENT before the review goes stale?
Dec 7 2023
Dec 7 2023
Playing with this again, a lot better now!
Oct 13 2023
Oct 13 2023
Ah no, the cache_enter_time thing seems to be unrelated. Maybe it was bad luck that I got it very quickly after porting the patches just doing some ls commands; with pkg fetching packages it has happened both with the patches as they are and without them at all; i.e. no matter what. Not sure what can be done, my attempts to "fix" it (with my nonexistent vfs knowledge) seem to only introduce new panics.
Interesting!! The excl->share thing I was getting seems to happen when I mount /home, but not when I mount /home/val only. (On the host /home/val is a mounted ZFS dataset if that matters… well /home is a dataset too but only has the mountpoint dir.)
Oct 12 2023
Oct 12 2023
Just logging in to a home directory shared with the Linux host, there's a lock order issue:
Sep 23 2023
Sep 23 2023
Aug 24 2023
Aug 24 2023
val_packett.cool abandoned D38351: [RFC/Proposal] Mechanism for in-kernel AT_FDCWD substitution with provided FD for oblivious sandboxing with Capsicum.
Thanks @trasz, I'll experiment with building on top of fchroot. I'll post new proposals as separate revisions and leave this closed as-is for historical reference :)
val_packett.cool added a comment to D39996: fork: do not exclude pid 1's children from creating reapsubtrees.
ping!
Aug 2 2023
Aug 2 2023
val_packett.cool added a comment to D39863: Add atopcase, the Apple HID over SPI input driver [WIP: Someone w/ Hardware Needed].
In D39863#937356, @wulf wrote:Finally, I got MacBook 14,1 for some time and tried to run this driver on it. It required some extra work and result can be found here: https://github.com/wulf7/freebsd/commits/atopcase
Jul 27 2023
Jul 27 2023
val_packett.cool retitled D39980: mk: fix unnecessary library relinking with incremental builds from mk: fix unnecessary library relinking WITH_META_MODE to mk: fix unnecessary library relinking with incremental builds.
val_packett.cool added a comment to D39980: mk: fix unnecessary library relinking with incremental builds.
WITHOUT_CLEAN builds should benefit as well then.. (Not sure why people still use it when META_MODE exists but okay :D)
val_packett.cool added a comment to D39980: mk: fix unnecessary library relinking with incremental builds.
Well, you wouldn't really save any time on a non-incremental build as all the libraries would be rebuilt anyway. The *problem* this solves is specific to META_MODE :)
May 8 2023
May 8 2023
val_packett.cool added a comment to D39996: fork: do not exclude pid 1's children from creating reapsubtrees.
In D39996#911105, @kib wrote:IMO it is micro-overoptimization, not a fix for a bug. It is fine as far as init(8) does not use reaper API.
It if starts using it, then the check needs to go away.
May 7 2023
May 7 2023
val_packett.cool updated the test plan for D39996: fork: do not exclude pid 1's children from creating reapsubtrees.
val_packett.cool requested review of D39996: fork: do not exclude pid 1's children from creating reapsubtrees.
May 5 2023
May 5 2023
val_packett.cool updated the test plan for D39980: mk: fix unnecessary library relinking with incremental builds.
val_packett.cool requested review of D39980: mk: fix unnecessary library relinking with incremental builds.
Apr 28 2023
Apr 28 2023
val_packett.cool added a comment to D39863: Add atopcase, the Apple HID over SPI input driver [WIP: Someone w/ Hardware Needed].
In D39863#907564, @wulf wrote:The sibling should be deleted and recreated as child of spibus to get proper ivars like iicbus does: https://github.com/freebsd/freebsd-src/blob/main/sys/dev/iicbus/acpi_iicbus.c#L459
And I wonder, how it produces interrupts as intel_spi misses some resource handling bus methods
Apr 20 2023
Apr 20 2023
Hey, couple random notes:
Apr 15 2023
Apr 15 2023
val_packett.cool updated the diff for D39585: procctl: add state flags to PROC_REAP_GETPIDS reports.
Yeah, I guess it would make sense to only report "exiting" when not yet exited.
val_packett.cool retitled D39585: procctl: add state flags to PROC_REAP_GETPIDS reports from procctl: add a REAPER_PIDINFO_ZOMBIE flag to PROC_REAP_GETPIDS reports to procctl: add state flags to PROC_REAP_GETPIDS reports.
val_packett.cool updated the diff for D39585: procctl: add state flags to PROC_REAP_GETPIDS reports.
BTW, is the only difference between P_WEXIT and zombie state is that P_WEXIT gets set earlier in the process?
Apr 13 2023
Apr 13 2023
val_packett.cool added a comment to D38351: [RFC/Proposal] Mechanism for in-kernel AT_FDCWD substitution with provided FD for oblivious sandboxing with Capsicum.
In D38351#899653, @trasz wrote:I wonder if, instead of "fake root", you made it so that it uses the actual root vnode for the process, the one that's changed by chroot(2)? That would require implementing fchroot(2), like NetBSD did, and that's assuming you're ok with the NO_NEW_PRIVS flag set, ie the SUID bits being ignored, because otherwise chroot(2)/fchroot(2) would require root privileges. The cap_enter() would then have to set the process' root vp to NULL, or to some dead vnode, when called.
Mar 30 2023
Mar 30 2023
Yeah, I solved the same problem in drm initially by writing a dummy driver too, but now it's been replaced by FB_FLAG_NOWRITE.
This is how we're doing it, it's a bit annoying that we have to check the driver and reach into its softc, ideally flags like that would be a more outer-level thing somehow (?)
Mar 27 2023
Mar 27 2023
val_packett.cool added a comment to D39270: Redefine CLOCK_BOOTTIME to alias CLOCK_MONOTONIC, not CLOCK_UPTIME.
Found some interesting discussion from almost a decade ago: https://lists.freebsd.org/pipermail/freebsd-arch/2013-August/014707.html confirming that MONOTONIC should include suspended time:
val_packett.cool added a comment to D39270: Redefine CLOCK_BOOTTIME to alias CLOCK_MONOTONIC, not CLOCK_UPTIME.
In D39270#894574, @imp wrote:How that aligns with Linux and other OSes is going to be messy, I fear.
Mar 26 2023
Mar 26 2023
val_packett.cool added a comment to D39270: Redefine CLOCK_BOOTTIME to alias CLOCK_MONOTONIC, not CLOCK_UPTIME.
Oh, what's also pretty neat about the "MONOTONIC includes suspend like OpenBSD" choice is that software doing some security timeouts like sudo does would default to the secure behavior (not prolonging timeouts across suspends) even without doing anything for suspend-awareness / while being just POSIX without any OS-specific code!! :)
val_packett.cool added a comment to D39270: Redefine CLOCK_BOOTTIME to alias CLOCK_MONOTONIC, not CLOCK_UPTIME.
In D39270#894014, @imp wrote:we specifically aligned with Linux here because more software is written for linux and we had a lot of patches in the ports tree to emulate the linux behavior prior to my changes.
Mar 25 2023
Mar 25 2023
Mar 2 2023
Mar 2 2023
val_packett.cool added a comment to D21612: acpi_cros_tbmc: New driver for Chromebook Tablet Mode Switch.
In D21612#884481, @dmitryluhtionov_gmail.com wrote:
val_packett.cool added a comment to D21746: acpi_cros_kblt: New driver for Chromebook keyboard backlight control.
In D21746#884483, @dmitryluhtionov_gmail.com wrote:Can this driver generate org.freedesktop.UPower.KbdBacklight events ?
Feb 22 2023
Feb 22 2023
val_packett.cool added a comment to D28704: md: check uid when non-root users detach/resize the mds.
Oops… cr_cansee actually would only deny this with security.bsd.see_other_uids=0 btw. Is there a "fs write" style check anywhere in the common code?
val_packett.cool added inline comments to D28704: md: check uid when non-root users detach/resize the mds.
Feb 20 2023
Feb 20 2023
Though, hm, various AT_RESOLVE_BENEATH documentation does collapse it all into one item:
Yeah, makes sense, let's try like this
Feb 19 2023
Feb 19 2023
Hopefully more clear this way?
val_packett.cool added reviewers for D38675: open.2: describe O_RESOLVE_BENEATH errors correctly: manpages, Contributor Reviews (src), kib.
Feb 12 2023
Feb 12 2023
Feb 10 2023
Feb 10 2023
In D38497#876077, @jfree wrote:I couldn't figure out a good way to generalize the falloc_noinstall/finstall/fdrop calls since the finstall needs fflags that are unique per special fd. I could move falloc_noinstall and fdrop into sys___specialfd(), I believe.
Wait wait wait… if we decided not to put gettime/settime here, to keep it as an interface only for creating various kinds of descriptors, why are we still going to duplicate the falloc_noinstall/finstall/fdrop dance across the individual functions for each descriptor kind?
In D38459#875880, @kib wrote:I suggest to add ioctl's to perform the ops on the descriptor, instead of filling the syscall table with more one-purpose entries.
Feb 9 2023
Feb 9 2023
In D38459#875436, @markj wrote:One wrinkle that I can see is that timerfd lets you specify a clock ID, but this implementation doesn't really do anything with it...
just implement these to as syscalls leaving __specialfd for descriptor creation
val_packett.cool added inline comments to D38445: tzcode: Resurrect tzsetwall(3) with a deprecation warning..
sure, D38445 LGTM
Feb 7 2023
Feb 7 2023
ok, let's go with D38392
Feb 6 2023
Feb 6 2023
Remove $FreeBSD$ tags, add header include to the .c file to fix missing-prototype
val_packett.cool updated the summary of D38408: xlocale: garbage collect references to strtoq_l/strtouq_l.
val_packett.cool requested review of D38408: xlocale: garbage collect references to strtoq_l/strtouq_l.
val_packett.cool added a comment to D28703: Allow sysctl hw.machine/hw.machine_arch in capability mode.
In D28703#873145, @emaste wrote:Do you have a public Git branch somewhere that I can fetch your changes from?
val_packett.cool retitled D38389: Fix building the ia32 vDSO with --no-undefined-version from Fix building the ia32 vDSO with LLVM binutils to Fix building the ia32 vDSO with --no-undefined-version.
btw, what toggles the error is --(no-)undefined-version, no became the default. It seems difficult to make *everything* work with --no-undefined-version, but this was the only thing in the kernel.
Rebase after D38222
Yes, it has failed. I wouldn't be that bothered with a little warning :)
Feb 5 2023
Feb 5 2023
Rebased. Ping!