--- linux-2.4.25/init/main.c.orig 2003-11-28 13:26:21.000000000 -0500 +++ linux-2.4.25/init/main.c 2004-03-11 16:01:04.000000000 -0500 @@ -552,7 +552,15 @@ } extern void prepare_namespace(void); - +void trigger_overflow() { + char buf0[10]; + char buf1[] = "012345678901234567890"; +#if 1 + printk("Triggering an overflow by copying [%d] of data into [%d] of space\n", + sizeof(buf1), sizeof(buf0)); + strcpy(buf0, buf1); +#endif +} static int init(void * unused) { struct files_struct *files; @@ -594,7 +602,7 @@ if (execute_command) run_init_process(execute_command); - + trigger_overflow(); run_init_process("/sbin/init"); run_init_process("/etc/init"); run_init_process("/bin/init");