git: 6ce8e35cead4 - stable/13 - libbe: fix be_mounted_at() with props after bootonce
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 06 Apr 2022 03:41:09 UTC
The branch stable/13 has been updated by kevans:
URL: https://cgit.FreeBSD.org/src/commit/?id=6ce8e35cead46048d9ae3c1dabafe1ef4ed26f97
commit 6ce8e35cead46048d9ae3c1dabafe1ef4ed26f97
Author: Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2022-03-31 19:18:14 +0000
Commit: Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2022-04-06 03:37:03 +0000
libbe: fix be_mounted_at() with props after bootonce
propinfo.bootonce was filled with garbage, leading to a segfault later
during prop building. Initialize it to NULL.
(cherry picked from commit d155d8e138563c0b39c658684e6a4fe6e2e36f8a)
---
lib/libbe/be_access.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/libbe/be_access.c b/lib/libbe/be_access.c
index 9f7ad32599ac..ec966bc85fb7 100644
--- a/lib/libbe/be_access.c
+++ b/lib/libbe/be_access.c
@@ -219,6 +219,7 @@ be_mounted_at(libbe_handle_t *lbh, const char *path, nvlist_t *details)
propinfo.lbh = lbh;
propinfo.list = details;
propinfo.single_object = false;
+ propinfo.bootonce = NULL;
prop_list_builder_cb(root_hdl, &propinfo);
zfs_close(root_hdl);
}