On Mon, Aug 01, 2016 at 09:59:47PM +0800, Fengguang Wu wrote: >Hi Alexander, > >>When I build the kernel with your config and run the script, QEMU >>bails out with an error message: >> qemu: linux kernel too old to load a ram disk >>Any idea how to work around that? > >Yes this config may not include necessary parts. I cannot enter initrd >this way: > >[ 3.079656] Failed to execute /init (error -8) >[ 3.082079] Starting init: /sbin/init exists but couldn't execute it (error -8) >[ 3.084836] Starting init: /etc/init exists but couldn't execute it (error -13) >[ 3.088568] Starting init: /bin/sh exists but couldn't execute it (error -8) >[ 3.090560] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance. Sorry I fed it with an i386 initrd.. Now I can reach this point. However no luck to reproduce the qlink_free() bug in the newer machine. [ 14.454154] Freeing unused kernel memory: 1140K (ffff8800018e3000 - ffff880001a00000) [ 14.458196] Freeing unused kernel memory: 364K (ffff880001da5000 - ffff880001e00000) [ 17.368599] init[1] vsyscall attempted with vsyscall=none ip:ffffffffff600400 cs:33 sp:7ffd3e371148 ax:ffffffffff600400 si:7ffd3e371090 di:7ffd3e371280 [ 17.372230] init[1]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007ffd3e371148 error 15 [ 17.375448] init[1] vsyscall attempted with vsyscall=none ip:ffffffffff600400 cs:33 sp:7ffd3e370778 ax:ffffffffff600400 si:7f683dc55a4c di:7ffd3e370838 [ 17.386163] init[1]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007ffd3e370778 error 15 [ 17.389439] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b [ 17.389439] [ 17.392589] CPU: 0 PID: 1 Comm: init Not tainted 4.7.0-rc7-00002-g85d9adb #1 [ 17.394448] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.7.5-20140531_083030-gandalf 04/01/2014 [ 17.397634] ffffffff81e4c300 ffff8800361ef9a8 ffffffff814710db ffff8800361efa28 [ 17.400247] ffffffff8115bdf6 ffffffff00000010 ffff8800361efa38 ffff8800361ef9d8 [ 17.402842] ffff8800361e0040 ffff8800361ef9f8 000000000000000b ffff8800361e0040 [ 17.405416] Call Trace: [ 17.406260] [] dump_stack+0x19/0x1e [ 17.407582] [] panic+0xd8/0x243 [ 17.408868] [] forget_original_parent+0xe7/0x3f0 [ 17.410314] [] ? exit_notify+0x30/0x1d0 [ 17.411716] [] ? do_raw_write_lock+0xe/0x80 [ 17.413082] [] exit_notify+0x3b/0x1d0 [ 17.414351] [] ? cgroup_exit+0xdc/0x140 [ 17.415618] [] ? _cond_resched+0x9/0x30 [ 17.416922] [] ? unregister_hw_breakpoint+0x9/0x20 [ 17.418442] [] do_exit+0x3a9/0x480 [ 17.419765] [] ? get_signal+0x4f4/0x520 [ 17.421101] [] do_group_exit+0x95/0xd0 [ 17.422446] [] get_signal+0x4b2/0x520 [ 17.423749] [] ? printk+0x45/0x47 [ 17.424986] [] ? __bad_area_nosemaphore+0x1a4/0x1e0 [ 17.426404] [] do_signal+0x2a/0xd0 [ 17.427650] [] ? vprintk_default+0x1f/0x30 [ 17.428815] [] ? exit_to_usermode_loop+0x47/0xd0 [ 17.430042] [] ? trace_hardirqs_on_caller+0x193/0x1f0 [ 17.431341] [] exit_to_usermode_loop+0x75/0xd0 [ 17.432568] [] prepare_exit_to_usermode+0x7d/0x90 [ 17.433805] [] retint_user+0x8/0x20 [ 17.434952] Kernel Offset: disabled Thanks, Fengguang