]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFV r302642:
authormav <mav@FreeBSD.org>
Thu, 1 Sep 2016 13:14:31 +0000 (13:14 +0000)
committermav <mav@FreeBSD.org>
Thu, 1 Sep 2016 13:14:31 +0000 (13:14 +0000)
commit56917e1ad805aeb09c580cba249d7773f92c0db6
treeabc4a7b447bd855e0095eab1d4d5bf5b3b735480
parent879fd44e1036299c818641e04cedf3877c8b1999
MFV r302642:
6876 Stack corruption after importing a pool with a too-long name

illumos/illumos-gate@c971037baa5d64dfecf6d87ed602fc3116ebec41
https://github.com/illumos/illumos-gate/commit/c971037baa5d64dfecf6d87ed602fc3116ebec41

https://www.illumos.org/issues/6876
  Calling dsl_dataset_name on a dataset with a 256 byte buffer is asking for
  trouble. We should check every dataset on import, using a 1024 byte buffer and
  checking each time to see if the dataset's new name is longer than 256 bytes.

Reviewed by: Prakash Surya <prakash.surya@delphix.com>
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
Author: Paul Dagnelie <pcd@delphix.com>
cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c