[2.3.2] Revert "zinject: count matches and injections for each handler" #17137
+36
−233
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
2.3.1 introduced a userspace/kernel ABI break that I missed. As a result, 2.3.1 userspace tools are incompatible with <2.3.1 kernel modules for many tasks.
After I updated userspace to 2.3.1,
zfs send
started returningEINVAL
, andzfs events
returnedEBADF
. I rebooted and didn't think much of it; my local machine is weird sometimes.Later I noticed why: the "match counts" change adds a couple of fields to
zinject_record_t
. There's one of those embedded in the middle ofzfs_cmd_t
.zc_cleanup_fd
and some of the send params both occur after that field. The kernel and userspace were running on different layouts, so couldn't find what they needed.I don't know if you want to revert the change and cut a 2.3.2 release. If you do, this is the revert. It might be unnecessary though. depends how long before folks can reboot.
(also, an apology from me: feels like something I should have noticed. I'm gonna go put some compile time size checks on a few things to hopefully help prevent this next time).
Description
Adding fields to
zinject_record_t
unexpectedly extendedzfs_cmd_t
, preventing some things working properly with 2.3.1 userspace tools against 2.3.0 kernel module.This reverts commit fabdd50.
How Has This Been Tested?
Compile checked only.
Types of changes
Checklist:
Signed-off-by
.