bin/149215: [panic] gpart(8): Delete linux's slice via Gpart - get kernel panic

Andrey V. Elsukov bu7cher at yandex.ru
Tue Aug 17 15:20:03 UTC 2010


The following reply was made to PR bin/149215; it has been noted by GNATS.

From: "Andrey V. Elsukov" <bu7cher at yandex.ru>
To: bug-followup at FreeBSD.org, universite at ukr.net
Cc: Andrew Thompson <thompsa at FreeBSD.org>
Subject: Re: bin/149215: [panic] gpart(8): Delete linux's slice via Gpart
 - get kernel panic
Date: Tue, 17 Aug 2010 19:12:46 +0400

 Hi,
 
 As I see from `gpart show ad4` output and from screenshot ad4 disk
 was part of software raid (partition type '253') and also it was
 part of Linux LVM. Also, last messages before panic are:
 GEOM_LINUX_LVM: Disk ad4s3 removed from pv0.
 GEOM_LINUX_LVM:
 
 I think panic occurs in this code from g_linux_lvm.c:
 
 g_llvm_remove_disk(struct g_llvm_vg *vg, struct g_consumer *cp)
 ....
 
 if (found) {
 	G_LLVM_DEBUG(0, "Device %s removed.",
             lv->lv_gprov->name);
 ^^^^^^^^^^^^^^^^^^^^^^^^ - NULL-pointer dereference here
 	g_orphan_provider(lv->lv_gprov, ENXIO);
 	lv->lv_gprov = NULL;
 }
 
 -- 
 WBR, Andrey V. Elsukov


More information about the freebsd-geom mailing list