Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dirkmueller:acdc:as_python3_module
lvm2.30299
bug-1191019_vgextend-check-missing-device-durin...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bug-1191019_vgextend-check-missing-device-during-block-size-chec.patch of Package lvm2.30299
From 98d420200e16b450b6b7e33b83bdf36a59196d6d Mon Sep 17 00:00:00 2001 From: David Teigland <teigland@redhat.com> Date: Tue, 3 Sep 2019 10:07:56 -0500 Subject: [PATCH] vgextend: check missing device during block size check Checking the block size when a device is missing could trigger a segfault. --- lib/metadata/metadata.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c index 6d21ff99cc8e..61906cc4b352 100644 --- a/lib/metadata/metadata.c +++ b/lib/metadata/metadata.c @@ -769,6 +769,9 @@ int vg_extend_each_pv(struct volume_group *vg, struct pvcreate_params *pp) logical_block_size = 0; physical_block_size = 0; + if (!pvl->pv->dev) + continue; + if (!dev_get_direct_block_sizes(pvl->pv->dev, &physical_block_size, &logical_block_size)) continue; -- 1.8.3.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor