mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-26 04:54:07 +01:00
MFV r275545:
If zio_checksum_error() returns other than ECKSUM (e.g. EINVAL), it does not fill in the "zio_bad_cksum_t *info" parameter. Caller should not attempt to use it in this case. Illumos issue: 5348 zio_checksum_error() only fills in info if ECKSUM MFC after: 2 weeks
This commit is contained in:
commit
8b2dbf8af3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=275737
@ -2958,7 +2958,8 @@ zio_checksum_verify(zio_t *zio)
|
||||
|
||||
if ((error = zio_checksum_error(zio, &info)) != 0) {
|
||||
zio->io_error = error;
|
||||
if (!(zio->io_flags & ZIO_FLAG_SPECULATIVE)) {
|
||||
if (error == ECKSUM &&
|
||||
!(zio->io_flags & ZIO_FLAG_SPECULATIVE)) {
|
||||
zfs_ereport_start_checksum(zio->io_spa,
|
||||
zio->io_vd, zio, zio->io_offset,
|
||||
zio->io_size, NULL, &info);
|
||||
|
Loading…
Reference in New Issue
Block a user