public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6] fix address passing of unknown_bootoption
@ 2004-11-07 21:47 Michael Buesch
  2004-11-08  0:42 ` Andrew Morton
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Buesch @ 2004-11-07 21:47 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux kernel mailing list

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

Hi Andrew,

Addresses of functions are returned by their name without
parantheses. Remove an & in main.c

Sorry for the attachment. My mailer is currently broken and
corrupts diffs.

BTW:
I have two strange oopses. Can the additional & be the reason
for the oopses? They look very strange to me, hmm.


Unable to handle kernel paging request at virtual address 00020800
 printing eip:
00020800
*pde = 00000000
Oops: 0000 [#1]
SMP 
Modules linked in: ipv6 ohci_hcd tuner tvaudio msp3400 bttv video_buf btcx_risc nvidia ehci_hcd uhci_hcd usbcore intel_agp agpgart evdev
CPU:    0
EIP:    0060:[<00020800>]    Tainted: P   VLI
EFLAGS: 00010296   (2.6.9-ck3-ac6-nozeroram) 
EIP is at 0x20800
eax: 00000001   ebx: b03e6000   ecx: 00000001   edx: 00000084
esi: 00099100   edi: b01020a7   ebp: 00459007   esp: b03e7fec
ds: 007b   es: 007b   ss: 0068
Process swapper (pid: 0, threadinfo=b03e6000 task=b034bac0)
Stack: b03e881c 000000d9 b03e8310 b04132a0 b0100211 
Call Trace:
 [<b03e881c>] start_kernel+0x139/0x152
 [<b03e8310>] unknown_bootoption+0x0/0x171
Code:  Bad EIP value.
 <0>Kernel panic - not syncing: Attempted to kill the idle task!


Unable to handle kernel paging request at virtual address 00099108
 printing eip:
b01020a7
*pde = 00000000
Oops: 0000 [#1]
SMP 
Modules linked in: nvidia ohci_hcd tuner tvaudio msp3400 bttv video_buf btcx_risc ehci_hcd uhci_hcd usbcore intel_agp agpgart evdev
CPU:    0
EIP:    0060:[<b01020a7>]    Tainted: P   VLI
EFLAGS: 00010292   (2.6.9-ck2-ac4-nozeroram) 
EIP is at cpu_idle+0x2e/0x3c
eax: 00000001   ebx: 00099100   ecx: 00000000   edx: 0000001d
esi: 00000000   edi: 00000008   ebp: 004f3007   esp: b0477fe8
ds: 007b   es: 007b   ss: 0068
Process swapper (pid: 0, threadinfo=b0476000 task=b03ccac0)
Stack: 00020800 b047881c 000000dd b0478310 b04a62a0 b0100211 
Call Trace:
 [<b047881c>] start_kernel+0x139/0x152
 [<b0478310>] unknown_bootoption+0x0/0x171
Code: e0 ff ff 21 e3 eb 24 8b 0d 80 56 4a b0 b8 1a 20 10 b0 8b 15 a0 e5 3c b0 85 c9 0f 44 c8 8b 43 10 c1 e0 07 89 90 04 ea 4a b0 ff d1 <8b> 43 08 a8 08 74 d5 e8 0d a9 26 00 eb f2 56 53 fb ba 00 e0 ff 
 <0>Kernel panic - not syncing: Attempted to kill the idle task!

[-- Attachment #2: unknown_bootoption-fix.diff --]
[-- Type: text/x-diff, Size: 586 bytes --]

Index: init/main.c
===================================================================
RCS file: /home/mb/develop/linux/rsync/linux-2.5/init/main.c,v
retrieving revision 1.156
diff -u -p -r1.156 main.c
--- init/main.c	27 Aug 2004 17:31:54 -0000	1.156
+++ init/main.c	7 Nov 2004 21:24:50 -0000
@@ -506,7 +506,7 @@ asmlinkage void __init start_kernel(void
 	parse_early_param();
 	parse_args("Booting kernel", command_line, __start___param,
 		   __stop___param - __start___param,
-		   &unknown_bootoption);
+		   unknown_bootoption);
 	sort_main_extable();
 	trap_init();
 	rcu_init();

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2.6] fix address passing of unknown_bootoption
  2004-11-07 21:47 [PATCH 2.6] fix address passing of unknown_bootoption Michael Buesch
@ 2004-11-08  0:42 ` Andrew Morton
  2004-11-08  0:53   ` Randy.Dunlap
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Morton @ 2004-11-08  0:42 UTC (permalink / raw)
  To: Michael Buesch; +Cc: linux-kernel

Michael Buesch <mbuesch@freenet.de> wrote:
>
> Hi Andrew,
> 
> Addresses of functions are returned by their name without
> parantheses. Remove an & in main.c

Using `&' in fornt of a function name when passing the function's address
is unnecessary and is kinda dorky, but your patch shouldn't change
generated code.

> Unable to handle kernel paging request at virtual address 00020800
>  printing eip:
> 00020800
> *pde = 00000000
> Oops: 0000 [#1]
> SMP 
> Modules linked in: ipv6 ohci_hcd tuner tvaudio msp3400 bttv video_buf btcx_risc nvidia ehci_hcd uhci_hcd usbcore intel_agp agpgart evdev
> CPU:    0
> EIP:    0060:[<00020800>]    Tainted: P   VLI
> EFLAGS: 00010296   (2.6.9-ck3-ac6-nozeroram) 
> EIP is at 0x20800
> eax: 00000001   ebx: b03e6000   ecx: 00000001   edx: 00000084
> esi: 00099100   edi: b01020a7   ebp: 00459007   esp: b03e7fec
> ds: 007b   es: 007b   ss: 0068
> Process swapper (pid: 0, threadinfo=b03e6000 task=b034bac0)
> Stack: b03e881c 000000d9 b03e8310 b04132a0 b0100211 
> Call Trace:
>  [<b03e881c>] start_kernel+0x139/0x152
>  [<b03e8310>] unknown_bootoption+0x0/0x171
> Code:  Bad EIP value.
>  <0>Kernel panic - not syncing: Attempted to kill the idle task!
> 
> 
> Unable to handle kernel paging request at virtual address 00099108
>  printing eip:
> b01020a7
> *pde = 00000000
> Oops: 0000 [#1]
> SMP 
> Modules linked in: nvidia ohci_hcd tuner tvaudio msp3400 bttv video_buf btcx_risc ehci_hcd uhci_hcd usbcore intel_agp agpgart evdev
> CPU:    0
> EIP:    0060:[<b01020a7>]    Tainted: P   VLI
> EFLAGS: 00010292   (2.6.9-ck2-ac4-nozeroram) 
> EIP is at cpu_idle+0x2e/0x3c
> eax: 00000001   ebx: 00099100   ecx: 00000000   edx: 0000001d
> esi: 00000000   edi: 00000008   ebp: 004f3007   esp: b0477fe8
> ds: 007b   es: 007b   ss: 0068
> Process swapper (pid: 0, threadinfo=b0476000 task=b03ccac0)
> Stack: 00020800 b047881c 000000dd b0478310 b04a62a0 b0100211 
> Call Trace:
>  [<b047881c>] start_kernel+0x139/0x152
>  [<b0478310>] unknown_bootoption+0x0/0x171
> Code: e0 ff ff 21 e3 eb 24 8b 0d 80 56 4a b0 b8 1a 20 10 b0 8b 15 a0 e5 3c b0 85 c9 0f 44 c8 8b 43 10 c1 e0 07 89 90 04 ea 4a b0 ff d1 <8b> 43 08 a8 08 74 d5 e8 0d a9 26 00 eb f2 56 53 fb ba 00 e0 ff 
>  <0>Kernel panic - not syncing: Attempted to kill the idle task!

hm, I don't know what happened there.  Maybe the value of pm_idle in
cpu_idle() is garbage.  Or maybe not.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2.6] fix address passing of unknown_bootoption
  2004-11-08  0:42 ` Andrew Morton
@ 2004-11-08  0:53   ` Randy.Dunlap
  2004-11-08  8:43     ` Michael Buesch
  0 siblings, 1 reply; 6+ messages in thread
From: Randy.Dunlap @ 2004-11-08  0:53 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Michael Buesch, linux-kernel

Andrew Morton wrote:
> Michael Buesch <mbuesch@freenet.de> wrote:
> 
>>Hi Andrew,
>>
>>Addresses of functions are returned by their name without
>>parantheses. Remove an & in main.c
> 
> 
> Using `&' in fornt of a function name when passing the function's address
> is unnecessary and is kinda dorky, but your patch shouldn't change
> generated code.
> 
> 
>>Unable to handle kernel paging request at virtual address 00020800
>> printing eip:
>>00020800
>>*pde = 00000000
>>Oops: 0000 [#1]
>>SMP 
>>Modules linked in: ipv6 ohci_hcd tuner tvaudio msp3400 bttv video_buf btcx_risc nvidia ehci_hcd uhci_hcd usbcore intel_agp agpgart evdev
>>CPU:    0
>>EIP:    0060:[<00020800>]    Tainted: P   VLI
>>EFLAGS: 00010296   (2.6.9-ck3-ac6-nozeroram) 
>>EIP is at 0x20800
>>eax: 00000001   ebx: b03e6000   ecx: 00000001   edx: 00000084
>>esi: 00099100   edi: b01020a7   ebp: 00459007   esp: b03e7fec
>>ds: 007b   es: 007b   ss: 0068
>>Process swapper (pid: 0, threadinfo=b03e6000 task=b034bac0)
>>Stack: b03e881c 000000d9 b03e8310 b04132a0 b0100211 
>>Call Trace:
>> [<b03e881c>] start_kernel+0x139/0x152
>> [<b03e8310>] unknown_bootoption+0x0/0x171
>>Code:  Bad EIP value.
>> <0>Kernel panic - not syncing: Attempted to kill the idle task!
>>
>>
>>Unable to handle kernel paging request at virtual address 00099108
>> printing eip:
>>b01020a7
>>*pde = 00000000
>>Oops: 0000 [#1]
>>SMP 
>>Modules linked in: nvidia ohci_hcd tuner tvaudio msp3400 bttv video_buf btcx_risc ehci_hcd uhci_hcd usbcore intel_agp agpgart evdev
>>CPU:    0
>>EIP:    0060:[<b01020a7>]    Tainted: P   VLI
>>EFLAGS: 00010292   (2.6.9-ck2-ac4-nozeroram) 
>>EIP is at cpu_idle+0x2e/0x3c
>>eax: 00000001   ebx: 00099100   ecx: 00000000   edx: 0000001d
>>esi: 00000000   edi: 00000008   ebp: 004f3007   esp: b0477fe8
>>ds: 007b   es: 007b   ss: 0068
>>Process swapper (pid: 0, threadinfo=b0476000 task=b03ccac0)
>>Stack: 00020800 b047881c 000000dd b0478310 b04a62a0 b0100211 
>>Call Trace:
>> [<b047881c>] start_kernel+0x139/0x152
>> [<b0478310>] unknown_bootoption+0x0/0x171
>>Code: e0 ff ff 21 e3 eb 24 8b 0d 80 56 4a b0 b8 1a 20 10 b0 8b 15 a0 e5 3c b0 85 c9 0f 44 c8 8b 43 10 c1 e0 07 89 90 04 ea 4a b0 ff d1 <8b> 43 08 a8 08 74 d5 e8 0d a9 26 00 eb f2 56 53 fb ba 00 e0 ff 
>> <0>Kernel panic - not syncing: Attempted to kill the idle task!
> 
> 
> hm, I don't know what happened there.  Maybe the value of pm_idle in
> cpu_idle() is garbage.  Or maybe not.

Zwane and someone else had patches for that happening IIRC
a month or 2 back.
I can dig them out if wanted... Michael, want to try?

-- 
~Randy

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2.6] fix address passing of unknown_bootoption
  2004-11-08  0:53   ` Randy.Dunlap
@ 2004-11-08  8:43     ` Michael Buesch
  2004-11-08 17:42       ` Randy.Dunlap
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Buesch @ 2004-11-08  8:43 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: Andrew Morton, linux-kernel

Quoting "Randy.Dunlap" <rddunlap@osdl.org>:
> > hm, I don't know what happened there.  Maybe the value of pm_idle in
> > cpu_idle() is garbage.  Or maybe not.
> 
> Zwane and someone else had patches for that happening IIRC
> a month or 2 back.
> I can dig them out if wanted... Michael, want to try?


Yes, sure. Please.



oh, one second before pressing the send button for this mail I had
another panic. 8-}

Unable to handle kernel paging request at virtual address 00020800
 printing eip:
00020800
*pde = 00000000
Oops: 0000 [#1]
SMP 
Modules linked in: ipv6 ohci_hcd tuner tvaudio msp3400 bttv video_buf btcx_risc nvidia ehci_hcd uhci_hcd usbcore intel_agp agpgart evdev
CPU:    0
EIP:    0060:[<00020800>]    Tainted: P   VLI
EFLAGS: 00010296   (2.6.9-ck3-ac6-nozeroram) 
EIP is at 0x20800
eax: 00000001   ebx: b03e8000   ecx: 00000001   edx: 00000001
esi: 00099100   edi: b01020a7   ebp: 0045c007   esp: b03e9fec
ds: 007b   es: 007b   ss: 0068
Process swapper (pid: 0, threadinfo=b03e8000 task=b034cac0)
Stack: b03ea81c 000000db b03ea310 b04162a0 b0100211 
Call Trace:
 [<b03ea81c>] start_kernel+0x139/0x152
 [<b03ea310>] unknown_bootoption+0x0/0x171
Code:  Bad EIP value.
 <0>Kernel panic - not syncing: Attempted to kill the idle task!

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2.6] fix address passing of unknown_bootoption
  2004-11-08  8:43     ` Michael Buesch
@ 2004-11-08 17:42       ` Randy.Dunlap
  2004-11-08 21:40         ` Michael Buesch
  0 siblings, 1 reply; 6+ messages in thread
From: Randy.Dunlap @ 2004-11-08 17:42 UTC (permalink / raw)
  To: Michael Buesch; +Cc: Andrew Morton, linux-kernel

Michael Buesch wrote:
> Quoting "Randy.Dunlap" <rddunlap@osdl.org>:
> 
>>>hm, I don't know what happened there.  Maybe the value of pm_idle in
>>>cpu_idle() is garbage.  Or maybe not.
>>
>>Zwane and someone else had patches for that happening IIRC
>>a month or 2 back.
>>I can dig them out if wanted... Michael, want to try?
> 
> 
> 
> Yes, sure. Please.

OK, there are several patches flying around that may fix this.
or maybe not...

And I don't know what it already in -ckX -acN either, so they might
not apply cleanly.  (also checking -mm now....)

 From BlaisorBlade:
http://marc.theaimsgroup.com/?l=acpi4linux&m=109441393614805&w=2

 From Shaohua Li:
http://marc.theaimsgroup.com/?l=linux-kernel&m=109470272821630&w=2

 From Zwane (update of above):
http://marc.theaimsgroup.com/?l=acpi4linux&m=109473286622679&w=2

-- 
~Randy

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2.6] fix address passing of unknown_bootoption
  2004-11-08 17:42       ` Randy.Dunlap
@ 2004-11-08 21:40         ` Michael Buesch
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Buesch @ 2004-11-08 21:40 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: Andrew Morton, linux-kernel

Quoting "Randy.Dunlap" <rddunlap@osdl.org>:
> Michael Buesch wrote:
> > Quoting "Randy.Dunlap" <rddunlap@osdl.org>:
> > 
> >>>hm, I don't know what happened there.  Maybe the value of pm_idle in
> >>>cpu_idle() is garbage.  Or maybe not.
> >>
> >>Zwane and someone else had patches for that happening IIRC
> >>a month or 2 back.
> >>I can dig them out if wanted... Michael, want to try?
> > 
> > 
> > 
> > Yes, sure. Please.
> 
> OK, there are several patches flying around that may fix this.
> or maybe not...
> 
> And I don't know what it already in -ckX -acN either, so they might
> not apply cleanly.  (also checking -mm now....)
> 
>  From BlaisorBlade:
> http://marc.theaimsgroup.com/?l=acpi4linux&m=109441393614805&w=2
> 
>  From Shaohua Li:
> http://marc.theaimsgroup.com/?l=linux-kernel&m=109470272821630&w=2
> 
>  From Zwane (update of above):
> http://marc.theaimsgroup.com/?l=acpi4linux&m=109473286622679&w=2

Already applied. (Don't know. Maybe ck or ac did it).
Must be something else going on here. :(

Thanks for digging them out, anyway.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-11-08 21:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-07 21:47 [PATCH 2.6] fix address passing of unknown_bootoption Michael Buesch
2004-11-08  0:42 ` Andrew Morton
2004-11-08  0:53   ` Randy.Dunlap
2004-11-08  8:43     ` Michael Buesch
2004-11-08 17:42       ` Randy.Dunlap
2004-11-08 21:40         ` Michael Buesch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox