This message generated a parse failure. Raw output follows here. Please use 'back' to navigate. From devnull@lkml.org Wed Apr 24 12:34:55 2024 Envelope-to: j@jasper.es Delivery-date: Thu, 10 Oct 2013 05:07:01 +0200 Received: from localhost ([127.0.0.1] helo=squeeze.vs19.net) by squeeze.vs19.net with esmtp (Exim 4.80) (envelope-from ) id 1VU6aa-0000i4-Gi for j@jasper.es; Thu, 10 Oct 2013 05:07:00 +0200 Original-Recipient: rfc822;jasper@telfort.nl Received: from pop3.telfort.nl [213.75.3.52] by squeeze.vs19.net with POP3 (fetchmail-6.3.21) for (single-drop); Thu, 10 Oct 2013 05:07:00 +0200 (CEST) Received: from cpxmta-msg01.kpnxchange.com (10.94.114.22) by cpxmbs-msg01.support.local (8.6.060.30) id 522FAFB8014DA458 for jasper@telfort.nl; Thu, 10 Oct 2013 04:59:47 +0200 Received: from cpsmtpb-ews01.kpnxchange.com (213.75.39.4) by cpxmta-msg01.kpnxchange.com (8.6.060.14) id 522FB3CB03369E30 for jasper@telfort.nl; Thu, 10 Oct 2013 04:59:47 +0200 Received: from cpsps-ews02.kpnxchange.com ([10.94.84.169]) by cpsmtpb-ews01.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Thu, 10 Oct 2013 04:59:47 +0200 Received: from vger.kernel.org ([209.132.180.67]) by cpsps-ews02.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Thu, 10 Oct 2013 04:59:47 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755101Ab3JJC7n convert rfc822-to-quoted-printable (ORCPT ); Wed, 9 Oct 2013 22:59:43 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:16924 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754456Ab3JJC7l (ORCPT ); Wed, 9 Oct 2013 22:59:41 -0400 Received: from 172.24.2.119 (EHLO szxeml212-edg.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.4-GA FastPath queued) with ESMTP id BIZ99343; Thu, 10 Oct 2013 10:59:29 +0800 (CST) Received: from SZXEML405-HUB.china.huawei.com (10.82.67.60) by szxeml212-edg.china.huawei.com (172.24.2.181) with Microsoft SMTP Server (TLS) id 14.3.146.0; Thu, 10 Oct 2013 10:59:03 +0800 Received: from [127.0.0.1] (10.135.74.196) by szxeml405-hub.china.huawei.com (10.82.67.60) with Microsoft SMTP Server id 14.3.146.0; Thu, 10 Oct 2013 10:58:55 +0800 Message-Id: <525617E6.3030200@huawei.com> Date: Thu, 10 Oct 2013 10:58:46 +0800 From: Xishi Qiu User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 Mime-Version: 1.0 To: Xishi Qiu , , Li Zefan Cc: LKML Subject: [BUG] kdump won't work if invalid TSS fault happens in irq context References: <52561232.2060505@huawei.com> In-Reply-To: <52561232.2060505@huawei.com> X-Forwarded-Message-Id: <52561232.2060505@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Originating-IP: [10.135.74.196] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-Id: X-Mailing-List: linux-kernel@vger.kernel.org X-OriginalArrivalTime: 10 Oct 2013 02:59:47.0150 (UTC) FILETIME=[C74DF6E0:01CEC564] X-RcptDomain: telfort.nl I write a module, and find kdump can't boot in the following case. Kernel version is 3.4.24, Intel(R) Xeon(R) CPU E5620, and kernel v3.12=20 has the same problem too. Here is the code: struct timer_list g_timer; void tmrhnd_invtssfault(unsigned long data) { long __res; printk(KERN_EMERG "invalid TSS fault in interrupt context.\n"); __asm__ volatile("int $0x0A" : "=3Da"(__res):); } { ... init_timer(&g_timer); g_timer.expires =3D jiffies + 10; g_timer.data =3D 0; g_timer.function =3D tmrhnd_invtssfault; add_timer(&g_timer); ... } Here is the log: [ 87.801066] kpgenm: invalid TSS fault in interrupt context. [ 87.976956] BUG: unable to handle kernel paging request at ffffffff8= 1467489 [ 87.983979] IP: [] down_read_trylock+0x10/0x20 [ 87.990017] PGD 1a0d067 PUD 1a11063 PMD 14001e1=20 [ 87.994708] Oops: 0003 [#1] SMP=20 [ 87.997985] CPU 2=20 [ 87.999833] Modules linked in: kpgen(O) igb(O) netmap_lin(O) megarai= d_sas sr_mod mpt2sas raid_class uhci_hcd usb_storage ide_cd_mod ide_cor= e mptctl mptsas ata_piix acpi_cpufreq mperf tg3 usbhid hid nfs lockd fs= cache auth_rpcgss nfs_acl sunrpc cdrom scsi_transport_sas e1000 mptscsi= h mptbase ipmi_devintf ipmi_msghandler ext2 ac dm_mod af_packet af_key = zlib_deflate loop coretemp crc32c_intel ghash_clmulni_intel aesni_intel= cryptd ipv6 aes_x86_64 aes_generic pcspkr i2c_i801 mei(C) sg iTCO_wdt = microcode iTCO_vendor_support dca rtc_cmos container ext3 jbd mbcache i= 915 drm_kms_helper drm i2c_algo_bit i2c_core sd_mod crc_t10dif ahci lib= ahci ehci_hcd libata button usbcore usb_common thermal video fan intel_= agp intel_gtt processor thermal_sys hwmon scsi_dh_rdac scsi_dh_alua scs= i_dh_emc scsi_dh_hp_sw scsi_dh scsi_mod [last unloaded: igb] [ 88.075236]=20 [ 88.076738] Pid: 1417644280, comm: =D4=A8F.???=10 Tainted: G = C O 3.4.24.13-0.1-default #1 INSYDE eChiefRiver/Type2 - Board Product = Name1 [ 88.089319] RIP: 0010:[] [] dow= n_read_trylock+0x10/0x20 [ 88.097783] RSP: 0018:ffff8802547fbc88 EFLAGS: 00010002 [ 88.103101] RAX: 4c10246c894c1824 RBX: 0000000000000001 RCX: fffffff= f81467429 [ 88.110238] RDX: 4c10246c894c1825 RSI: 0000000000000010 RDI: fffffff= f81467489 [ 88.117373] RBP: ffff8802547fbc88 R08: ffff8802547fbfd8 R09: 0000000= 000000000 [ 88.124511] R10: ffff88025f28dc50 R11: 0000000000000000 R12: 0000000= 000000001 [ 88.131648] R13: 0000000000000010 R14: ffff8802547fbda8 R15: 0000000= 000000028 [ 88.138786] FS: 0000000000000000(0000) GS:ffff88025f280000(0000) kn= lGS:0000000000000000 [ 88.146876] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [ 88.152626] CR2: ffffffff81467489 CR3: 0000000001a0b000 CR4: 0000000= 0001407e0 [ 88.159764] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000= 000000000 [ 88.166901] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000= 000000400 [ 88.174039] Process =D4=A8F.???=10 (pid: 1417644280, threadinfo ffff= 8802547fa000, task ffff8802547f8440) [ 88.183082] Stack: [ 88.185101] ffff8802547fbd98 ffffffff8146aa24 ffffffffa02ca194 ffff= ffff81467489 [ 88.192601] ffff8802547f8440 ffffffff81467429 ffff8802547fbe78 ffff= ffff814675f5 [ 88.200084] 0000000000000028 ffff8802547fbe88 0000000000000000 ffff= ffffa02ca194 [ 88.207571] Call Trace: [ 88.210031] [] do_page_fault+0x184/0x4b0 [ 88.215617] [] ? tmrhnd_invtssfault+0x14/0x20 [kp= gen] [ 88.222327] [] ? retint_signal+0x25/0x8c [ 88.227901] [] ? restore_args+0x30/0x30 [ 88.233390] [] ? page_fault+0x25/0x30 [ 88.238706] [] ? tmrhnd_invtssfault+0x14/0x20 [kp= gen] [ 88.245411] [] ? tmrhnd_invtssfault+0x14/0x20 [kp= gen] [ 88.252112] [] ? restore_args+0x30/0x30 [ 88.257604] [] ? do_page_fault+0x34/0x4b0 [ 88.263265] [] page_fault+0x25/0x30 [ 88.268408] [] ? tmrhnd_invtssfault+0x14/0x20 [kp= gen] [ 88.275110] [] ? page_fault+0x25/0x30 [ 88.280427] [] ? tmrhnd_invtssfault+0x14/0x20 [kp= gen] [ 88.287130] [] ? tmrhnd_invtssfault+0x14/0x20 [kp= gen] [ 88.293835] [] ? restore_args+0x30/0x30 [ 88.299322] [] ? do_page_fault+0x34/0x4b0 [ 88.304987] [] ? start_secondary+0x7a/0x7c [ 88.310733] Code: c0 83 fa 01 5b 0f 94 c0 41 5c c9 c3 90 90 90 90 90= 90 90 90 90 90 90 90 90 90 90 55 48 89 e5 48 8b 07 48 89 c2 48 83 c2 0= 1 7e 07 48 0f b1 17 75 f0 48 f7 d0 c9 48 c1 e8 3f c3 55 31 c0 48 b= a=20 [ 88.330974] RIP [] down_read_trylock+0x10/0x20 [ 88.337097] RSP [ 88.340590] CR2: ffffffff81467489 [ 88.343921] BUG: unable to handle kernel paging request at ffffffff8= 1467489 [ 88.350926] IP: [] down_read_trylock+0x10/0x20 [ 88.356962] PGD 1a0d067 PUD 1a11063 PMD 14001e1=20 [ 88.361664] Oops: 0003 [#2] SMP=20 [ 88.364940] CPU 2=20 [ 88.366788] Modules linked in: kpgen(O) igb(O) netmap_lin(O) megarai= d_sas sr_mod mpt2sas raid_class uhci_hcd usb_storage ide_cd_mod ide_cor= e mptctl mptsas ata_piix acpi_cpufreq mperf tg3 usbhid hid nfs lockd fs= cache auth_rpcgss nfs_acl sunrpc cdrom scsi_transport_sas e1000 mptscsi= h mptbase ipmi_devintf ipmi_msghandler ext2 ac dm_mod af_packet af_key = zlib_deflate loop coretemp crc32c_intel ghash_clmulni_intel aesni_intel= cryptd ipv6 aes_x86_64 aes_generic pcspkr i2c_i801 mei(C) sg iTCO_wdt = microcode iTCO_vendor_support dca rtc_cmos container ext3 jbd mbcache i= 915 drm_kms_helper drm i2c_algo_bit i2c_core sd_mod crc_t10dif ahci lib= ahci ehci_hcd libata button usbcore usb_common thermal video fan intel_= agp intel_gtt processor thermal_sys hwmon scsi_dh_rdac scsi_dh_alua scs= i_dh_emc scsi_dh_hp_sw scsi_dh scsi_mod [last unloaded: igb] [ 88.442070]=20 [ 88.443570] Pid: 1417644280, comm: =D4=A8F.???=10 Tainted: G = C O 3.4.24.13-0.1-default #1 INSYDE eChiefRiver/Type2 - Board Product = Name1 [ 88.456162] RIP: 0010:[] [] dow= n_read_trylock+0x10/0x20 [ 88.464628] RSP: 0018:ffff8802547fb588 EFLAGS: 00010002 [ 88.469943] RAX: 4c10246c894c1824 RBX: 0000000000000001 RCX: fffffff= f81467429 [ 88.477080] RDX: 4c10246c894c1825 RSI: 0000000000000000 RDI: fffffff= f81467489 [ 88.484216] RBP: ffff8802547fb588 R08: 00000000000000d0 R09: 0000000= 000000000 [ 88.491355] R10: ffffffff81abb680 R11: 0000000000000000 R12: 0000000= 000000018 [ 88.498493] R13: 0000000000000000 R14: ffff8802547fb6a8 R15: 0000000= 000000028 [ 88.505630] FS: 0000000000000000(0000) GS:ffff88025f280000(0000) kn= lGS:0000000000000000 [ 88.513721] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [ 88.519469] CR2: ffffffff81467489 CR3: 0000000001a0b000 CR4: 0000000= 0001407e0 [ 88.526607] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000= 000000000 [ 88.533745] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000= 000000400 [ 88.540881] Process =D4=A8F.???=10 (pid: 1417644280, threadinfo ffff= 8802547fa000, task ffff8802547f8440) [ 88.549924] Stack: [ 88.551945] ffff8802547fb698 ffffffff8146aa24 ffff8802547fb608 ffff= ffff81467489 [ 88.559446] ffff8802547f8440 ffffffff81467429 ffff8802d47fb6e8 547f= b6e900000041 [ 88.566937] ffffffff6c106009 0000000000040000 ffff8802547fb608 ffff= 8802547fb6d8 [ 88.574438] Call Trace: [ 88.576898] [] do_page_fault+0x184/0x4b0 [ 88.582474] [] ? retint_signal+0x25/0x8c [ 88.588050] [] ? restore_args+0x30/0x30 [ 88.593545] [] ? sprintf+0x40/0x50 [ 88.598604] [] ? kallsyms_lookup+0xdd/0x100 [ 88.604442] [] page_fault+0x25/0x30 [ 88.609586] [] ? cache_alloc_refill+0x5e/0x290 [ 88.615691] [] __kmalloc_track_caller+0x24d/0x260 [ 88.622056] [] ? register_nmi_handler+0x8d/0x170 [ 88.628337] [] kstrndup+0x40/0x80 [ 88.633314] [] ? machine_crash_shutdown+0x10/0x10 [ 88.639676] [] register_nmi_handler+0x8d/0x170 [ 88.645780] [] ? retint_signal+0x25/0x8c [ 88.651356] [] ? retint_signal+0x25/0x8c [ 88.656935] [] nmi_shootdown_cpus+0x5a/0xc0 [ 88.662780] [] native_machine_crash_shutdown+0x40= /0x1a0 [ 88.669665] [] ? append_elf_note+0x7a/0xa0 [ 88.675423] [] ? retint_signal+0x25/0x8c [ 88.681008] [] ? retint_signal+0x25/0x8c [ 88.686592] [] machine_crash_shutdown+0xa/0x10 [ 88.692697] [] crash_kexec+0x57/0x100 // kdump w= ill boot soon, but it failed, right? [ 88.698021] [] ? restore_args+0x30/0x30 [ 88.703518] [] ? retint_signal+0x25/0x8c [ 88.709095] [] ? down_read_trylock+0x10/0x20 [ 88.715029] [] oops_end+0xb8/0xf0 [ 88.720008] [] no_context+0x119/0x200 [ 88.725329] [] ? retint_signal+0x25/0x8c [ 88.730915] [] __bad_area_nosemaphore+0x12d/0x220 [ 88.737280] [] ? retint_signal+0x25/0x8c [ 88.742866] [] bad_area_nosemaphore+0xe/0x10 [ 88.748797] [] do_page_fault+0x100/0x4b0 [ 88.754380] [] ? retint_signal+0x25/0x8c [ 88.759967] [] ? restore_args+0x30/0x30 [ 88.765463] [] ? page_fault+0x25/0x30 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"= in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/