Displaying 4 results from an estimated 4 matches for "free_initrd".
2007 Apr 18
1
[PATCH] fix boot crash when freeing initrd memory
I'm triggering this BUG_ON during boot, which happens while freeing initrd
memory:
EIP is at free_init_pages+0x37/0xac
[<c01143f1>] free_initrd_mem+0x11/0x13
[<c03ce259>] free_initrd+0x13/0x29
[<c03cf647>] populate_rootfs+0xdc/0xe2
[<c01003af>] init+0x42/0x253
[<c0103bbb>] kernel_thread_helper+0x7/0x10
I'm not sure why this memory isn't aligned now.
The patch below allows my system to boot. Any clues...
2007 Apr 18
1
[PATCH] fix boot crash when freeing initrd memory
I'm triggering this BUG_ON during boot, which happens while freeing initrd
memory:
EIP is at free_init_pages+0x37/0xac
[<c01143f1>] free_initrd_mem+0x11/0x13
[<c03ce259>] free_initrd+0x13/0x29
[<c03cf647>] populate_rootfs+0xdc/0xe2
[<c01003af>] init+0x42/0x253
[<c0103bbb>] kernel_thread_helper+0x7/0x10
I'm not sure why this memory isn't aligned now.
The patch below allows my system to boot. Any clues...
2007 Apr 11
1
[PATCH] export retained initrd in debugfs
...s.c 2007-03-28 00:35:56.000000000 -0500
@@ -6,6 +6,7 @@
#include <linux/delay.h>
#include <linux/string.h>
#include <linux/syscalls.h>
+#include <linux/debugfs.h>
static __initdata char *message;
static void __init error(char *x)
@@ -519,7 +520,7 @@ static void __init free_initrd(void)
unsigned long crashk_end = (unsigned long)__va(crashk_res.end);
#endif
if (do_retain_initrd)
- goto skip;
+ return;
#ifdef CONFIG_KEXEC
/*
@@ -588,3 +589,29 @@ static int __init populate_rootfs(void)
return 0;
}
rootfs_initcall(populate_rootfs);
+
+#ifdef CONFIG_BLK_DEV_INIT...
2006 Jul 11
0
klibc and what's the next step?
...onsole, /root, /sys, /proc, and whatever
else it wants (what, unpack to a seperate ramfs or tmpfs so you
can just do unmount or pivot_root instead of nuke-fs? Too simple).
The hard parts I see are (1) protecting the lifetime of the
initramfs section, it is part of __init, (2) puting back deferred
free_initrd behaviour (3) getting the binary to be mmap()able for
binfmt_* if needed. Possible rules for (1) are the files are
revoked (as in they disappear and we sigkill any task with an
open file) when we are ready to free __init. Or we just make
them -EIO. Userspace can copy contents if they want to pre...