[PATCH] 3512 rounding discrepancy in sa_find_sizes() 3513 mismatch between SA header size and layout Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Boris Protopopov <boris.protopopov@nexenta.com> Approved by: Dan McDonald <danmcd@nexenta.com>
Verbose print before the point we panic on
Attempt to detect empty SA and skip them

It would seem that in sa_build_layouts, we end up at:

            printf("ZFS: NULL SA: SA_COPY_DATA(%p, %p, %p, %u) i=%u\n",
                   attr_desc[i].sa_data_func, attr_desc[i].sa_data,
                   data_start, length, i);
            SA_COPY_DATA(attr_desc[i].sa_data_func, attr_desc[i].sa_data,
                         data_start, length);

ZFS: SA_COPY_DATA(0, 0xffffff8204d7cb70, 0xffffff82025d4e70, 16) i=10
ZFS: SA_COPY_DATA(0, 0xffffff8204d7cb80, 0xffffff82025d4e80, 8) i=11
ZFS: SA_COPY_DATA(0, 0, 0xffffff82025d4e88, 16) i=12

So clearly attr_desc[12].sa_data is NULL.
Merge branch 'issue257' into invariant