lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <38b2ab8a0806300703j7c0f0567w4cf1730fbe375c00@mail.gmail.com>
Date:	Mon, 30 Jun 2008 16:03:52 +0200
From:	"Francis Moreau" <francis.moro@...il.com>
To:	"Oliver Neukum" <oliver@...kum.org>
Cc:	"David Brownell" <david-b@...bell.net>, linux-usb@...r.kernel.org,
	"Linux Kernel Mailing List" <linux-kernel@...r.kernel.org>
Subject: Re: usb_get_status(): what a weird implementation !

On Mon, Jun 30, 2008 at 3:51 PM, Oliver Neukum <oliver@...kum.org> wrote:
>
> If your buffer is smaller than CACHE_LINE_SIZE it should work.
> However, this needs input from people who understand DMA in and out.

yeah, that's the reason why it's a hack.

Maybe adding a new helper in  the dma API would be better...

> But how large is 2 * CACHE_LINE_SIZE compared to the kernel stack?

CACHE_LINE_SIZE = 32 bytes is common for embedded systems I guess.
For big system, I dunno.

Kernel stack size is usually  4KiB.

-- 
Francis
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ