[Lguest] [patch] u32 pointer nightmare .....

Rusty Russell rusty at rustcorp.com.au
Sat Sep 1 05:17:00 EST 2007


On Thu, 2007-08-30 at 15:28 +0200, Jes Sorensen wrote:
> Oh horror!
> 
> Why, oh why, did I start looking at this right after my lunch?
> 
> This is a starting attempt at apply a clue 2x4 to the horror of lguest's
> user<->kernel API abusing u32s for pointer storage. We should be using
> unsigned long for all data words passed back and forth for two reasons:
> a) pointers are not safe in 32 bit words, b) mis-aligned data words.
> 
> I think I didn't break anything in the process, but your mileage may
> vary!

OK, everyone seems happy.  Applied.

Rusty.




More information about the Lguest mailing list