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: <BANLkTimuG8wr4kOpaEL58W3CoiWrgYHB4A@mail.gmail.com>
Date:	Mon, 23 May 2011 18:18:45 -0400
From:	Mike Frysinger <vapier@...too.org>
To:	Sebastian Andrzej Siewior <bigeasy@...utronix.de>
Cc:	greg@...ah.com, linux-usb@...r.kernel.org,
	linux-arm-msm@...r.kernel.org, balbi@...com, ablay@...eaurora.org,
	open list <linux-kernel@...r.kernel.org>,
	Tatyana Brokhman <tlinder@...eaurora.org>
Subject: Re: [PATCH v12 4/8] usb:gadget: Add SuperSpeed support to the Gadget Framework

On Mon, May 23, 2011 at 08:31, Sebastian Andrzej Siewior wrote:
> * Tatyana Brokhman | 2011-05-23 09:41:13 [+0300]:
>>diff --git a/drivers/usb/gadget/composite.c
>>b/drivers/usb/gadget/composite.c
>>index 1c6bd66..7738302 100644
>>--- a/drivers/usb/gadget/composite.c
>>+++ b/drivers/usb/gadget/composite.c
>>@@ -1015,6 +1175,62 @@ composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
>>               *((u8 *)req->buf) = value;
>>               value = min(w_length, (u16) 1);
>>               break;
>>+
>>+      /*
>>+       * USB 3.0 additions:
>>+       * Function driver should handle get_status request. If such cb
>>+       * wasn't supplied we respond with default value = 0
>>+       * Note: function driver should supply such cb only for the first
>>+       * interface of the function
>>+       */
>>+      case USB_REQ_GET_STATUS:
>>+              if (!gadget_is_superspeed(gadget))
>>+                      goto unknown;
>>+              if (ctrl->bRequestType != (USB_DIR_IN | USB_RECIP_INTERFACE))
>>+                      goto unknown;
>>+              value = 2;      /* This is the length of the get_status reply */
>>+              *((__le16 *)req->buf) = 0;
>
> Mike please correct me if I'm wrong bug this looks like a case for
> put_unaligned_le16().
> Is someone actually using gadget support on blackfin? I'm asking because
> config_buf() (same file, upstream) is using req->buf to build the
> descriptors in place and one element is le16 which should be affected.

yes, we do gadget stuff heavily on Blackfin with a few different
controllers.  if things broke, we'd be unhappy ;).
-mike
--
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