freebsd-src/sys/cddl
Andriy Gapon b9827c007a Revert "dtrace: make 'ring' and 'fill' policies imply 'noswitch' flag"
This reverts commit e92491d95f.

The general idea looked good to me.  In particular, it allowed to save
some memory and avoid memory allocation failures when a large buffer
size was requested along with ring and fill policies.

But I didn't take into account that the second, supposedly unused
buffer, was actually used as the scratch buffer.  The scratch buffer is
used as a temporary space for DTrace subroutines like copyin, copyinstr,
and alloca.

I think that the change can be fixed by allocating a separate smaller
buffer for the scratch buffer, but that fix would require more work than
I am able to do now.  Hence the revert.

Reported by:	Domagoj Stolfa
Diagnosed by:	Domagoj Stolfa, markj
MFC after:	immediately
2024-04-21 15:17:08 +03:00
..
boot/zfs boot/zfs: Add some fields to dsl_dir_phys_t 2023-10-23 11:12:14 -04:00
compat/opensolaris Abstract UIO allocation and deallocation. 2024-02-10 11:38:04 -05:00
contrib/opensolaris Revert "dtrace: make 'ring' and 'fill' policies imply 'noswitch' flag" 2024-04-21 15:17:08 +03:00
dev arm64: Use void pointers for arguments to arm64_get_writable_addr 2024-03-15 10:10:24 -07:00