Bug: misaligned memory access in cmdlinepart.c

Timofei V. Bondarenko timm at ipi.ac.ru
Mon Apr 18 11:30:42 EDT 2005


in mtdpart_setup_real()/newpart() command line parser
'this_mtd' structure can be misaligned,
it may cause exception on some kind of CPU.

That happened because the structure got mixed with partition names 
allocated in a variable length area.

I've attached a simle patch, not very elegant though.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: alignnewpart.diff
Url: http://lists.infradead.org/pipermail/linux-mtd/attachments/20050418/588cebda/attachment.pl 

More information about the linux-mtd mailing list