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] [day] [month] [year] [list]
Date:   Thu, 10 Aug 2017 12:02:20 +0300
From:   Felipe Balbi <felipe.balbi@...ux.intel.com>
To:     Variksla <variksla@...il.com>
Cc:     bjorn@...k.no, gregkh@...uxfoundation.org,
        linux-kernel@...r.kernel.org, jikos@...nel.org,
        linux-usb@...r.kernel.org, Pavel Machek <pavel@....cz>,
        balbi@...com, eu@...ipetonello.com, k.opasiak@...sung.com
Subject: Re: f_hid.c conversion to the new function interface and crash due to race


Hi,

(please break your lines at 80 columns)

Variksla <variksla@...il.com> writes:
>> On Aug 9, 2017, at 2:56 AM, Felipe Balbi <felipe.balbi@...ux.intel.com> wrote:
>
> Thanks for replying.
>> 
>> 
>> Hi,
>> 
>> noman pouigt <variksla@...il.com> writes:
>>> Hello,
>>> 
>>> I am currently using 3.18 linux kernel and getting below
>> 
>> return -EKERNELTOOOLD;
>> 
>> Sorry, you're on your own. You should ask for support from whoever
>> forces you to use 3.18 kernel.
>
> I have updated f_hid.c file to latest kernel though as I knew it would
> be too much to ask to get support for old code.

it's not really enough. In fact, it's even worse as the two codebases
don't really match.

> I am just not sure about how to instantiate the function driver as
> earlier f_fs was instantiating the hid driver. However, after hid got
> converted to new function driver who is responsible for calling setup,
> bind and unbind functions in f_hid.c ?
>
> Below is the glue code in android.c.

there's no android.c upstream.

> drivers/usb/gadget/android.c
> static struct android_usb_function hid_function = {
>        .name           = "hid",
>        .init           = hid_function_init,
>        .cleanup        = hid_function_cleanup,
>        .bind_config    = hid_function_bind_config,
>        .attributes     = hid_function_attributes,
> };
>
> Is there something similar in new function driver in upstream kernel?

you can check for yourself ;-)

-- 
balbi

Download attachment "signature.asc" of type "application/pgp-signature" (833 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ