[Ocfs2-devel] [PATCH] ocfs2/dlm: don't access beyond bitmap size

Joel Becker Joel.Becker at oracle.com
Mon Jul 12 11:32:28 PDT 2010


On Wed, Jun 30, 2010 at 08:23:30PM +0800, Wengang Wang wrote:
> dlm->recovery_map is defined as
> 	unsigned long recovery_map[BITS_TO_LONGS(O2NM_MAX_NODES)];
> 
> We should treat O2NM_MAX_NODES as the bit map size in bits.
> This patches fixes a bit operation that takes O2NM_MAX_NODES + 1 as bitmap size.
> 
> Signed-off-by: Wengang Wang <wen.gang.wang at oracle.com>

This patch is now in the 'fixes' branch of ocfs2.git.

Joel

-- 

 The zen have a saying:
 "When you learn how to listen, ANYONE can be your teacher."

Joel Becker
Consulting Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127



More information about the Ocfs2-devel mailing list