Re: build_skb() and data corruption

2014-01-14 Thread Arnd Bergmann
On Tuesday 14 January 2014, Jonas Jensen wrote: > Thanks for the replies, you led me to a new solution, > > > I now think build_skb() is not the right choice, my motivation for > using it in the first place, that I thought it meant getting away with > not copying memory. > > build_skb() is repla

Re: build_skb() and data corruption

2014-01-14 Thread Jonas Jensen
Thanks for the replies, you led me to a new solution, I now think build_skb() is not the right choice, my motivation for using it in the first place, that I thought it meant getting away with not copying memory. build_skb() is replaced by netdev_alloc_skb_ip_align() and memcpy() (derived from dr

Re: build_skb() and data corruption

2014-01-13 Thread Ben Hutchings
On Mon, 2014-01-13 at 12:47 +0100, Jonas Jensen wrote: > Please help, > > I think I see memory corruption with a driver recently added to linux-next. > > The following error occur downloading a large file with wget (or > ncftp): "read error: Bad address" > wget exits and leaves the file unfinishe

Re: build_skb() and data corruption

2014-01-13 Thread Arnd Bergmann
On Monday 13 January 2014, Jonas Jensen wrote: > Please help, > > I think I see memory corruption with a driver recently added to linux-next. > > The following error occur downloading a large file with wget (or > ncftp): "read error: Bad address" > wget exits and leaves the file unfinished. > >

build_skb() and data corruption

2014-01-13 Thread Jonas Jensen
Please help, I think I see memory corruption with a driver recently added to linux-next. The following error occur downloading a large file with wget (or ncftp): "read error: Bad address" wget exits and leaves the file unfinished. The error goes away when build_skb() is patched out, in this case