From: =?utf-8?B?UmVuw6k=?= Nussbaumer Subject: Re: Panic when loading kvm-amd.ko Date: Mon, 18 Jun 2007 09:57:44 +0200 Message-ID: <20070618075744.GB15801@killerfox.forkbomb.ch> References: <20070617152725.GA18777@hansmi.ch> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0242911629==" Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Michael Hanselmann Return-path: In-Reply-To: <20070617152725.GA18777-ujPHhMiOvBLtRgLqZ5aouw@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org --===============0242911629== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oLBj+sq0vYjzfsbl" Content-Disposition: inline --oLBj+sq0vYjzfsbl Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello On Sun, Jun 17, 2007 at 05:27:25PM +0200, Michael Hanselmann wrote: > I reproduced it with vanilla-2.6.21.5, vanilla-2.6.22-rc5 and current > KVM git. Architecture is x86_64. GCC version is "gcc (GCC) 3.4.6 (Gentoo > Hardened 3.4.6-r2, ssp-3.4.6-1.0, pie-8.7.10)". I've got a similiar backtrace, but well without any PANIC. I can reproduce it on vanilla-2.6.21.1 and .5 (I didn't check the versions between). But it worked once with a 2.6.20.1 and even with 2.6.19. My machine is a HP Compaq dc5750 with a AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ CPU in it. It's fully svm capable and like I already mentioned, worked on earlier versions of the Kernel. Der Kernel is x86_64 and my gcc is: gcc (GCC) 4.1.2 (Gentoo 4.1.2). I also tried version 4.1.1 of gcc. My backtrace in 2.6.21.1: [ 141.850341] general protection fault: 0000 [1] PREEMPT SMP=20 [ 141.850622] CPU 0=20 [ 141.850768] Modules linked in: kvm_amd kvm [ 141.851006] Pid: 6475, comm: modprobe Not tainted 2.6.21.1 #1 [ 141.851195] RIP: 0010:[] [] :kvm_am= d:svm_hardware_enable+0x91/0xc6 [ 141.851477] RSP: 0000:ffff8100a324fdf8 EFLAGS: 00010006 [ 141.851657] RAX: 0000000000001d01 RBX: 0000000000000040 RCX: 00000000c00= 00080 [ 141.851869] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff880= 11278 [ 141.852082] RBP: ffff81009fea61c0 R08: ffff8100bd4b2e13 R09: 00000000000= 9cb65 [ 141.852292] R10: 0000000000000000 R11: 0000000000000001 R12: ffffffff880= 100a9 [ 141.852504] R13: ffff8100b5bb9438 R14: ffffc2000005fc70 R15: ffffc200000= 5d000 [ 141.852717] FS: 00002afeeaaf2ae0(0000) GS:ffffffff806e8000(0000) knlGS:= 0000000000000000 [ 141.852944] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [ 141.853132] CR2: 00002afeea6ba000 CR3: 00000000b49a9000 CR4: 00000000000= 006e0 [ 141.853344] Process modprobe (pid: 6475, threadinfo ffff8100a324e000, ta= sk ffff8100b6b078a0) [ 141.853577] Stack: ffff806fa0000080 000000000000ffff ffffffff880100a9 0= 000000000000000 [ 141.853933] 0000000000000000 ffffffff80238f9d 0000000000000000 ffffffff= 88012980 [ 141.854252] ffffffff88012980 ffffffff88002537 ffff8100b5bb9000 ffffffff= 88012980 [ 141.854486] Call Trace: [ 141.854709] [] :kvm_amd:svm_hardware_enable+0x0/0xc6 [ 141.854915] [] on_each_cpu+0x27/0x56 [ 141.855101] [] :kvm:kvm_init_arch+0x87/0x159 [ 141.855294] [] sys_init_module+0x1513/0x1673 [ 141.855488] [] system_call+0x7e/0x83 [ 141.855667]=20 [ 141.855782]=20 [ 141.855782] Code: 0f 30 48 8b 7d 20 e8 08 ca 24 f8 48 8b 7d 20 48 89 c3 = c1 e3=20 [ 141.856681] RIP [] :kvm_amd:svm_hardware_enable+0x91/= 0xc6 [ 141.856922] RSP [ 141.857075] note: modprobe[6475] exited with preempt_count 1 [ 141.857283] BUG: scheduling while atomic: modprobe/0x10000001/6475 [ 141.857478]=20 [ 141.857478] Call Trace: [ 141.857729] [] __sched_text_start+0x60/0x7f2 [ 141.857922] [] __wake_up_common+0x3e/0x68 [ 141.858111] [] __wake_up+0x38/0x4f [ 141.858289] [] __cond_resched+0x1c/0x44 [ 141.858474] [] cond_resched+0x2e/0x39 [ 141.858658] [] unmap_vmas+0x5e9/0x774 [ 141.858842] [] exit_mmap+0x85/0x121 [ 141.859022] [] mmput+0x2c/0x9e [ 141.859197] [] do_exit+0x20d/0x818 [ 141.859377] [] kernel_math_error+0x0/0x90 [ 141.859381] [] do_general_protection+0xfe/0x107 [ 141.859387] [] :kvm_amd:svm_hardware_enable+0x0/0xc6 [ 141.859391] [] error_exit+0x0/0x84 [ 141.859395] [] :kvm_amd:svm_hardware_enable+0x0/0xc6 [ 141.859400] [] :kvm_amd:svm_hardware_enable+0x91/0xc6 [ 141.859405] [] :kvm_amd:svm_hardware_enable+0x13/0xc6 [ 141.859409] [] :kvm_amd:svm_hardware_enable+0x0/0xc6 [ 141.859412] [] on_each_cpu+0x27/0x56 [ 141.859418] [] :kvm:kvm_init_arch+0x87/0x159 [ 141.859422] [] sys_init_module+0x1513/0x1673 [ 141.859426] [] system_call+0x7e/0x83 [ 141.859428]=20 [ 141.859502] BUG: scheduling while atomic: modprobe/0x00000001/6475 [ 141.859504]=20 [ 141.859504] Call Trace: [ 141.859507] [] __sched_text_start+0x60/0x7f2 [ 141.859511] [] dump_trace+0x25a/0x28d [ 141.859515] [] __down+0xe8/0x100 [ 141.859518] [] default_wake_function+0x0/0xe [ 141.859522] [] __down_failed+0x35/0x3a [ 141.859525] [] lock_kernel+0x25/0x29 [ 141.859532] [] __posix_lock_file_conf+0x65/0x3c1 [ 141.859536] [] locks_remove_posix+0x9d/0xc0 [ 141.859540] [] generic_shutdown_super+0xa0/0xf4 [ 141.859544] [] filp_close+0x55/0x65 [ 141.859547] [] put_files_struct+0x68/0xce [ 141.859551] [] do_exit+0x24e/0x818 [ 141.859554] [] kernel_math_error+0x0/0x90 [ 141.859558] [] do_general_protection+0xfe/0x107 [ 141.859563] [] :kvm_amd:svm_hardware_enable+0x0/0xc6 [ 141.859567] [] error_exit+0x0/0x84 [ 141.859571] [] :kvm_amd:svm_hardware_enable+0x0/0xc6 [ 141.859576] [] :kvm_amd:svm_hardware_enable+0x91/0xc6 [ 141.859580] [] :kvm_amd:svm_hardware_enable+0x13/0xc6 [ 141.859585] [] :kvm_amd:svm_hardware_enable+0x0/0xc6 [ 141.859588] [] on_each_cpu+0x27/0x56 [ 141.859594] [] :kvm:kvm_init_arch+0x87/0x159 [ 141.859598] [] sys_init_module+0x1513/0x1673 [ 141.859602] [] system_call+0x7e/0x83 [ 141.859604]=20 [ 141.872543] BUG: scheduling while atomic: modprobe/0x00000001/6475 [ 141.872545]=20 [ 141.872546] Call Trace: [ 141.872549] [] __sched_text_start+0x60/0x7f2 [ 141.872554] [] __down+0xe8/0x100 [ 141.872557] [] default_wake_function+0x0/0xe [ 141.872561] [] __down_failed+0x35/0x3a [ 141.872564] [] lock_kernel+0x25/0x29 [ 141.872568] [] __posix_lock_file_conf+0x65/0x3c1 [ 141.872572] [] locks_remove_posix+0x9d/0xc0 [ 141.872576] [] generic_shutdown_super+0xa0/0xf4 [ 141.872579] [] filp_close+0x55/0x65 [ 141.872583] [] put_files_struct+0x68/0xce [ 141.872587] [] do_exit+0x24e/0x818 [ 141.872591] [] kernel_math_error+0x0/0x90 [ 141.872594] [] do_general_protection+0xfe/0x107 [ 141.872599] [] :kvm_amd:svm_hardware_enable+0x0/0xc6 [ 141.872603] [] error_exit+0x0/0x84 [ 141.872607] [] :kvm_amd:svm_hardware_enable+0x0/0xc6 [ 141.872613] [] :kvm_amd:svm_hardware_enable+0x91/0xc6 [ 141.872617] [] :kvm_amd:svm_hardware_enable+0x13/0xc6 [ 141.872622] [] :kvm_amd:svm_hardware_enable+0x0/0xc6 [ 141.872626] [] on_each_cpu+0x27/0x56 [ 141.872631] [] :kvm:kvm_init_arch+0x87/0x159 [ 141.872635] [] sys_init_module+0x1513/0x1673 [ 141.872640] [] system_call+0x7e/0x83 [ 141.872642]=20 And with 2.6.21.5: [ 96.999724] general protection fault: 0000 [1] PREEMPT SMP=20 [ 97.000007] CPU 0=20 [ 97.000152] Modules linked in: kvm_amd kvm [ 97.000391] Pid: 6177, comm: modprobe Not tainted 2.6.21.5 #1 [ 97.000583] RIP: 0010:[] [] :kvm_am= d:svm_hardware_enable+0x91/0xc6 [ 97.000867] RSP: 0000:ffff8100ba0c5df8 EFLAGS: 00010006 [ 97.001049] RAX: 0000000000001d01 RBX: 0000000000000040 RCX: 00000000c00= 00080 [ 97.001262] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff880= 11278 [ 97.001475] RBP: ffff8100bba53700 R08: ffff8100bd4b2e13 R09: 00000000000= b89db [ 97.001688] R10: 0000000000000000 R11: 0000000000000001 R12: ffffffff880= 100a9 [ 97.001902] R13: ffff8100bba4d438 R14: ffffc2000005fca8 R15: ffffc200000= 5d000 [ 97.002117] FS: 00002b3954247ae0(0000) GS:ffffffff806e8000(0000) knlGS:= 0000000000000000 [ 97.002346] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [ 97.002534] CR2: 0000000000508c28 CR3: 00000000bc5bd000 CR4: 00000000000= 006e0 [ 97.002747] Process modprobe (pid: 6177, threadinfo ffff8100ba0c4000, ta= sk ffff8100ba526b20) [ 97.002982] Stack: ffff806fa0000080 000000000000ffff ffffffff880100a9 0= 000000000000000 [ 97.003341] 0000000000000000 ffffffff80238f35 0000000000000000 ffffffff= 88012980 [ 97.003660] ffffffff88012980 ffffffff88002541 ffff8100bba4d000 ffffffff= 88012980 [ 97.003896] Call Trace: [ 97.004118] [] :kvm_amd:svm_hardware_enable+0x0/0xc6 [ 97.004325] [] on_each_cpu+0x27/0x56 [ 97.004511] [] :kvm:kvm_init_arch+0x87/0x159 [ 97.004707] [] sys_init_module+0x1510/0x1670 [ 97.004901] [] system_call+0x7e/0x83 [ 97.005081]=20 [ 97.005196]=20 [ 97.005197] Code: 0f 30 48 8b 7d 20 e8 b0 c9 24 f8 48 8b 7d 20 48 89 c3 = c1 e3=20 [ 97.006102] RIP [] :kvm_amd:svm_hardware_enable+0x91/= 0xc6 [ 97.006345] RSP [ 97.006498] note: modprobe[6177] exited with preempt_count 1 [ 97.006705] BUG: scheduling while atomic: modprobe/0x10000001/6177 [ 97.006902]=20 [ 97.006902] Call Trace: [ 97.007153] [] __sched_text_start+0x60/0x7f2 [ 97.007348] [] __wake_up_common+0x3e/0x68 [ 97.007537] [] __wake_up+0x38/0x4f [ 97.007716] [] __cond_resched+0x1c/0x44 [ 97.007903] [] cond_resched+0x2e/0x39 [ 97.008087] [] unmap_vmas+0x5e9/0x774 [ 97.008271] [] exit_mmap+0x85/0x121 [ 97.008452] [] mmput+0x2c/0x9e [ 97.008624] [] do_exit+0x20d/0x818 [ 97.008803] [] kernel_math_error+0x0/0x90 [ 97.009003] [] do_general_protection+0xfe/0x107 [ 97.009008] [] :kvm_amd:svm_hardware_enable+0x0/0xc6 [ 97.009013] [] error_exit+0x0/0x84 [ 97.009017] [] :kvm_amd:svm_hardware_enable+0x0/0xc6 [ 97.009021] [] :kvm_amd:svm_hardware_enable+0x91/0xc6 [ 97.009025] [] :kvm_amd:svm_hardware_enable+0x13/0xc6 [ 97.009030] [] :kvm_amd:svm_hardware_enable+0x0/0xc6 [ 97.009032] [] on_each_cpu+0x27/0x56 [ 97.009038] [] :kvm:kvm_init_arch+0x87/0x159 [ 97.009042] [] sys_init_module+0x1510/0x1670 [ 97.009045] [] system_call+0x7e/0x83 [ 97.009047]=20 Yours sincerely, Ren=C3=A9 Nussbaumer --=20 Written on a Gentoo Linux system by Ren=C3=A9 http://www.forkbomb.ch =C2=ABDas Leben ist hart. Forkbomb ist h=C3=A4rter.=C2=BB, (c) 2004 by Fran= k. --oLBj+sq0vYjzfsbl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGdjr4B1CkVTVL/Z8RAuJnAKCxATovexmw2dD3C6RVkHo4ealgWACfR3po OsdodRQQ0TVxCCBLnG78qVs= =w3D0 -----END PGP SIGNATURE----- --oLBj+sq0vYjzfsbl-- --===============0242911629== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --===============0242911629== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --===============0242911629==--