* Linux kernel 2.6.34.7 lvm error
@ 2010-10-03 9:56 chich21
2010-10-04 8:46 ` Zdenek Kabelac
0 siblings, 1 reply; 4+ messages in thread
From: chich21 @ 2010-10-03 9:56 UTC (permalink / raw)
To: linux-kernel
With Linux kernel 2.6.34.7 from www.kernel.org the following error
occurs.
Issuing this command produces error.
vgchange -ay
outputs:
Internal error: Maps lock 14317216 < unlock 14321312
vgchange is part of lvm-tools.
This doesn't happen with kernel 2.6.34 or 2.6.34.1 from www.kernel.org.
Is there a patch for 2.6.34.x series coming for this error. As there is
one for 2.6.35.x series.
Please CC email me related posts.
Veera,
chich21@mail.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Linux kernel 2.6.34.7 lvm error
2010-10-03 9:56 Linux kernel 2.6.34.7 lvm error chich21
@ 2010-10-04 8:46 ` Zdenek Kabelac
2010-10-04 13:07 ` Zdenek Kabelac
0 siblings, 1 reply; 4+ messages in thread
From: Zdenek Kabelac @ 2010-10-04 8:46 UTC (permalink / raw)
To: chich21; +Cc: linux-kernel
Dne 3.10.2010 11:56, chich21@mail.com napsal(a):
> With Linux kernel 2.6.34.7 from www.kernel.org the following error occurs.
>
> Issuing this command produces error.
>
> vgchange -ay
>
> outputs:
> Internal error: Maps lock 14317216 < unlock 14321312
>
> vgchange is part of lvm-tools.
>
> This doesn't happen with kernel 2.6.34 or 2.6.34.1 from www.kernel.org.
>
> Is there a patch for 2.6.34.x series coming for this error. As there is one
> for 2.6.35.x series.
>
> Please CC email me related posts.
Bug is related to stack guard fix - kernel 2.6.36-rc4 has this problem fixed.
Bug is present in 2.6.36-rc3 - so something between them fixes the problem.
It looks like the [stack] mapping loses 1 page after each mlock/munlock cycle.
I'm probably going to play bisect game to find out missing fix.
https://bugzilla.redhat.com/show_bug.cgi?id=638525
Meanwhile lvm tools were also updated to read whole mapping table before
locking pages to avoid reading some mapping lines twice.
Zdenek.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Linux kernel 2.6.34.7 lvm error
2010-10-04 8:46 ` Zdenek Kabelac
@ 2010-10-04 13:07 ` Zdenek Kabelac
2010-10-06 13:29 ` Stefan Bader
0 siblings, 1 reply; 4+ messages in thread
From: Zdenek Kabelac @ 2010-10-04 13:07 UTC (permalink / raw)
To: chich21; +Cc: linux-kernel, stable
Dne 4.10.2010 10:46, Zdenek Kabelac napsal(a):
> Dne 3.10.2010 11:56, chich21@mail.com napsal(a):
>> With Linux kernel 2.6.34.7 from www.kernel.org the following error occurs.
>>
>> Issuing this command produces error.
>>
>> vgchange -ay
>>
>> outputs:
>> Internal error: Maps lock 14317216 < unlock 14321312
>>
>> vgchange is part of lvm-tools.
>>
>> This doesn't happen with kernel 2.6.34 or 2.6.34.1 from www.kernel.org.
>>
>> Is there a patch for 2.6.34.x series coming for this error. As there is one
>> for 2.6.35.x series.
>>
>> Please CC email me related posts.
>
>
> Bug is related to stack guard fix - kernel 2.6.36-rc4 has this problem fixed.
> Bug is present in 2.6.36-rc3 - so something between them fixes the problem.
>
> It looks like the [stack] mapping loses 1 page after each mlock/munlock cycle.
> I'm probably going to play bisect game to find out missing fix.
>
> https://bugzilla.redhat.com/show_bug.cgi?id=638525
>
So - after bisecting - it seems that commit:
39aa3cb3e8250db9188a6f1e3fb62ffa1a717678
"mm: Move vma_stack_continue into mm.h" by Stefan
had a nice 'bug-fixing' side effect which have not been mentioned in its
description - it fixes misbehaving of mlock/munlock [stack] mapping size.
So I assume this commit should be backported to stable kernels as well when
there is stack-guard patch already added.
Cc: stable@
Zdenek
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Linux kernel 2.6.34.7 lvm error
2010-10-04 13:07 ` Zdenek Kabelac
@ 2010-10-06 13:29 ` Stefan Bader
0 siblings, 0 replies; 4+ messages in thread
From: Stefan Bader @ 2010-10-06 13:29 UTC (permalink / raw)
To: Zdenek Kabelac; +Cc: chich21, linux-kernel, stable
On 10/04/2010 02:07 PM, Zdenek Kabelac wrote:
> Dne 4.10.2010 10:46, Zdenek Kabelac napsal(a):
>> Dne 3.10.2010 11:56, chich21@mail.com napsal(a):
>>> With Linux kernel 2.6.34.7 from www.kernel.org the following error occurs.
>>>
>>> Issuing this command produces error.
>>>
>>> vgchange -ay
>>>
>>> outputs:
>>> Internal error: Maps lock 14317216 < unlock 14321312
>>>
>>> vgchange is part of lvm-tools.
>>>
>>> This doesn't happen with kernel 2.6.34 or 2.6.34.1 from www.kernel.org.
>>>
>>> Is there a patch for 2.6.34.x series coming for this error. As there is one
>>> for 2.6.35.x series.
>>>
>>> Please CC email me related posts.
>>
>>
>> Bug is related to stack guard fix - kernel 2.6.36-rc4 has this problem fixed.
>> Bug is present in 2.6.36-rc3 - so something between them fixes the problem.
>>
>> It looks like the [stack] mapping loses 1 page after each mlock/munlock cycle.
>> I'm probably going to play bisect game to find out missing fix.
>>
>> https://bugzilla.redhat.com/show_bug.cgi?id=638525
>>
>
> So - after bisecting - it seems that commit:
>
> 39aa3cb3e8250db9188a6f1e3fb62ffa1a717678
> "mm: Move vma_stack_continue into mm.h" by Stefan
>
> had a nice 'bug-fixing' side effect which have not been mentioned in its
> description - it fixes misbehaving of mlock/munlock [stack] mapping size.
>
I have been asking for that to get picked up for stable (though no response,
yet). Unfortunately the better description (and the cc stable) got lost when
Linus merged two patches together).
The problem also might be related to the LVM version used (I could not see the
message with LVM2.02.54 with a kernel that still shows the gaps on the split
stack vma). But it definitely confuses anything that verifies the output of
/proc/<pid>/maps.
-Stefan
> So I assume this commit should be backported to stable kernels as well when
> there is stack-guard patch already added.
>
> Cc: stable@
>
> Zdenek
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-10-06 13:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-03 9:56 Linux kernel 2.6.34.7 lvm error chich21
2010-10-04 8:46 ` Zdenek Kabelac
2010-10-04 13:07 ` Zdenek Kabelac
2010-10-06 13:29 ` Stefan Bader
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox