Re: [PATCH 02/14] HID: provide a helper for validating hid reports

2013-08-30 Thread Benjamin Tissoires
On Thu, Aug 29, 2013 at 9:51 PM, Kees Cook keesc...@chromium.org wrote: On Thu, Aug 29, 2013 at 2:35 AM, Benjamin Tissoires benjamin.tissoi...@gmail.com wrote: Hi Kees, On Wed, Aug 28, 2013 at 10:30 PM, Jiri Kosina jkos...@suse.cz wrote: From: Kees Cook keesc...@chromium.org Many drivers

Re: [PATCH 02/14] HID: provide a helper for validating hid reports

2013-08-29 Thread Benjamin Tissoires
Hi Kees, On Wed, Aug 28, 2013 at 10:30 PM, Jiri Kosina jkos...@suse.cz wrote: From: Kees Cook keesc...@chromium.org Many drivers need to validate the characteristics of their HID report during initialization to avoid misusing the reports. This adds a common helper to perform validation of

Re: [PATCH 02/14] HID: provide a helper for validating hid reports

2013-08-29 Thread Kees Cook
On Thu, Aug 29, 2013 at 2:35 AM, Benjamin Tissoires benjamin.tissoi...@gmail.com wrote: Hi Kees, On Wed, Aug 28, 2013 at 10:30 PM, Jiri Kosina jkos...@suse.cz wrote: From: Kees Cook keesc...@chromium.org Many drivers need to validate the characteristics of their HID report during

[PATCH 02/14] HID: provide a helper for validating hid reports

2013-08-28 Thread Jiri Kosina
From: Kees Cook keesc...@chromium.org Many drivers need to validate the characteristics of their HID report during initialization to avoid misusing the reports. This adds a common helper to perform validation of the report, its field count, and the value count within the fields. Signed-off-by: