[Ocfs2-devel] [PATCH 1/1] OCFS2: don't leave free'd mle attached to hb events

Wengang Wang wen.gang.wang at oracle.com
Tue Feb 2 04:23:14 PST 2010


Just a reminder:)

On 09-12-07 17:57, Sunil Mushran wrote:
> oops... I read it incorrectly. But that does not sound right.
> Let me think about it.
>
> Wengang Wang wrote:
>> Hi Sunil,
>>
>> Sunil Mushran wrote:
>>> NAK
>>>
>>> wengang wang wrote:
>>>> don't leave free'd mle attached to hb events.
>>>>     in dlm_add_migration_mle() the mle is attched to "heartbeat  
>>>> events" anyway no
>>>> matter there is an existing mle with same name(returns -EEXIST).
>>>> dlm_migrate_lockres() calls dlm_add_migration_mle(). in case the  
>>>> later function
>>>> returning -EEXIST, dlm_migrate_lockres() frees the (new) mle 
>>>> without detaching
>>>> it from "hb events". so that later "hb events" related operations  
>>>> could improperly
>>>> operate against wrong mle objects or against an invalid memory address.
>>>



More information about the Ocfs2-devel mailing list