FreeBSD Bugzilla – Attachment 174051 Details for
Bug 212137
NULL pointer dereference in the boot zfs code
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to work around the issue
0001-Work-around-a-NULL-pointer-dereference-in-the-zfs-bo.patch (text/plain), 802 bytes, created by
Andrew Turner
on 2016-08-25 11:22:00 UTC
(
hide
)
Description:
Patch to work around the issue
Filename:
MIME Type:
Creator:
Andrew Turner
Created:
2016-08-25 11:22:00 UTC
Size:
802 bytes
patch
obsolete
>From 04494712f67ca6b8191c98f2f2d2e144dbde43b2 Mon Sep 17 00:00:00 2001 >From: Andrew Turner <andrew@fubar.geek.nz> >Date: Thu, 25 Aug 2016 11:18:38 +0000 >Subject: [PATCH] Work around a NULL pointer dereference in the zfs boot code > >--- > sys/boot/zfs/zfsimpl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/sys/boot/zfs/zfsimpl.c b/sys/boot/zfs/zfsimpl.c >index 85aeb76..1f150a1 100644 >--- a/sys/boot/zfs/zfsimpl.c >+++ b/sys/boot/zfs/zfsimpl.c >@@ -425,7 +425,7 @@ vdev_read_phys(vdev_t *vdev, const blkptr_t *bp, void *buf, > rc = vdev->v_phys_read(vdev, vdev->v_read_priv, offset, buf, psize); > if (rc) > return (rc); >- if (bp && zio_checksum_verify(vdev->spa, bp, buf)) >+ if (vdev->spa && bp && zio_checksum_verify(vdev->spa, bp, buf)) > return (EIO); > > return (0); >-- >2.9.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 212137
: 174051