All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kurt Roeckx <kurt-burXGKnpAKGzQB+pC5nmwQ@public.gmane.org>
To: David Rientjes <rientjes-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
Cc: "Rafael J. Wysocki" <rjw-KKrjLPT3xs0@public.gmane.org>,
	Dave Jones <davej-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	LKML <linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Kernel Testers
	<kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Mark Langsdorf <mark.langsdorf-5C7GfCeVMHo@public.gmane.org>,
	Naga Chumbalkar
	<nagananda.chumbalkar-VXdhtT5mjnY@public.gmane.org>
Subject: Re: [Bug #13780] NULL pointer dereference loading powernowk8
Date: Wed, 16 Sep 2009 08:47:08 +0200	[thread overview]
Message-ID: <20090916064708.GA25472@roeckx.be> (raw)
In-Reply-To: <alpine.DEB.1.00.0909151642100.24059-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>

On Tue, Sep 15, 2009 at 04:45:37PM -0700, David Rientjes wrote:
> On Thu, 10 Sep 2009, Rafael J. Wysocki wrote:
> 
> > > So I did a biset, and this is the result:
> > > $ git bisect good
> > > 0e64a0c982c06a6b8f5e2a7f29eb108fdf257b2f is first bad commit
> 
> 0e64a0c has this cleanup, which isn't equivalent to the previous code:

Please look at the patch I attached to the bug report.  There is
other code that is not equivalent.  It's in comment #17:
http://bugzilla.kernel.org/show_bug.cgi?id=13780#c17

And the patch itself:
http://bugzilla.kernel.org/attachment.cgi?id=23048

This patch fixes my problem.

> @@ -779,11 +834,12 @@ static int powernow_k8_cpu_init_acpi(struct powernow_k8_data *data)
>  		goto err_out;
>  	}
>  
> -	if ((data->acpi_data.control_register.space_id != ACPI_ADR_SPACE_FIXED_HARDWARE) ||
> -		(data->acpi_data.status_register.space_id != ACPI_ADR_SPACE_FIXED_HARDWARE)) {
> +	space_id = data->acpi_data.control_register.space_id;
> +	if ((space_id != ACPI_ADR_SPACE_FIXED_HARDWARE) ||
> +		(space_id != ACPI_ADR_SPACE_FIXED_HARDWARE)) {
>  		dprintk("Invalid control/status registers (%x - %x)\n",
>  			data->acpi_data.control_register.space_id,
> -			data->acpi_data.status_register.space_id);
> +			space_id);
>  		goto err_out;
>  	}
>  
> This got fixed in 2c701b1 in 2.6.31-rc8, so this is most likely the 
> problem that Kurt was encountering.
> 
> Kurt, could you try 2.6.31 and see if you still experience the issue?  If 
> not, this can be closed.

I also noticed this difference (comment #18), patched it, and
tried it.  This is not the issue.  Also note that I tested the
2.6.31-rc9 kernel which still had the problem.

The bug report might be a little confusing since after comment #18
there are older mails pasted in the bug report.


Kurt

WARNING: multiple messages have this Message-ID (diff)
From: Kurt Roeckx <kurt@roeckx.be>
To: David Rientjes <rientjes@google.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>, Dave Jones <davej@redhat.com>,
	LKML <linux-kernel@vger.kernel.org>,
	Kernel Testers <kernel-testers@vger.kernel.org>,
	Mark Langsdorf <mark.langsdorf@amd.com>,
	Naga Chumbalkar <nagananda.chumbalkar@hp.com>
Subject: Re: [Bug #13780] NULL pointer dereference loading powernowk8
Date: Wed, 16 Sep 2009 08:47:08 +0200	[thread overview]
Message-ID: <20090916064708.GA25472@roeckx.be> (raw)
In-Reply-To: <alpine.DEB.1.00.0909151642100.24059@chino.kir.corp.google.com>

On Tue, Sep 15, 2009 at 04:45:37PM -0700, David Rientjes wrote:
> On Thu, 10 Sep 2009, Rafael J. Wysocki wrote:
> 
> > > So I did a biset, and this is the result:
> > > $ git bisect good
> > > 0e64a0c982c06a6b8f5e2a7f29eb108fdf257b2f is first bad commit
> 
> 0e64a0c has this cleanup, which isn't equivalent to the previous code:

Please look at the patch I attached to the bug report.  There is
other code that is not equivalent.  It's in comment #17:
http://bugzilla.kernel.org/show_bug.cgi?id=13780#c17

And the patch itself:
http://bugzilla.kernel.org/attachment.cgi?id=23048

This patch fixes my problem.

> @@ -779,11 +834,12 @@ static int powernow_k8_cpu_init_acpi(struct powernow_k8_data *data)
>  		goto err_out;
>  	}
>  
> -	if ((data->acpi_data.control_register.space_id != ACPI_ADR_SPACE_FIXED_HARDWARE) ||
> -		(data->acpi_data.status_register.space_id != ACPI_ADR_SPACE_FIXED_HARDWARE)) {
> +	space_id = data->acpi_data.control_register.space_id;
> +	if ((space_id != ACPI_ADR_SPACE_FIXED_HARDWARE) ||
> +		(space_id != ACPI_ADR_SPACE_FIXED_HARDWARE)) {
>  		dprintk("Invalid control/status registers (%x - %x)\n",
>  			data->acpi_data.control_register.space_id,
> -			data->acpi_data.status_register.space_id);
> +			space_id);
>  		goto err_out;
>  	}
>  
> This got fixed in 2c701b1 in 2.6.31-rc8, so this is most likely the 
> problem that Kurt was encountering.
> 
> Kurt, could you try 2.6.31 and see if you still experience the issue?  If 
> not, this can be closed.

I also noticed this difference (comment #18), patched it, and
tried it.  This is not the issue.  Also note that I tested the
2.6.31-rc9 kernel which still had the problem.

The bug report might be a little confusing since after comment #18
there are older mails pasted in the bug report.


Kurt


  parent reply	other threads:[~2009-09-16  6:47 UTC|newest]

Thread overview: 87+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-06 18:10 2.6.31-rc9: Reported regressions 2.6.29 -> 2.6.30 Rafael J. Wysocki
2009-09-06 18:10 ` Rafael J. Wysocki
2009-09-06 18:10 ` Rafael J. Wysocki
2009-09-06 18:10 ` [Bug #13180] 2.6.30-rc2: WARNING at i915_gem.c for i915_gem_idle Rafael J. Wysocki
2009-09-06 18:10   ` Rafael J. Wysocki
2009-09-06 18:11 ` [Bug #13318] AGP doesn't work anymore on nforce2 Rafael J. Wysocki
2009-09-10 12:02   ` Karsten Mehrhoff
2009-09-10 12:02     ` Karsten Mehrhoff
     [not found]     ` <op.uz1iefpygp7xae-savSHZN5Fh8qMp+WYRx65w@public.gmane.org>
2009-09-10 20:53       ` Rafael J. Wysocki
2009-09-10 20:53         ` Rafael J. Wysocki
2009-09-06 18:11 ` [Bug #13306] hibernate slow on _second_ run Rafael J. Wysocki
2009-09-06 18:11   ` Rafael J. Wysocki
2009-09-06 18:11 ` [Bug #13341] Random Oops at boot at loading ip6tables rules Rafael J. Wysocki
2009-09-06 18:11   ` Rafael J. Wysocki
2009-09-06 18:11 ` [Bug #13328] b44: eth0: BUG! Timeout waiting for bit 00000002 of register 42c to clear Rafael J. Wysocki
2009-09-06 18:11   ` Rafael J. Wysocki
2009-09-12 19:27   ` Francis Moreau
2009-09-12 19:27     ` Francis Moreau
2009-09-06 18:11 ` [Bug #13351] 2.6.30 - 2.6.31 corrupts my system after suspend resume with readonly mounted hard disk Rafael J. Wysocki
2009-09-06 18:11   ` Rafael J. Wysocki
2009-09-06 18:11 ` [Bug #13362] rt2x00: slow wifi with correct basic rate bitmap Rafael J. Wysocki
2009-09-06 18:11   ` Rafael J. Wysocki
2009-09-06 18:11 ` [Bug #13407] adb trackpad disappears after suspend to ram Rafael J. Wysocki
2009-09-06 18:11   ` Rafael J. Wysocki
2009-09-06 18:11 ` [Bug #13401] pktcdvd writing is really slow with CFQ scheduler (bisected) Rafael J. Wysocki
2009-09-06 18:11 ` [Bug #13408] Performance regression in 2.6.30-rc7 Rafael J. Wysocki
2009-09-06 18:11 ` [Bug #13502] GPE storm causes polling mode, which causes /proc/acpi/battery read to take 4 seconds - MacBookPro4,1 Rafael J. Wysocki
2009-09-06 18:11   ` Rafael J. Wysocki
2009-09-06 18:11 ` [Bug #13512] D43 on 2.6.30 doesn't suspend anymore Rafael J. Wysocki
2009-09-06 18:11 ` [Bug #13682] The webcam stopped working when upgrading from 2.6.29 to 2.6.30 Rafael J. Wysocki
2009-09-06 18:11 ` [Bug #13581] ath9k doesn't work with newer kernels Rafael J. Wysocki
2009-09-06 18:11 ` [Bug #13558] Tracelog during resume Rafael J. Wysocki
2009-09-06 18:11   ` Rafael J. Wysocki
2009-09-06 18:11 ` [Bug #13583] pdflush uses 5% CPU on otherwise idle system Rafael J. Wysocki
2009-09-06 18:11   ` Rafael J. Wysocki
2009-09-06 18:11 ` [Bug #13564] random general protection fault at boot time caused by khubd Rafael J. Wysocki
2009-09-06 18:11 ` [Bug #13797] iBook G4 doesn't suspend since 2ed8d2b3a8 Rafael J. Wysocki
2009-09-06 18:11   ` Rafael J. Wysocki
2009-09-06 18:11 ` [Bug #13898] Intel 3945ABG - problems on 2.6.30.X Rafael J. Wysocki
2009-09-06 18:11   ` Rafael J. Wysocki
2009-09-06 18:11 ` [Bug #13795] abnormal boot and no suspend due to 'async' (fastboot) Rafael J. Wysocki
2009-09-06 18:11 ` [Bug #13739] 2.6.30 leaking keys on console switch Rafael J. Wysocki
2009-09-06 18:11 ` [Bug #13780] NULL pointer dereference loading powernowk8 Rafael J. Wysocki
2009-09-06 18:11   ` Rafael J. Wysocki
2009-09-06 21:27   ` David Rientjes
2009-09-06 21:27     ` David Rientjes
     [not found]     ` <alpine.DEB.1.00.0909061426500.16301-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-09-06 21:33       ` Rafael J. Wysocki
2009-09-06 21:33         ` Rafael J. Wysocki
2009-09-06 22:55       ` Kurt Roeckx
2009-09-06 22:55         ` Kurt Roeckx
2009-09-06 18:11 ` [Bug #13770] System freeze on XFS filesystem recovery on an external disk Rafael J. Wysocki
2009-09-06 18:11 ` [Bug #13949] XFS regression Rafael J. Wysocki
2009-09-06 18:11   ` Rafael J. Wysocki
2009-09-07 15:25   ` Christoph Hellwig
2009-09-07 15:25     ` Christoph Hellwig
     [not found]     ` <20090907152553.GA21768-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2009-09-08 14:30       ` [Bug #13949] Cryptoloop stuck I/O issue on partition or loopback device Justin Piszcz
2009-09-08 14:30         ` Justin Piszcz
     [not found]         ` <alpine.DEB.2.00.0909081029050.7636-0qmrozcXWo8bm2hyYBkBBg@public.gmane.org>
2009-09-08 19:05           ` Rafael J. Wysocki
2009-09-08 19:05             ` Rafael J. Wysocki
2009-09-09 21:26             ` Chuck Ebbert
2009-09-06 18:11 ` [Bug #14049] joydev: blacklist digitizers avoids recognition of Saitek X52 joysticks Rafael J. Wysocki
2009-09-06 18:11 ` [Bug #14105] pcmcia cards stop working after resuming from snapshot cycle (hibernation) Rafael J. Wysocki
2009-09-06 18:11   ` Rafael J. Wysocki
2009-09-06 18:11 ` [Bug #13958] ath5k Atheros AR5001 low signal Rafael J. Wysocki
     [not found] ` <200909080112.14997.rjw@sisk.pl>
     [not found]   ` <20090908194653.GA3517@roeckx.be>
2009-09-10 20:59     ` [Bug #13780] NULL pointer dereference loading powernowk8 Rafael J. Wysocki
     [not found]       ` <200909102259.15144.rjw-KKrjLPT3xs0@public.gmane.org>
2009-09-15 23:45         ` David Rientjes
2009-09-15 23:45           ` David Rientjes
     [not found]           ` <alpine.DEB.1.00.0909151642100.24059-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-09-16  6:47             ` Kurt Roeckx [this message]
2009-09-16  6:47               ` Kurt Roeckx
2009-09-16  7:01               ` David Rientjes
     [not found]                 ` <alpine.DEB.1.00.0909152359131.13366-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-09-16 12:01                   ` Kurt Roeckx
2009-09-16 12:01                     ` Kurt Roeckx
     [not found]               ` <20090916064708.GA25472-burXGKnpAKGzQB+pC5nmwQ@public.gmane.org>
2009-09-16 15:07                 ` Dave Jones
2009-09-16 15:07                   ` Dave Jones
  -- strict thread matches above, loose matches on Subject: below --
2009-08-25 20:37 2.6.31-rc7-git2: Reported regressions 2.6.29 -> 2.6.30 Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13780] NULL pointer dereference loading powernowk8 Rafael J. Wysocki
2009-08-25 21:05   ` Rafael J. Wysocki
2009-08-19 20:36 2.6.31-rc6-git5: Reported regressions 2.6.29 -> 2.6.30 Rafael J. Wysocki
2009-08-19 20:40 ` [Bug #13780] NULL pointer dereference loading powernowk8 Rafael J. Wysocki
2009-08-19 20:40   ` Rafael J. Wysocki
2009-08-09 21:07 2.6.31-rc5-git5: Reported regressions 2.6.29 -> 2.6.30 Rafael J. Wysocki
2009-08-09 21:10 ` [Bug #13780] NULL pointer dereference loading powernowk8 Rafael J. Wysocki
2009-08-09 21:10   ` Rafael J. Wysocki
2009-08-10 10:28   ` David Rientjes
2009-08-10 10:28     ` David Rientjes
2009-08-02 19:06 2.6.31-rc5: Reported regressions 2.6.29 -> 2.6.30 Rafael J. Wysocki
2009-08-02 19:09 ` [Bug #13780] NULL pointer dereference loading powernowk8 Rafael J. Wysocki
2009-08-02 19:09   ` Rafael J. Wysocki
2009-07-26 20:41 2.6.31-rc4: Reported regressions 2.6.29 -> 2.6.30 Rafael J. Wysocki
2009-07-26 20:45 ` [Bug #13780] NULL pointer dereference loading powernowk8 Rafael J. Wysocki
2009-07-30 22:16   ` David Rientjes
2009-07-30 22:16     ` David Rientjes

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=20090916064708.GA25472@roeckx.be \
    --to=kurt-burxgknpakgzqb+pc5nmwq@public.gmane.org \
    --cc=davej-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mark.langsdorf-5C7GfCeVMHo@public.gmane.org \
    --cc=nagananda.chumbalkar-VXdhtT5mjnY@public.gmane.org \
    --cc=rientjes-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org \
    --cc=rjw-KKrjLPT3xs0@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.