Home | History | Annotate | Download | only in nvpair
History log of /src/external/cddl/osnet/dist/common/nvpair/nvpair.c
RevisionDateAuthorComments
 1.7  10-Jan-2026  nia nvpair: sprinkle #include <sys/endian.h>
 1.6  21-May-2021  hannken Replace the Solaris style endian check (exactly one of
_LITTLE_ENDIAN or _BIG_ENDIAN is defined) with standard check
"#if BYTE_ORDER == BIG_ENDIAN" like we do it elseware.

Should fix PR 56191 (ZFS tests fail on sparc64)
 1.5  02-Mar-2020  kamil branches: 1.5.2;
Fix undefined behavior in misaligned pointer usage

Detected by UBSan and already fixed upstream.

Cherry-pick:
From aa0218d6a12814fac50b287214f9f3b0b99e11b1 Mon Sep 17 00:00:00 2001
From: Brian Behlendorf <behlendorf1@llnl.gov>
Date: Tue, 7 Jan 2014 23:24:37 +0100
Subject: [PATCH] Fix nvlist 'Bus Error' for Sparc

The mis-aligned memory accesses in nvpair_native_embedded() and
nvpair_native_embedded_array() will cause a 'Bus Error' for
architectures such as Sparc which not fully byte addressible.
To avoid this issue care is taken to avoid dereferencing the
potentially mis-aligned packed nvlist_t.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ned Bass <bass6@llnl.gov>
Signed-off-by: marku89 <mar42@kola.li>
Issue #1700
 1.4  28-May-2018  chs branches: 1.4.2;
merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().
 1.3  10-Apr-2015  riastradh branches: 1.3.14;
Initialize variables. Don't bother supporting nv doubles.
 1.2  03-Jan-2013  dsl Compilation fixes:
- include sys/ioctl.h
- NULL isn't an int constant
- %llf isn't a printf format
 1.1  07-Aug-2009  haad branches: 1.1.1;
Initial revision
 1.1.1.3  28-May-2018  chs import new CDDL dtrace and ZFS code from FreeBSD svn r315983.
 1.1.1.2  27-Feb-2010  haad branches: 1.1.1.2.6; 1.1.1.2.12;
Import new Opensolaris sources for zfs/dtrace.

Opensolaris mercurial changeset: 11751:58c0c8f4305f
 1.1.1.1  07-Aug-2009  haad Import Opensolaris source code used with zfs port. Zfs code si from date
200811.
 1.1.1.2.12.1  25-Feb-2013  tls resync with head
 1.1.1.2.6.1  23-Jan-2013  yamt sync with head
 1.3.14.1  25-Jun-2018  pgoyette Sync with HEAD
 1.4.2.1  08-Apr-2020  martin Merge changes from current as of 20200406
 1.5.2.1  31-May-2021  cjep sync with head

RSS XML Feed