Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid panic when attempting to raw send without large_blocks #12434

Closed
wants to merge 1 commit into from

Conversation

gamanakis
Copy link
Contributor

@gamanakis gamanakis commented Jul 26, 2021

Motivation and Context

Closes #12275.

Description

Raw sending without the feature large_blocks being active is
unsupported and leads to a NULL pointer dereference. Handle this
gracefully by printing an error.

How Has This Been Tested?

See replicator in #12275.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

Raw sending without the feature large_blocks being active is
unsupported and leads to a NULL pointer dereference. Handle this
gracefully by printing an error.

Signed-off-by: George Amanakis <[email protected]>
@gamanakis gamanakis marked this pull request as draft July 26, 2021 22:17
@gamanakis gamanakis closed this Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Linux 'kernel NULL pointer dereference' on zfs send of a specific encrypted snapshot
1 participant