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 PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 30 Jan 2014 16:48:41 -0500 From: Mark Lord <mlord@...ox.com> To: Alan Stern <stern@...land.harvard.edu>, Sarah Sharp <sarah.a.sharp@...ux.intel.com> CC: David Laight <David.Laight@...LAB.COM>, "linux-usb@...r.kernel.org" <linux-usb@...r.kernel.org>, "netdev@...r.kernel.org" <netdev@...r.kernel.org>, Greg Kroah-Hartman <gregkh@...uxfoundation.org>, David Miller <davem@...emloft.net>, Dan Williams <dan.j.williams@...el.com>, "Nyman, Mathias" <mathias.nyman@...el.com>, Freddy Xin <freddy@...x.com.tw> Subject: Re: [PATCH RFC 1/1] usb: Tell xhci when usb data might be misaligned On 14-01-30 04:43 PM, Alan Stern wrote: > On Thu, 30 Jan 2014, Sarah Sharp wrote: > >> It should not matter what alignment or length of scatter-gather list the >> upper layers pass the xHCI driver, it should just work. I want to do >> this fix right, by changing the fundamental way we queue TRBs to the >> rings to fit the TD rules. We should break each TD into fragment-sized >> chunks, and add a link TRB in the middle of a segment where necessary. > > That's a good plan. However _some_ restriction will turn out to be > necessary. > > For example, what will you do if a driver submits an SG list containing > 300 elements, each 3 bytes long? Allocate a contiguous (bounce) buffer and copy the fragments to/from it? -- Mark Lord Real-Time Remedies Inc. mlord@...ox.com -- 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