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 for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 5 Jun 2013 10:54:26 -0700
From:	Greg KH <gregkh@...uxfoundation.org>
To:	Tobias Winter <tobias@...uxdingsda.de>,
	Bjørn Mork <bjorn@...k.no>,
	Rob Landley <rob@...dley.net>
Cc:	linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 0/3] Increase the number of USB to serial devices we can
 support at once

Here are 3 patches that I've tested out on my system with only a small
number of devices, but it seems to work, so why not let others try it
out...

These patches make the USB to serial core have the ability to support up
to 3000 devices at once now.  We do this in the following steps:
	- adding the minor number to the usb_serial_port structure
	- removing the static array of ports, and use idr instead
	- increasing the number

Now, if you pay attention, we end up taking up more runtime memory than
before, because we are asking the tty layer to reserve a bunch more tty
devices for us, negating the potential savings of getting rid of our
original static array.  I'll work on fixing up the tty layer calls to
properly allocate the tty devices only when we need them, much like the
pty layer does.  When that's done, we can bump the number of usb to
serial devices up to 16k with no memory problems.

This series is based on my usb-linus branch on my usb.git tree on
git.kernel.org, as I needed some of the usb-serial fixes that are in
that branch already.

Testing / review is most welcome.

thanks,

greg k-h
--
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