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:	Mon, 1 Nov 2010 17:59:22 +0800
From:	Américo Wang <xiyou.wangcong@...il.com>
To:	tingwei liu <tingw.liu@...il.com>
Cc:	Américo Wang <xiyou.wangcong@...il.com>,
	linux-kernel@...r.kernel.org
Subject: Re: How many params can be accept by kernel module at most?

On Mon, Nov 01, 2010 at 05:49:53PM +0800, tingwei liu wrote:
>The params are transferred by command line. And the params are all in
>program statically. So the stack size determine the params number. For
>example: stack size is 4K,and params are unsigned int type with 4
>bytes,so the max number of params is 1 thousand。
>

Please don't top-reply.

That is not true, the parameters are passed via 'uargs' of init_module()
dynamically, this is when you invoke modprobe/insmod.

For your own kernel module, you may use module_param() to provide
parameters, the max of this is limited to the size of ELF section size,
since they are stored in "__param" section.
--
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