On 03/15/2010 07:52 PM, Yinghai Lu wrote: > On 03/15/2010 08:28 AM, Avi Kivity wrote: > >> With CONFIG_NO_BOOTMEM=y, I get: >> >> kobject '' (c252bfdc): tried to add an uninitialized object, something >> is seriously wrong. >> Pid: 1, comm: swapper Not tainted 2.6.34-rc1 #121 >> Call Trace: >> [] ? printk+0x14/0x17 >> [] kobject_add+0x28/0x49 >> [] add_sysfs_fw_map_entry+0x5b/0x74 >> [] memmap_init+0x13/0x2d >> [] do_one_initcall+0x51/0x13f >> [] kernel_init+0x122/0x1a3 >> [] ? kernel_init+0x0/0x1a3 >> [] kernel_thread_helper+0x6/0x10 >> ------------[ cut here ]------------ >> WARNING: at lib/kobject.c:595 kobject_put+0x27/0x3c() >> >> a bit after which the kernel dies. Inspection of memmap_init() and >> related code appears to call kobject_init() correctly. >> >> With CONFIG_NO_BOOTMEM, the kernel hangs in early boot before displaying >> anything. >> >> 2.6.34-rc1, i386 (x86_64 works fine). >> >> > can you send out > .config and boot log for old kernel ... > > I reproduced this on x86_64 as well (both physical and virtual), fails earlier this time. Stack trace: #0 ?? () at arch/x86/kernel/head_64.S:318 #1 0xffffffff812039dd in strnlen (s=0x1
, count=) at lib/string.c:403 #2 0xffffffff81204fdf in string (buf=0xffffffff817ff5b0 "(null): 9f3ff ffffffff81531e70 ", '0' , "3f\n", end=0xffffffff817ff9b0 "", s=0x9f400
, spec=) at lib/vsprintf.c:546 #3 0xffffffff81205ea2 in vsnprintf (buf=0xffffffff817ff5b0 "(null): 9f3ff ffffffff81531e70 ", '0' , "3f\n", size=1024, fmt=0xffffffff81591c1e ": %llx %llx %s %p\n", args=0xffffffff815ddda8) at lib/vsprintf.c:1316 #4 0xffffffff812061e8 in vscnprintf (buf=, size=1024, fmt=, args=) at lib/vsprintf.c:1427 #5 0xffffffff81046445 in vprintk (fmt=0xffffffff81591c1c "%s: %llx %llx %s %p\n", args=0xffffffff815ddda8) at kernel/printk.c:709 #6 0xffffffff813cecb0 in printk (fmt=) at kernel/printk.c:590 #7 0xffffffff81329ebb in firmware_map_add_entry (start=652288, end=655359, type=0xffffffff81530231 "reserved", entry=0xffff88000190e8c0) at drivers/firmware/memmap.c:114 #8 0xffffffff81752711 in firmware_map_add_early (start=652288, end=655359, type=0xffffffff81530231 "reserved") at drivers/firmware/memmap.c:197 #9 0xffffffff8172776c in e820_reserve_resources () at arch/x86/kernel/e820.c:1090 #10 0xffffffff81726c5a in ?? () #11 0xffffffff81723a2a in start_kernel () at init/main.c:562 #12 0xffffffff817232a0 in x86_64_start_reservations (real_mode_data=) at arch/x86/kernel/head64.c:121 #13 0xffffffff8172339c in x86_64_start_kernel (real_mode_data=0x13610
) at arch/x86/kernel/head64.c:94 #14 0x0000000000000000 in ?? () No dmesg. .config attached. -- error compiling committee.c: too many arguments to function