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>] [day] [month] [year] [list]
Message-ID: <4DA94054.3030303@skybility.com>
Date:	Sat, 16 Apr 2011 15:08:04 +0800
From:	Lyre <liyong@...bility.com>
To:	linux-kernel@...r.kernel.org
Subject: alloc memory for massive legacy ptys

Hi all:

In a rare condition, I need to alloc massive legacy ptys on SLES 9 SP4,
kernel 2.6.5-7.308-smp.

I noticed the limit number of legacy ptys was 10922, due to the kmalloc
128kb limit. 10922 * 3 * sizeof (void *) was 8 bytes lesser than 128kb
on 32bit system.

I tried to use vmalloc instead of kmalloc in tty_register_driver(). My
system was able to boot, but I'm not sure if it was safely to do this,
since vmalloc don't guarant the phy memory were contiguous, and I don't
know the pty driver memory requirements neither.
--
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