mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mikael Pettersson <mikpe@csd.uu.se>
To: ak@suse.de, torvalds@osdl.org
Cc: akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Fix a 64bit bug in kobject module request
Date: Sun, 14 Mar 2004 13:11:49 +0100 (MET)	[thread overview]
Message-ID: <200403141211.i2ECBnJw008435@harpo.it.uu.se> (raw)

On Thu, 11 Mar 2004 05:09:43 +0100, Andi Kleen wrote:
>>From Takashi Iwai
>
>kobj_lookup had a 64bit bug, which caused the request of a unknown
>character device to burn CPU instead of failing quickly.
>
>diff -burpN -X ../KDIFX linux-vanilla/drivers/base/map.c linux-2.6.4-amd64/drivers/base/map.c
>--- linux-vanilla/drivers/base/map.c	2003-09-23 08:03:40.000000000 +0200
>+++ linux-2.6.4-amd64/drivers/base/map.c	2004-03-08 15:23:45.000000000 +0100
>@@ -96,7 +96,7 @@ struct kobject *kobj_lookup(struct kobj_
> {
> 	struct kobject *kobj;
> 	struct probe *p;
>-	unsigned best = ~0U;
>+	unsigned long best = ~0UL;
> 
> retry:
> 	down_read(domain->sem);

My Athlon64 (FC1/x86_64 user-space) has been having mysterious
module autoloading failures where some modules (char-major-10-$N)
autoloaded just fine, but many ({char,block}-major-$N) did not.
This patch solved that problem.

Thanks Andi.

/Mikael

             reply	other threads:[~2004-03-14 12:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-14 12:11 Mikael Pettersson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-03-11  4:09 Andi Kleen

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=200403141211.i2ECBnJw008435@harpo.it.uu.se \
    --to=mikpe@csd.uu.se \
    --cc=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.org \
    /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

all inboxes | Powered by JetHome®