public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Brian Gerst <bgerst@didntduck.org>
To: Matthias Andree <matthias.andree@gmx.de>
Cc: Linux-Kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: cat /proc/bus/pnp/escd -> kernel segfault (2.6 BK)
Date: Mon, 27 Oct 2003 12:22:32 -0500	[thread overview]
Message-ID: <3F9D5458.9010704@didntduck.org> (raw)
In-Reply-To: <20031027044204.GA23976@merlin.emma.line.org>

[-- Attachment #1: Type: text/plain, Size: 1389 bytes --]

Matthias Andree wrote:
> Doing cat /proc/bus/pnp/escd on my Linux 2.6 (BK) crashes:
> 
> Unable to handle kernel paging request at virtual address ffffa00a
>  printing eip:
> 00007228
> *pde = 00002067
> *pte = 00000000
> Oops: 0000 [#2]
> CPU:    0
> EIP:    0098:[<00007228>]    Not tainted
> EFLAGS: 00010086
> EIP is at 0x7228
> eax: 000022ff   ebx: 00b06196   ecx: 000000a0   edx: 00000000
> esi: 0000000a   edi: d1e70000   ebp: d1e773cf   esp: d1e79e64
> ds: 00b0   es: 00a8   ss: 0068
> Process cat (pid: 23647, threadinfo=d1e78000 task=c43f6c80)
> Stack: 000a0002 00b00000 000600a8 73d9720a 00000000 5f0a00a0 61af9e98 007b0000 
>        8000007b 60040000 008200a8 d1e79eec 0090000b 00000042 00b000a8 000000a0 
>        00000000 c0220c50 00000060 00000082 00000000 00000000 0000007b 0000007b 
> Call Trace:
>  [<c0220c50>] __pnp_bios_read_escd+0x110/0x1a0
>  [<c0222080>] proc_read_escd+0x0/0x130
>  [<c0220cf9>] pnp_bios_read_escd+0x19/0x50
>  [<c0222080>] proc_read_escd+0x0/0x130
>  [<c02220ea>] proc_read_escd+0x6a/0x130
>  [<c0222080>] proc_read_escd+0x0/0x130
>  [<c018896e>] proc_file_read+0x16e/0x290
>  [<c0157e63>] vfs_read+0xd3/0x140
>  [<c015811f>] sys_read+0x3f/0x60
>  [<c010a41b>] syscall_call+0x7/0xb
> 
> Willing to provide further debug info, please send directions. This is
> an old Gigabyte 7ZX-R board (AMIBIOS).
> 

Does this patch fix it?

--
				Brian Gerst

[-- Attachment #2: pnpsegs-1 --]
[-- Type: text/plain, Size: 555 bytes --]

diff -urN linux-2.6.0-test9-bk/arch/i386/mm/extable.c linux/arch/i386/mm/extable.c
--- linux-2.6.0-test9-bk/arch/i386/mm/extable.c	2003-07-27 13:11:40.000000000 -0400
+++ linux/arch/i386/mm/extable.c	2003-10-27 12:08:38.000000000 -0500
@@ -34,7 +34,7 @@
 	const struct exception_table_entry *fixup;
 
 #ifdef CONFIG_PNPBIOS
-	if (unlikely((regs->xcs | 8) == 0x88)) /* 0x80 or 0x88 */
+	if (unlikely((unsigned)(regs->xcs - (GDT_ENTRY_PNPBIOS_BASE * 8)) < 16))
 	{
 		extern u32 pnp_bios_fault_eip, pnp_bios_fault_esp;
 		extern u32 pnp_bios_is_utter_crap;

  reply	other threads:[~2003-10-27 17:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-27  4:42 cat /proc/bus/pnp/escd -> kernel segfault (2.6 BK) Matthias Andree
2003-10-27 17:22 ` Brian Gerst [this message]
2003-10-27 19:13   ` Matthias Andree
2003-10-28  1:49     ` Maciej Babinski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F9D5458.9010704@didntduck.org \
    --to=bgerst@didntduck.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthias.andree@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox