mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] extend the limits for command line
@ 2004-11-04  7:08 Catalin(ux aka Dino) BOIE
  2004-11-04 14:34 ` [uml-user] " Blaisorblade
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Catalin(ux aka Dino) BOIE @ 2004-11-04  7:08 UTC (permalink / raw)
  To: jdike, blaisorblade_spam, linux-kernel; +Cc: user-mode-linux-user

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1225 bytes --]

Hello!

(I resend this because I get no feedback.)

Testing UML on my project, I hit the limit for command line with something like 
this:

default \
         mem=64M \
         ubda=COW,/data/UML4/roots/ROOT1 \
         ubdb=SWAP \
         ubdc=CONF.tar \
         ${HSSTR} \
         eth0=daemon,fe:fd:39:bd:cc:d7,,/data/UML4/conf/example1/socks/SW1 
eth1=daemon,fe:fd:01:01:01:12,,/data/UML4/conf/example1/socks/SW2 
eth2=daemon,fe:fd:01:01:01:99,,/data/UML4/conf/example1/socks/SW4 
eth3=daemon,fe:fd:01:01:01:03,,/data/UML4/conf/example1/socks/SW5 
eth4=daemon,fe:fd:01:01:01:04,,/data/UML4/conf/example1/socks/SW6 
eth5=daemon,fe:fd:01:01:01:81,,/data/UML4/conf/example1/socks/SW8p1 
eth6=daemon,fe:fd:3f:a9:35:e2,,/data/UML4/conf/EXTERN/E1  \
         con=null \
         ssl0=port:9101 \
         umid=example1-pc1 \
         @pc1@


Patch to extend the limits (buffer and number of args/envs) is attached.
Please consider including it because UML is intended to be run with such 
long lines.
I'm open to other alternatives as a Kconfig entry for this.

Thank you!

Signed-off-by: Catalin(ux aka Dino) BOIE <catab at umbrella dot ro>

---
Catalin(ux aka Dino) BOIE
catab at deuroconsult.ro
http://kernel.umbrella.ro/

[-- Attachment #2: Type: TEXT/PLAIN, Size: 758 bytes --]

--- linux-2.6.9/init/main.c	2004-10-19 00:53:23.000000000 +0300
+++ mylinux/init/main.c	2004-10-26 23:57:29.000000000 +0300
@@ -110,8 +110,8 @@ EXPORT_SYMBOL(system_state);
 /*
  * Boot command-line arguments
  */
-#define MAX_INIT_ARGS 32
-#define MAX_INIT_ENVS 32
+#define MAX_INIT_ARGS 256
+#define MAX_INIT_ENVS 256
 
 extern void time_init(void);
 /* Default late time init is NULL. archs can override this later. */
--- linux-2.6.9/include/asm-um/setup.h	2004-10-19 00:54:31.000000000 +0300
+++ mylinux/include/asm-um/setup.h	2004-10-26 23:57:39.000000000 +0300
@@ -1,6 +1,6 @@
 #ifndef SETUP_H_INCLUDED
 #define SETUP_H_INCLUDED
 
-#define COMMAND_LINE_SIZE 512
+#define COMMAND_LINE_SIZE 4096
 
 #endif		/* SETUP_H_INCLUDED */

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [uml-user] [PATCH] extend the limits for command line
  2004-11-04  7:08 [PATCH] extend the limits for command line Catalin(ux aka Dino) BOIE
@ 2004-11-04 14:34 ` Blaisorblade
  2005-03-02 19:58   ` [uml-devel] " Blaisorblade
  2004-11-04 16:59 ` Adam Heath
  2004-11-05  5:26 ` Jeff Dike
  2 siblings, 1 reply; 5+ messages in thread
From: Blaisorblade @ 2004-11-04 14:34 UTC (permalink / raw)
  To: user-mode-linux-devel
  Cc: Catalin(ux aka Dino) BOIE, jdike, linux-kernel, user-mode-linux-user

[-- Attachment #1: Type: text/plain, Size: 1956 bytes --]

On Thursday 04 November 2004 08:08, Catalin(ux aka Dino) BOIE wrote:
> Hello!
>
> (I resend this because I get no feedback.)
Sorry, miss of time.

> Testing UML on my project, I hit the limit for command line with something
> like this:

> default \
>          mem=64M \
>          ubda=COW,/data/UML4/roots/ROOT1 \
>          ubdb=SWAP \
>          ubdc=CONF.tar \
>          ${HSSTR} \
>          eth0=daemon,fe:fd:39:bd:cc:d7,,/data/UML4/conf/example1/socks/SW1
> eth1=daemon,fe:fd:01:01:01:12,,/data/UML4/conf/example1/socks/SW2
> eth2=daemon,fe:fd:01:01:01:99,,/data/UML4/conf/example1/socks/SW4
> eth3=daemon,fe:fd:01:01:01:03,,/data/UML4/conf/example1/socks/SW5
> eth4=daemon,fe:fd:01:01:01:04,,/data/UML4/conf/example1/socks/SW6
> eth5=daemon,fe:fd:01:01:01:81,,/data/UML4/conf/example1/socks/SW8p1
> eth6=daemon,fe:fd:3f:a9:35:e2,,/data/UML4/conf/EXTERN/E1  \
>          con=null \
>          ssl0=port:9101 \
>          umid=example1-pc1 \
>          @pc1@

> Patch to extend the limits (buffer and number of args/envs) is attached.
> Please consider including it because UML is intended to be run with such
> long lines.
> I'm open to other alternatives as a Kconfig entry for this.

> Thank you!

> Signed-off-by: Catalin(ux aka Dino) BOIE <catab at umbrella dot ro>

The idea of the patch is correct.

The UML part should be mergeable immediately - however, I don't know if that 
could be a security risk or has any bug (any place still using the old size).

Also, I'd like to understand what arch/um/kernel/user_util.c wants to do near 
its beginning!

For the arch-independent code, there needs to be something like a Kconfig 
entry (not necessarily a user-question, see CONFIG_GENERIC_RWSEM for 
instance).

Also, I'd like to cross-check this patch with the one used by Knoppix for ages 
to do the same thing.

Bye
-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] extend the limits for command line
  2004-11-04  7:08 [PATCH] extend the limits for command line Catalin(ux aka Dino) BOIE
  2004-11-04 14:34 ` [uml-user] " Blaisorblade
@ 2004-11-04 16:59 ` Adam Heath
  2004-11-05  5:26 ` Jeff Dike
  2 siblings, 0 replies; 5+ messages in thread
From: Adam Heath @ 2004-11-04 16:59 UTC (permalink / raw)
  To: Catalin(ux aka Dino) BOIE
  Cc: jdike, blaisorblade_spam, linux-kernel, user-mode-linux-user

On Thu, 4 Nov 2004, Catalin(ux aka Dino) BOIE wrote:

> Hello!
>
> (I resend this because I get no feedback.)
>
> Testing UML on my project, I hit the limit for command line with something like
> this:
>
> default \
>          mem=64M \
>          ubda=COW,/data/UML4/roots/ROOT1 \
>          ubdb=SWAP \
>          ubdc=CONF.tar \
>          ${HSSTR} \
>          eth0=daemon,fe:fd:39:bd:cc:d7,,/data/UML4/conf/example1/socks/SW1
> eth1=daemon,fe:fd:01:01:01:12,,/data/UML4/conf/example1/socks/SW2
> eth2=daemon,fe:fd:01:01:01:99,,/data/UML4/conf/example1/socks/SW4
> eth3=daemon,fe:fd:01:01:01:03,,/data/UML4/conf/example1/socks/SW5
> eth4=daemon,fe:fd:01:01:01:04,,/data/UML4/conf/example1/socks/SW6
> eth5=daemon,fe:fd:01:01:01:81,,/data/UML4/conf/example1/socks/SW8p1
> eth6=daemon,fe:fd:3f:a9:35:e2,,/data/UML4/conf/EXTERN/E1  \
>          con=null \
>          ssl0=port:9101 \
>          umid=example1-pc1 \
>          @pc1@
>
>
> Patch to extend the limits (buffer and number of args/envs) is attached.
> Please consider including it because UML is intended to be run with such
> long lines.
> I'm open to other alternatives as a Kconfig entry for this.

Actually, I should redo/update my patch that lets uml parse a config file.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] extend the limits for command line
  2004-11-04  7:08 [PATCH] extend the limits for command line Catalin(ux aka Dino) BOIE
  2004-11-04 14:34 ` [uml-user] " Blaisorblade
  2004-11-04 16:59 ` Adam Heath
@ 2004-11-05  5:26 ` Jeff Dike
  2 siblings, 0 replies; 5+ messages in thread
From: Jeff Dike @ 2004-11-05  5:26 UTC (permalink / raw)
  To: Catalin(ux aka Dino) BOIE
  Cc: blaisorblade_spam, linux-kernel, user-mode-linux-user

util@deuroconsult.ro said:
> Patch to extend the limits (buffer and number of args/envs) is
> attached. Please consider including it because UML is intended to be
> run with such  long lines. 

I don't have a problem with this either.  The init/main.c piece needs to be
run through LKML, and so far I haven't seen any reaction.

				Jeff


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [uml-devel] Re: [uml-user] [PATCH] extend the limits for command line
  2004-11-04 14:34 ` [uml-user] " Blaisorblade
@ 2005-03-02 19:58   ` Blaisorblade
  0 siblings, 0 replies; 5+ messages in thread
From: Blaisorblade @ 2005-03-02 19:58 UTC (permalink / raw)
  To: user-mode-linux-devel
  Cc: Blaisorblade, Catalin(ux aka Dino) BOIE, jdike, linux-kernel,
	user-mode-linux-user

On Thursday 04 November 2004 15:34, Blaisorblade wrote:
> On Thursday 04 November 2004 08:08, Catalin(ux aka Dino) BOIE wrote:
> > Hello!
> >
> > (I resend this because I get no feedback.)

> Sorry, miss of time.
I'm doing it now... I'll post it soon for merging. The crash fixed by Jeff 
Dike in his patch is a different things: he fixes a buffer overflow, I 
cleanup things and increase cleanly the allowed cmdline size. The original 
Catalin BOIE's patch should work in the meanwhile.

> Also, I'd like to cross-check this patch with the one used by Knoppix for
> ages to do the same thing.
Still to find.
-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-03-02 19:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-04  7:08 [PATCH] extend the limits for command line Catalin(ux aka Dino) BOIE
2004-11-04 14:34 ` [uml-user] " Blaisorblade
2005-03-02 19:58   ` [uml-devel] " Blaisorblade
2004-11-04 16:59 ` Adam Heath
2004-11-05  5:26 ` Jeff Dike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®