diff -urNp linux-2.6.16/arch/i386/Kconfig linux-2.6.16.new/arch/i386/Kconfig --- linux-2.6.16/arch/i386/Kconfig 2006-03-20 07:53:29.000000000 +0200 +++ linux-2.6.16.new/arch/i386/Kconfig 2006-04-14 01:35:06.000000000 +0300 @@ -644,6 +644,14 @@ config EFI anything about EFI). However, even with this option, the resultant kernel should continue to boot on existing non-EFI platforms. +config COMMAND_LINE_SIZE + int "Maximum kernel command-line size" + range 256 4096 + default 256 + ---help--- + This enables adjusting maximum command-line size. If you are unsure + specify 256. + config IRQBALANCE bool "Enable kernel irq balancing" depends on SMP && X86_IO_APIC diff -urNp linux-2.6.16/arch/x86_64/Kconfig linux-2.6.16.new/arch/x86_64/Kconfig --- linux-2.6.16/arch/x86_64/Kconfig 2006-03-20 07:53:29.000000000 +0200 +++ linux-2.6.16.new/arch/x86_64/Kconfig 2006-04-14 01:35:30.000000000 +0300 @@ -445,6 +445,14 @@ config PHYSICAL_START Don't change this unless you know what you are doing. +config COMMAND_LINE_SIZE + int "Maximum kernel command-line size" + range 256 4096 + default 256 + ---help--- + This enables adjusting maximum command-line size. If you are unsure + specify 256. + config SECCOMP bool "Enable seccomp to safely compute untrusted bytecode" depends on PROC_FS diff -urNp linux-2.6.16/include/asm-i386/param.h linux-2.6.16.new/include/asm-i386/param.h --- linux-2.6.16/include/asm-i386/param.h 2006-03-20 07:53:29.000000000 +0200 +++ linux-2.6.16.new/include/asm-i386/param.h 2006-04-14 02:00:45.000000000 +0300 @@ -19,6 +19,15 @@ #endif #define MAXHOSTNAMELEN 64 /* max length of hostname */ + +/* + * This COMMAND_LINE_SIZE definition was left here + * for compatability, its correct location is in setup.h. + * Boot loaders that use this parameters will continue + * to use 256 maximum command-line size. + */ +#ifndef CONFIG_COMMAND_LINE_SIZE #define COMMAND_LINE_SIZE 256 +#endif #endif diff -urNp linux-2.6.16/include/asm-i386/setup.h linux-2.6.16.new/include/asm-i386/setup.h --- linux-2.6.16/include/asm-i386/setup.h 2006-03-20 07:53:29.000000000 +0200 +++ linux-2.6.16.new/include/asm-i386/setup.h 2006-04-14 01:32:16.000000000 +0300 @@ -17,7 +17,7 @@ #define MAX_NONPAE_PFN (1 << 20) #define PARAM_SIZE 4096 -#define COMMAND_LINE_SIZE 256 +#define COMMAND_LINE_SIZE CONFIG_COMMAND_LINE_SIZE #define OLD_CL_MAGIC_ADDR 0x90020 #define OLD_CL_MAGIC 0xA33F diff -urNp linux-2.6.16/include/asm-x86_64/setup.h linux-2.6.16.new/include/asm-x86_64/setup.h --- linux-2.6.16/include/asm-x86_64/setup.h 2006-03-20 07:53:29.000000000 +0200 +++ linux-2.6.16.new/include/asm-x86_64/setup.h 2006-04-14 01:33:27.000000000 +0300 @@ -1,6 +1,6 @@ #ifndef _x8664_SETUP_H #define _x8664_SETUP_H -#define COMMAND_LINE_SIZE 256 +#define COMMAND_LINE_SIZE CONFIG_COMMAND_LINE_SIZE #endif