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]
Date:	Tue, 16 Apr 2013 09:15:45 +0800
From:	Ming Lei <tom.leiming@...il.com>
To:	Dan Williams <dcbw@...hat.com>
Cc:	Oliver Neukum <oliver@...kum.org>,
	Elina Pasheva <epasheva@...rrawireless.com>,
	Network Development <netdev@...r.kernel.org>,
	linux-usb <linux-usb@...r.kernel.org>,
	Rory Filer <rfiler@...rrawireless.com>,
	Phil Sutter <phil@....cc>
Subject: Re: [PATCH 1/2 v5] usbnet: allow status interrupt URB to always be active

On Mon, Apr 15, 2013 at 11:59 PM, Dan Williams <dcbw@...hat.com> wrote:
>
> So, what was the general consensus on this one?  I know Oliver signed
> off on it, but the discussion about memflags seemed to die out without a
> specific conclusion.  davem might be looking for that conclusion before
> moving forward with the series :)

Suggest to remove the memflags parameter, because:

- the probable issue addressed by introducing memflags is a general issue
of all USB drivers, also very corener one, not a specific one on usbnet, and
the issue only exists on devices with at least one mass storage interface and
another non-mass-storage interface, and it is not considered by other USB
drivers now.

- usbnet_status_start() is called from either probe() or work queue scheduled
from probe(), if we want to address the probable issue, the memflags should
always be GFP_NOIO under the two situations, __or__ GFP_KERNEL if we
choose to ignore the very corner case like other USB drivers.  So hardcoded
GFP_NOIO or GFP_KERNEL should be accepted.

Oliver, do you have objections on not adding the memflags parameter now?

Williams, looks there is another problem in your patch, sorry for not
finding it previously.  usb_autopm_get_interface() need to be called before
submitting URB inside usbnet_status_start(), and usb_autopm_put_interface()
need to be called after killing URB inside usbnet_status_stop(). Otherwise
your patch doesn't work as you expected under runtime PM situation.


Thanks,
-- 
Ming Lei
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ