From d155d8e138563c0b39c658684e6a4fe6e2e36f8a Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Thu, 31 Mar 2022 14:18:14 -0500 Subject: [PATCH] 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. MFC after: 3 days --- 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 74059a0a5693..a591a4f61d02 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); }