[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200901202350.23231.oliver@neukum.org>
Date: Tue, 20 Jan 2009 23:50:21 +0100
From: Oliver Neukum <oliver@...kum.org>
To: Arnd Bergmann <arnd@...db.de>
Cc: "Christian Eggers" <ceggers@....de>, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org, David Miller <davem@...emloft.net>
Subject: Re: [PATCH] usb/mcs7830: Don't use buffers from stack for USB transfers
Am Tuesday 20 January 2009 23:45:47 schrieb Arnd Bergmann:
> Have you observed problems with this, or just suspected trouble?
>
> When I wrote this code, I looked at other code doing the same
> and assumed it was ok, because usb_control_msg waits for the
> DMA to complete before returning.
>
> Is the problem only on systems that have noncoherent DMA, or
> something else?
That's not enough. Tasks can leave pointers to variables on the
stack to other tasks. You must under no circumstances do DMA
on the stack if the driver may run on system that have noncoherent
DMA.
Regards
Oliver
--
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