Bug 28491

Summary: kernel oops using lvm
Product: [Retired] Red Hat Linux Reporter: David Lawrence <dkl>
Component: kernelAssignee: Pete Zaitcev <zaitcev>
Status: CLOSED ERRATA QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-04-17 22:18:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
kernel oops while running vgrename none

Description Derek Tattersall 2001-02-20 19:44:17 UTC
The output from ksymoops is attached

Comment 1 Derek Tattersall 2001-02-20 19:45:05 UTC
Created attachment 10560 [details]
kernel oops while running vgrename

Comment 2 Michael K. Johnson 2001-03-01 16:00:39 UTC
Choosing Pete at random to look into this...

Comment 3 Pete Zaitcev 2001-03-06 20:18:57 UTC
How did this happen? I am curious if the requestor run 
vgrename(8) or anything else has happened.
Pity that dmesg output was not saved.

Is the problem reproducible?


Comment 4 Pete Zaitcev 2001-03-07 20:05:59 UTC
--- linux-2.4.2-0.1.16/drivers/md/lvm.c	Wed Feb 28 13:04:36 2001
+++ linux-2.4.2-0.1.16-p3/drivers/md/lvm.c	Wed Mar  7 11:59:42 2001
@@ -1979,6 +1979,8 @@
 	lv_t *lv_ptr = NULL;
 	pv_t *pv_ptr = NULL;
 
+	if (vg_ptr == NULL) return -ENXIO;
+
 	if (copy_from_user(vg_name, arg, sizeof(vg_name)) != 0)
 		return -EFAULT;
 

A silly omission. LOL


Comment 5 Pete Zaitcev 2001-03-07 20:36:52 UTC
We are about to ship and LVM turned to be somewhat flakey.
The typo that I fixed for this bug is not the only one.
So, resolving into DEFERRED, even though this particular
fix is easy.

I'll see that mainstream kernel picks the fix. Won't help
LVM though until Heinz gets his act together.


Comment 6 Pete Zaitcev 2001-04-17 22:18:09 UTC
We went to 2.4.3-ac8 today and it has the fix in it.
I'll reopen and re-close with "Errata".