* [parisc-linux] nmap -O -> kernel panic on 712
@ 2001-09-17 14:55 Francois Deppierraz
2001-09-17 18:33 ` thunder7
2001-10-06 0:08 ` Francois Deppierraz
0 siblings, 2 replies; 10+ messages in thread
From: Francois Deppierraz @ 2001-09-17 14:55 UTC (permalink / raw)
To: parisc-linux
Hi kernel hackers !
My HP 712/60 with a 2.4.9-pa20 kernel crash with the following error
message when I portscan it using nmap -O (OS detection).
kswapd[4]: Unaligned data reference 28
YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
PSW: 00000000000001001111111000001111
r0-3o 00000000 10332810 1028b9e4 0000000a
r4-7o 100dfdb2 100ed148 0000000c 100dfd94
r8-11o 00000000 00000001 00020000 10ce6500
r12-15o 11fb09a0 00004400 00004800 43f02aa9
r16-19o 100eca00 00000000 00000c00 00000001
r20-23o 00000000 00000109 117ca000 0000000f
r24-27o 00000000 100ed148 10ce6500 102f0010
r28-31o 117ca160 00000040 100ed400 1012e6d8
sr0-3o 00000000 00000002 00000000 00000002
sr4-7o 00000000 00000000 00000000 00000000
IASQ: 00000000 00000000 IAOQ: 10281658 1028165c
IIR: 0c801093 ISR: 00000000 IOR: 100dfdb2
CPU: 0 CR30: 100ec000 CR31: 103a0000
ORIG_R28: 00000000
Kernel Panic: Aiee, killing interrupt handler!
In interrupt handler - not syncing
Thanks for your work !
Any idea ? Do I need to fill a bugreport ?
--
Francois Deppierraz <francois.deppierraz@nimag.net>
Nimag Networks Sàrl - www.nimag.net
PGP Key ID: 9D283BC9
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [parisc-linux] nmap -O -> kernel panic on 712 2001-09-17 14:55 [parisc-linux] nmap -O -> kernel panic on 712 Francois Deppierraz @ 2001-09-17 18:33 ` thunder7 2001-09-17 22:24 ` Francois Deppierraz 2001-09-21 19:48 ` thunder7 2001-10-06 0:08 ` Francois Deppierraz 1 sibling, 2 replies; 10+ messages in thread From: thunder7 @ 2001-09-17 18:33 UTC (permalink / raw) To: Francois Deppierraz; +Cc: parisc-linux On Mon, Sep 17, 2001 at 04:55:01PM +0200, Francois Deppierraz wrote: > Hi kernel hackers ! > > My HP 712/60 with a 2.4.9-pa20 kernel crash with the following error > message when I portscan it using nmap -O (OS detection). > > kswapd[4]: Unaligned data reference 28 > > YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI > PSW: 00000000000001001111111000001111 > r0-3o 00000000 10332810 1028b9e4 0000000a > r4-7o 100dfdb2 100ed148 0000000c 100dfd94 > r8-11o 00000000 00000001 00020000 10ce6500 > r12-15o 11fb09a0 00004400 00004800 43f02aa9 > r16-19o 100eca00 00000000 00000c00 00000001 > r20-23o 00000000 00000109 117ca000 0000000f > r24-27o 00000000 100ed148 10ce6500 102f0010 > r28-31o 117ca160 00000040 100ed400 1012e6d8 > sr0-3o 00000000 00000002 00000000 00000002 > sr4-7o 00000000 00000000 00000000 00000000 > > IASQ: 00000000 00000000 IAOQ: 10281658 1028165c > IIR: 0c801093 ISR: 00000000 IOR: 100dfdb2 > CPU: 0 CR30: 100ec000 CR31: 103a0000 > ORIG_R28: 00000000 > Kernel Panic: Aiee, killing interrupt handler! > In interrupt handler - not syncing > > Thanks for your work ! > > Any idea ? Do I need to fill a bugreport ? Let's first find out what happened. Paste a small part of your System.map file for this kernel (like 10 lines) with the address 10281658 somewhere in the middle. Then do objdump -d <your kernel> and grep for say 40 lines around 10281658. It helps if there are some calls in that part, so you can see where we are in the kernel. Nobody can do this for you, since your kernel is unique (or at least probably unique). If in doubt, search the archives for a mail with the subject 'Documented oops running big-endian reiserfs on parisc architecture' where I basically do the same: find out where it went wrong. Then post this information! Good luck, Jurriaan -- Do you consider yourself to be the native of another world? Reith laughed and groped for an answer. He said: "Four possible conditions exist. If I were indeed from another world I could answer yes or no. If I were not from another world I could answer yes or no. The first case leads to inconvenience. The second diminishes my self-respect. The third case is insanity. The fourth represents the only situation you would not consider an abnormality. The question, hence, as you admit, is absurd." Adam Reith (Jack Vance - Servants of the Wankh) GNU/Linux 2.4.9-ac10 SMP/ReiserFS 2x1402 bogomips load av: 0.29 0.37 0.20 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [parisc-linux] nmap -O -> kernel panic on 712 2001-09-17 18:33 ` thunder7 @ 2001-09-17 22:24 ` Francois Deppierraz 2001-09-18 5:38 ` thunder7 2001-09-21 19:48 ` thunder7 1 sibling, 1 reply; 10+ messages in thread From: Francois Deppierraz @ 2001-09-17 22:24 UTC (permalink / raw) To: thunder7; +Cc: parisc-linux On Mon, Sep 17, 2001 at 08:33:12PM +0200, thunder7@xs4all.nl wrote: > Let's first find out what happened. Paste a small part of your > System.map file for this kernel (like 10 lines) with the address > 10281658 somewhere in the middle. Then do I didn't found 10281658 in System.map. ludwig:/boot# grep -C -10 102816 /boot/System.map-2.4.9-pa20 10280d7c t .L2469 10280d8c t .L2470 10280dcc t .L2471 10280ed0 t .L2472 10280f00 t tcp_ack_probe 10280ff0 t tcp_ack_update_window 10281104 t tcp_ack 1028114c t .L2521 102811b4 t .L2569 10281418 T tcp_parse_options 1028168c t tcp_disordered_ack 1028173c t tcp_reset 1028179c t .L2659 10281828 t .L2676 10281850 t tcp_fin 10281910 t .L2678 10281914 t .L2720 1028195c t .L2756 10281ae4 t .L2757 10281af8 t .L2758 10281af8 t tcp_send_dupack ludwig:/boot# > objdump -d <your kernel> and grep for say 40 lines around 10281658. It > helps if there are some calls in that part, so you can see where we are > in the kernel. ludwig:/boot# objdump -d /boot/vmlinux-2.4.9-pa20 | grep -C -40 10281658 102815b8: 37 5a 08 78 ldo 43c(r26),r26 102815bc: 34 13 00 1c ldi e,r19 102815c0: e8 1f 1e 2d b,l 102814dc <tcp_parse_options+0xc4>,r0 102815c4: 60 b3 02 08 stb r19,104(sr0,r5) 102815c8: 8c 64 3e 25 cmpib,<> 2,r3,102814e0 <tcp_parse_options+0xc8> 102815cc: 08 64 0a 13 add,l r4,r3,r19 102815d0: 0c f8 10 93 ldw c(sr0,r7),r19 102815d4: 09 53 02 13 and r19,r10,r19 102815d8: 86 60 3e 05 cmpib,= 0,r19,102814e0 <tcp_parse_options+0xc8> 102815dc: 08 64 0a 13 add,l r4,r3,r19 102815e0: 8d 00 3d ff cmpib,<>,n 0,r8,102814e4 <tcp_parse_options+0xcc> 102815e4: 36 64 3f fd ldo -2(r19),r4 102815e8: 2b 61 50 00 addil 42800,dp,%r1 102815ec: 48 33 0a 70 ldw 538(sr0,r1),r19 102815f0: 86 60 3d d5 cmpib,= 0,r19,102814e0 <tcp_parse_options+0xc8> 102815f4: 08 64 0a 13 add,l r4,r3,r19 102815f8: 60 a9 02 04 stb r9,102(sr0,r5) 102815fc: 60 a0 02 34 stb r0,11a(sr0,r5) 10281600: 60 a0 02 36 stb r0,11b(sr0,r5) 10281604: e8 1f 1d ad b,l 102814e0 <tcp_parse_options+0xc8>,r0 10281608: 60 a0 02 9a stb r0,14d(sr0,r5) 1028160c: 8c 72 5d 9d cmpib,>= 9,r3,102814e0 <tcp_parse_options+0xc8> 10281610: 08 64 0a 13 add,l r4,r3,r19 10281614: 34 73 3f fd ldo -2(r3),r19 10281618: d2 73 1b fd extrw,u r19,31,3,r19 1028161c: 8e 60 3d 7d cmpib,<> 0,r19,102814e0 <tcp_parse_options+0xc8> 10281620: 08 64 0a 13 add,l r4,r3,r19 10281624: 40 b3 02 04 ldb 102(sr0,r5),r19 10281628: 86 60 3d 5d cmpib,= 0,r19,102814dc <tcp_parse_options+0xc4> 1028162c: 08 e4 04 13 sub r4,r7,r19 10281630: 36 73 3f fd ldo -2(r19),r19 10281634: e8 1f 1d 45 b,l 102814dc <tcp_parse_options+0xc4>,r0 10281638: 61 73 00 92 stb r19,49(sr0,r11) 1028163c: 8c 74 3d 3d cmpib,<> a,r3,102814e0 <tcp_parse_options+0xc8> 10281640: 08 64 0a 13 add,l r4,r3,r19 10281644: 85 00 20 42 cmpib,=,n 0,r8,1028166c <tcp_parse_options+0x254> 10281648: 40 b3 02 00 ldb 100(sr0,r5),r19 1028164c: 86 60 3d 1d cmpib,= 0,r19,102814e0 <tcp_parse_options+0xc8> 10281650: 08 64 0a 13 add,l r4,r3,r19 10281654: 60 a9 02 06 stb r9,103(sr0,r5) 10281658: 0c 80 10 93 ldw 0(sr0,r4),r19 1028165c: 68 b3 02 10 stw r19,108(sr0,r5) 10281660: 0c 88 10 94 ldw 4(sr0,r4),r20 10281664: e8 1f 1c e5 b,l 102814dc <tcp_parse_options+0xc4>,r0 10281668: 68 b4 02 18 stw r20,10c(sr0,r5) 1028166c: 2b 61 50 00 addil 42800,dp,%r1 10281670: 48 33 0a 60 ldw 530(sr0,r1),r19 10281674: 8e 60 3f bf cmpib,<>,n 0,r19,10281658 <tcp_parse_options+0x240> 10281678: 60 a9 02 06 stb r9,103(sr0,r5) 1028167c: e8 1f 1c bd b,l 102814e0 <tcp_parse_options+0xc8>,r0 10281680: 08 64 0a 13 add,l r4,r3,r19 10281684: e8 1f 1c bd b,l 102814e8 <tcp_parse_options+0xd0>,r0 10281688: b4 c6 07 ff addi -1,r6,r6 1028168c <tcp_disordered_ack>: 1028168c: 4b 35 00 38 ldw 1c(sr0,r25),r21 10281690: 08 1a 02 57 copy r26,r23 10281694: 0e b8 10 93 ldw c(sr0,r21),r19 10281698: 4b 36 00 78 ldw 3c(sr0,r25),r22 1028169c: 4b 34 00 98 ldw 4c(sr0,r25),r20 102816a0: c5 73 c0 10 bb,*>= r19,b,102816b0 <tcp_disordered_ack+0x24> 102816a4: 34 1c 00 00 ldi 0,ret0 102816a8: 4b 33 00 80 ldw 40(sr0,r25),r19 102816ac: 82 d3 20 02 cmpb,=,n r19,r22,102816b4 <tcp_disordered_ack+0x28> 102816b0: e8 40 c0 02 bv,n r0(rp) 102816b4: 0e f0 10 93 ldw 8(sr0,r23),r19 102816b8: 8a d3 3f e5 cmpb,<> r19,r22,102816b0 <tcp_disordered_ack+0x24> 102816bc: 08 00 02 40 nop 102816c0: 4a f3 00 20 ldw 10(sr0,r23),r19 102816c4: 8a 93 3f cd cmpb,<> r19,r20,102816b0 <tcp_disordered_ack+0x24> 102816c8: 08 00 02 40 nop 102816cc: 42 f3 02 08 ldb 104(sr0,r23),r19 102816d0: 4a f8 00 a0 ldw 50(sr0,r23),r24 102816d4: 0e bc 10 54 ldh e(sr0,r21),r20 102816d8: 96 73 00 3e subi 1f,r19,r19 102816dc: 01 73 18 40 mtsar r19 102816e0: 0a d8 04 15 sub r24,r22,r21 102816e4: d6 94 00 00 depw,z r20,%sar,32,r20 102816e8: 86 a0 60 60 cmpib,<= 0,r21,10281720 <tcp_disordered_ack+0x94> 102816ec: 34 19 00 00 ldi 0,r25 102816f0: 34 19 00 02 ldi 1,r25 102816f4: 8f 20 3f 6d cmpib,<> 0,r25,102816b0 <tcp_disordered_ack+0x24> 102816f8: 34 19 00 c8 ldi 64,r25 102816fc: 4a fa 01 00 ldw 80(sr0,r23),r26 10281700: 4a f3 02 20 ldw 110(sr0,r23),r19 10281704: d7 5a 09 4a depw,z r26,21,22,r26 10281708: eb fd 08 c4 b,l 102bcb70 <$$divU>,r31 1028170c: 4a f4 02 10 ldw 108(sr0,r23),r20 ludwig:/boot# > Then post this information! Here it is, anything else needed ? Thanks a lot ! -- Francois Deppierraz <francois.deppierraz@nimag.net> Nimag Networks Sàrl - www.nimag.net PGP Key ID: 9D283BC9 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [parisc-linux] nmap -O -> kernel panic on 712 2001-09-17 22:24 ` Francois Deppierraz @ 2001-09-18 5:38 ` thunder7 2001-09-18 10:38 ` Albert Strasheim 2001-09-18 11:25 ` Matthew Wilcox 0 siblings, 2 replies; 10+ messages in thread From: thunder7 @ 2001-09-18 5:38 UTC (permalink / raw) To: parisc-linux On Tue, Sep 18, 2001 at 12:24:28AM +0200, Francois Deppierraz wrote: > ludwig:/boot# objdump -d /boot/vmlinux-2.4.9-pa20 | grep -C -40 10281658 > 102815b8: 37 5a 08 78 ldo 43c(r26),r26 > 102815bc: 34 13 00 1c ldi e,r19 > 102815c0: e8 1f 1e 2d b,l 102814dc <tcp_parse_options+0xc4>,r0 > 102815c4: 60 b3 02 08 stb r19,104(sr0,r5) > 102815c8: 8c 64 3e 25 cmpib,<> 2,r3,102814e0 <tcp_parse_options+0xc8> > 102815cc: 08 64 0a 13 add,l r4,r3,r19 > 102815d0: 0c f8 10 93 ldw c(sr0,r7),r19 > 102815d4: 09 53 02 13 and r19,r10,r19 > 102815d8: 86 60 3e 05 cmpib,= 0,r19,102814e0 <tcp_parse_options+0xc8> > 102815dc: 08 64 0a 13 add,l r4,r3,r19 > 102815e0: 8d 00 3d ff cmpib,<>,n 0,r8,102814e4 <tcp_parse_options+0xcc> > 102815e4: 36 64 3f fd ldo -2(r19),r4 > 102815e8: 2b 61 50 00 addil 42800,dp,%r1 > 102815ec: 48 33 0a 70 ldw 538(sr0,r1),r19 > 102815f0: 86 60 3d d5 cmpib,= 0,r19,102814e0 <tcp_parse_options+0xc8> > 102815f4: 08 64 0a 13 add,l r4,r3,r19 > 102815f8: 60 a9 02 04 stb r9,102(sr0,r5) > 102815fc: 60 a0 02 34 stb r0,11a(sr0,r5) > 10281600: 60 a0 02 36 stb r0,11b(sr0,r5) > 10281604: e8 1f 1d ad b,l 102814e0 <tcp_parse_options+0xc8>,r0 > 10281608: 60 a0 02 9a stb r0,14d(sr0,r5) > 1028160c: 8c 72 5d 9d cmpib,>= 9,r3,102814e0 <tcp_parse_options+0xc8> > 10281610: 08 64 0a 13 add,l r4,r3,r19 > 10281614: 34 73 3f fd ldo -2(r3),r19 > 10281618: d2 73 1b fd extrw,u r19,31,3,r19 > 1028161c: 8e 60 3d 7d cmpib,<> 0,r19,102814e0 <tcp_parse_options+0xc8> > 10281620: 08 64 0a 13 add,l r4,r3,r19 > 10281624: 40 b3 02 04 ldb 102(sr0,r5),r19 > 10281628: 86 60 3d 5d cmpib,= 0,r19,102814dc <tcp_parse_options+0xc4> > 1028162c: 08 e4 04 13 sub r4,r7,r19 > 10281630: 36 73 3f fd ldo -2(r19),r19 > 10281634: e8 1f 1d 45 b,l 102814dc <tcp_parse_options+0xc4>,r0 > 10281638: 61 73 00 92 stb r19,49(sr0,r11) > 1028163c: 8c 74 3d 3d cmpib,<> a,r3,102814e0 <tcp_parse_options+0xc8> > 10281640: 08 64 0a 13 add,l r4,r3,r19 > 10281644: 85 00 20 42 cmpib,=,n 0,r8,1028166c <tcp_parse_options+0x254> > 10281648: 40 b3 02 00 ldb 100(sr0,r5),r19 > 1028164c: 86 60 3d 1d cmpib,= 0,r19,102814e0 <tcp_parse_options+0xc8> > 10281650: 08 64 0a 13 add,l r4,r3,r19 > 10281654: 60 a9 02 06 stb r9,103(sr0,r5) > 10281658: 0c 80 10 93 ldw 0(sr0,r4),r19 and there it seems to have crashed > > Here it is, anything else needed ? > A basic understanding of parisc assembly would help me :-) At this point, newbies like you and me can only hope one of the real kernel hackers sees this and says 'A-ha!'. If I look at that code, I see a lot of (__u16 *)ptr and the like. Am I correct in assuming those are all suspects and this is just another example of the missing unaligned access trap haunting us? Jurriaan -- "You were warned, fool. Now I will teach you to profit from such courtesies when they are offered." Stephen R Donaldson - By Another Name GNU/Linux 2.4.9-ac10 SMP/ReiserFS 2x1402 bogomips load av: 0.02 0.03 0.00 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [parisc-linux] nmap -O -> kernel panic on 712 2001-09-18 5:38 ` thunder7 @ 2001-09-18 10:38 ` Albert Strasheim 2001-09-18 19:06 ` thunder7 2001-09-18 11:25 ` Matthew Wilcox 1 sibling, 1 reply; 10+ messages in thread From: Albert Strasheim @ 2001-09-18 10:38 UTC (permalink / raw) To: parisc-linux [-- Attachment #1: Type: text/plain, Size: 297 bytes --] Hello, I'm pretty new to the whole PA-RISC Linux effort, so I would appreciate it if someone could explain to me (and perhaps to other newbies), what these unaligned access traps are, and what needs to be added to traps.c (or possibly elsewhere) to get things working properly? Regards, Albert [-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [parisc-linux] nmap -O -> kernel panic on 712 2001-09-18 10:38 ` Albert Strasheim @ 2001-09-18 19:06 ` thunder7 2001-09-20 17:03 ` hgrothe 0 siblings, 1 reply; 10+ messages in thread From: thunder7 @ 2001-09-18 19:06 UTC (permalink / raw) To: Albert Strasheim; +Cc: parisc-linux On Tue, Sep 18, 2001 at 12:38:29PM +0200, Albert Strasheim wrote: > Hello, > > I'm pretty new to the whole PA-RISC Linux effort, so I would appreciate > it if someone could explain to me (and perhaps to other newbies), what > these unaligned access traps are, and what needs to be added to traps.c > (or possibly elsewhere) to get things working properly? > AFAIK, an unaligned trap is a process (or the kernel) that tries to access memory on a location that is not 32-bit aligned. Supposedly, there should be code that determines what the process was trying to do, gets the information on a 32-bit aligned address, modifies the information to the form the process wanted it in, then returns to the process. All of this requires assembly and some tricks with interrupts etc, which doesn't make it a project for beginners (well, not beginners with my level of knowledge and determination :-) ). there is something called arch/parisc/kernel/unaligned.c, but that doesn't seem to be the whole story. Good luck, Jurriaan -- You have no feelings for me, but you do have feelings against me. Neelix - Startrek Voyager GNU/Linux 2.4.9-ac10 SMP/ReiserFS 2x1402 bogomips load av: 0.08 0.04 0.01 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [parisc-linux] nmap -O -> kernel panic on 712 2001-09-18 19:06 ` thunder7 @ 2001-09-20 17:03 ` hgrothe 0 siblings, 0 replies; 10+ messages in thread From: hgrothe @ 2001-09-20 17:03 UTC (permalink / raw) To: parisc-linux [-- Attachment #1: Type: text/plain, Size: 987 bytes --] On Tue, Sep 18, 2001 at 07:38:55PM +0200, thunder7@xs4all.nl wrote: > At this point, newbies like you and me can only hope one of the real > kernel hackers sees this and says 'A-ha!'. > > If I look at that code, I see a lot of (__u16 *)ptr and the like. > > Am I correct in assuming those are all suspects and this is just another > example of the missing unaligned access trap haunting us? Far away from being a kernel hacker I tracked down the problem a little bit, because I hate it if my favourite 'playing around' machine can be easily crashed down by network. The following patch is not a solution in sense of missing unaligned access trap(s) (I have much too few knowledge especially of parisc assembler). It's a quick'n (really) dirty workaround which works for me. The patch (for linux-2.4.9-pa24) breaks (__u32 *)ptr into two (__u16 *)ptr. Comments are welcome. Holger -- Holger Grothe (Email: hgrothe@mathematik.tu-darmstadt.de) Fachbereich Mathematik, TU Darmstadt [-- Attachment #2: linux-2.4.9-pa24.diff --] [-- Type: text/plain, Size: 657 bytes --] *** net/ipv4/tcp_input.c.dist Fri Aug 17 12:04:25 2001 --- net/ipv4/tcp_input.c Wed Sep 19 19:25:18 2001 *************** *** 2051,2058 **** --- 2051,2063 ---- if ((estab && tp->tstamp_ok) || (!estab && sysctl_tcp_timestamps)) { tp->saw_tstamp = 1; + #if defined (__hppa__) + tp->rcv_tsval = (((__u32)ntohs(*(__u16 *)ptr))<<16) | ((__u32)ntohs(*(__u16 *)(ptr+2))); + tp->rcv_tsecr = (((__u32)ntohs(*(__u16 *)(ptr+4)))<<16) | ((__u32)ntohs(*(__u16 *)(ptr+6))); + #else tp->rcv_tsval = ntohl(*(__u32 *)ptr); tp->rcv_tsecr = ntohl(*(__u32 *)(ptr+4)); + #endif } } break; ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [parisc-linux] nmap -O -> kernel panic on 712 2001-09-18 5:38 ` thunder7 2001-09-18 10:38 ` Albert Strasheim @ 2001-09-18 11:25 ` Matthew Wilcox 1 sibling, 0 replies; 10+ messages in thread From: Matthew Wilcox @ 2001-09-18 11:25 UTC (permalink / raw) To: thunder7; +Cc: parisc-linux On Tue, Sep 18, 2001 at 07:38:55AM +0200, thunder7@xs4all.nl wrote: > Am I correct in assuming those are all suspects and this is just another > example of the missing unaligned access trap haunting us? that's right; this is exactly what andi kleen & davem were talking about last week. -- Revolutions do not require corporate support. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [parisc-linux] nmap -O -> kernel panic on 712 2001-09-17 18:33 ` thunder7 2001-09-17 22:24 ` Francois Deppierraz @ 2001-09-21 19:48 ` thunder7 1 sibling, 0 replies; 10+ messages in thread From: thunder7 @ 2001-09-21 19:48 UTC (permalink / raw) To: parisc-linux On Mon, Sep 17, 2001 at 08:33:12PM +0200, thunder7@xs4all.nl wrote: > On Mon, Sep 17, 2001 at 04:55:01PM +0200, Francois Deppierraz wrote: > > Hi kernel hackers ! > > > > My HP 712/60 with a 2.4.9-pa20 kernel crash with the following error > > message when I portscan it using nmap -O (OS detection). > > > > kswapd[4]: Unaligned data reference 28 > > > > YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI > > PSW: 00000000000001001111111000001111 > > r0-3o 00000000 10332810 1028b9e4 0000000a > > r4-7o 100dfdb2 100ed148 0000000c 100dfd94 > > r8-11o 00000000 00000001 00020000 10ce6500 > > r12-15o 11fb09a0 00004400 00004800 43f02aa9 > > r16-19o 100eca00 00000000 00000c00 00000001 > > r20-23o 00000000 00000109 117ca000 0000000f > > r24-27o 00000000 100ed148 10ce6500 102f0010 > > r28-31o 117ca160 00000040 100ed400 1012e6d8 > > sr0-3o 00000000 00000002 00000000 00000002 > > sr4-7o 00000000 00000000 00000000 00000000 > > > > IASQ: 00000000 00000000 IAOQ: 10281658 1028165c > > IIR: 0c801093 ISR: 00000000 IOR: 100dfdb2 > > CPU: 0 CR30: 100ec000 CR31: 103a0000 > > ORIG_R28: 00000000 > > Kernel Panic: Aiee, killing interrupt handler! > > In interrupt handler - not syncing > > Why isn't the code in arch/parisc/kernel/unaligned.c activated for this? I found some references in the 2001-06 archive to this file, which seems to work for 64-bits kernels (which I haven't tested) but not for 32-bits. Can any of the guru's point some newbies in the right direction? unaligned.c exists, and is pointed to in traps.c, so there must be some code in it that doesn't work. I can run the test-program that was posted in 2001-06 just fine. #include <stdio.h> struct data_t { unsigned long a; unsigned long b; }; int main(int argc, char **argv) { struct data_t data; unsigned char *t; unsigned long l; int i; data.a = 0x12345678; data.b = 0x87654321; t = (unsigned char *)(&data)+1; l = *((unsigned long *)t); printf("l = 0x%08lx\n\n\n", l); printf("expected result is: 0x"); for (i = 0; i < sizeof(unsigned long); i++) printf("%x", *(t+i)); printf("\n"); printf("testing store...\n"); *((unsigned long *)t) = 0x13572468; l = *((unsigned long *)t); printf("l = 0x%08lx\n", l); return 0; } And it prints: jurriaan@pa8200:~$ cc test.c ./a.jurriaan@pa8200:~$ ./a.out l = 0x34567887 expected result is: 0x34567887 testing store... l = 0x13572468 which seems to be what is expected. I can see that in unaligned.c, the part for in-kernel traps is #if 0'ed out, with a big TODO. What is there TODO? I'm willing to do stupid work, and test my machine 30 times in a row, if someone can point me in the right direction? Thanks, Jurriaan -- It is a matter of words. In my birth language there are more ifs than whens, but I must make a choice every time I speak a sentence in English. I try to choose the happier way of saying things, so that my own words will not weigh me down like stones. !Xabbu in Tad Williams' Otherland GNU/Linux 2.4.9-ac10 SMP/ReiserFS 2x1402 bogomips load av: 0.00 0.00 0.00 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [parisc-linux] nmap -O -> kernel panic on 712 2001-09-17 14:55 [parisc-linux] nmap -O -> kernel panic on 712 Francois Deppierraz 2001-09-17 18:33 ` thunder7 @ 2001-10-06 0:08 ` Francois Deppierraz 1 sibling, 0 replies; 10+ messages in thread From: Francois Deppierraz @ 2001-10-06 0:08 UTC (permalink / raw) To: parisc-linux On Mon, Sep 17, 2001 at 04:55:01PM +0200, Francois Deppierraz wrote: > My HP 712/60 with a 2.4.9-pa20 kernel crash with the following error > message when I portscan it using nmap -O (OS detection). > > kswapd[4]: Unaligned data reference 28 I just upgraded today to 2.4.9-pa38 and it looks like this bug is fixed. Thanks you guys, great work ! -- Francois Deppierraz <francois.deppierraz@nimag.net> Nimag Networks Sàrl - www.nimag.net PGP Key ID: 9D283BC9 ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2001-10-06 0:08 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2001-09-17 14:55 [parisc-linux] nmap -O -> kernel panic on 712 Francois Deppierraz 2001-09-17 18:33 ` thunder7 2001-09-17 22:24 ` Francois Deppierraz 2001-09-18 5:38 ` thunder7 2001-09-18 10:38 ` Albert Strasheim 2001-09-18 19:06 ` thunder7 2001-09-20 17:03 ` hgrothe 2001-09-18 11:25 ` Matthew Wilcox 2001-09-21 19:48 ` thunder7 2001-10-06 0:08 ` Francois Deppierraz
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox