public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Bjoern Schmidt <lucky21@uni-paderborn.de>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [BUG] in 2.6.5 at msr.c and cpuid.c
Date: Mon, 19 Apr 2004 13:57:32 -0700	[thread overview]
Message-ID: <40843D3C.8090409@zytor.com> (raw)
In-Reply-To: <40842288.3090501@uni-paderborn.de>

This is pretty interesting... whomever changed cpuid.c/msr.c to the new
cpu_online() macro missed the fact that cpu_online() doesn't handle
out-of-range numbers (on SMP it'll return garbage, on UP it will BUG);
it still doesn't change the fact that it shouldn't have been there in
the first place...

Bjoern Schmidt wrote:
> 
> Apr 18 15:05:51 kilobyte kernel: ------------[ cut here ]------------
> Apr 18 15:05:51 kilobyte kernel: kernel BUG at arch/i386/kernel/msr.c:244!
> Apr 18 15:05:51 kilobyte kernel: invalid operand: 0000 [#1]
> Apr 18 15:05:51 kilobyte kernel: PREEMPT
> Apr 18 15:05:51 kilobyte kernel: CPU:    0
> Apr 18 15:05:51 kilobyte kernel: EIP:    0060:[<c0115482>]    Not tainted
> Apr 18 15:05:51 kilobyte kernel: EFLAGS: 00010202   (2.6.5)
> Apr 18 15:05:51 kilobyte kernel: EIP is at msr_open+0x32/0x40
> Apr 18 15:05:51 kilobyte kernel: eax: c035fae0   ebx: c7d64000   ecx:
> c9dfbc9c   edx: 00000001
> Apr 18 15:05:51 kilobyte kernel: esi: c9dfbc60   edi: 00000000   ebp:
> c0115450   esp: c7d65f18
> Apr 18 15:05:51 kilobyte kernel: ds: 007b   es: 007b   ss: 0068
> Apr 18 15:05:51 kilobyte kernel: Process smbd (pid: 17921,
> threadinfo=c7d64000 task=c8a8a6c0)
> Apr 18 15:05:51 kilobyte kernel: Stack: c01595a2 c3866ad4 c326c0c0
> c7d65f28 00000001 c326c0c0 c3866ad4 00000001
> Apr 18 15:05:51 kilobyte kernel: c9fec1e0 c014f680 c3866ad4 c326c0c0
> 404c88d7 00008000 00008000 c4d40000
> Apr 18 15:05:51 kilobyte kernel: c7d64000 c014f528 c269a160 c9fec1e0
> 00008000 c7d65f70 c269a160 c9fec1e0
> Apr 18 15:05:51 kilobyte kernel: Call Trace:
> Apr 18 15:05:51 kilobyte kernel: [<c01595a2>] chrdev_open+0xf2/0x220
> Apr 18 15:05:51 kilobyte kernel: [<c014f680>] dentry_open+0x150/0x210
> Apr 18 15:05:51 kilobyte kernel: [<c014f528>] filp_open+0x68/0x70
> Apr 18 15:05:51 kilobyte kernel: [<c014f9cb>] sys_open+0x5b/0x90
> Apr 18 15:05:51 kilobyte kernel: [<c0107319>] sysenter_past_esp+0x52/0x71
> Apr 18 15:05:51 kilobyte kernel:
> Apr 18 15:05:51 kilobyte kernel: Code: 0f 0b f4 00 4a 32 32 c0 eb e6 90
> 90 90 90 55 b8 00 e0 ff ff


      parent reply	other threads:[~2004-04-19 20:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <40842288.3090501@uni-paderborn.de>
2004-04-19 20:40 ` [BUG] in 2.6.5 at msr.c and cpuid.c H. Peter Anvin
2004-04-19 20:57 ` H. Peter Anvin [this message]

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=40843D3C.8090409@zytor.com \
    --to=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lucky21@uni-paderborn.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