opnsense-src/sys/cddl
Alexander Motin 5008399c14 Fix use-after-free in case of L2ARC prefetch failure.
In case L2ARC read failed, l2arc_read_done() creates _different_ ZIO
to read data from the original storage device.  Unfortunately pointer
to the failed ZIO remains in hdr->b_l1hdr.b_acb->acb_zio_head, and if
some other read try to bump the ZIO priority, it will crash.

The problem is reproducible by corrupting L2ARC content and reading
some data with prefetch if l2arc_noprefetch tunable is changed to 0.
With the default setting the issue is probably not reproducible now.

MFC after:	2 weeks
Sponsored by:	iXsystems, Inc.
2019-11-28 18:28:35 +00:00
..
boot/zfs loader: factor out label and uberblock load from vdev_probe, add MMP checks 2019-11-03 21:19:52 +00:00
compat/opensolaris fix up r354333, make zfsproc visible to dtrace, rename to system_proc 2019-11-05 14:34:59 +00:00
contrib/opensolaris Fix use-after-free in case of L2ARC prefetch failure. 2019-11-28 18:28:35 +00:00
dev dtrace: 64-bits registers support 2019-10-04 16:17:00 +00:00