[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20071020.221257.78359286.davem@davemloft.net>
Date: Sat, 20 Oct 2007 22:12:57 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: drzeus@...eus.cx
Cc: netdev@...r.kernel.org
Subject: Re: net: alignment problem in icmp code
From: Pierre Ossman <drzeus@...eus.cx>
Date: Sat, 20 Oct 2007 23:35:40 +0200
> Structure assignment have to be aligned just like any assignment, and the skb could point to anything. So take the safe route and use a memcpy().
>
> Signed-off-by: Pierre Ossman <drzeus@...eus.cx>
Unfortunately this doesn't work, GCC can inline the memcpy just like
the assignment.
I tried to use a similar trick in the net/xfrm/xfrm_user.c code
but in the end it doesn't work at all.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists