[kernel] bug#154: null ptr deref in count_active_tasks

Matthew Wilcox <willy@debian.org>, 154@bugs.parisc-linux.org Matthew Wilcox <willy@debian.org>, 154@bugs.parisc-linux.org


X-PA-RISC Linux-PR-Message: report 154
X-PA-RISC Linux-PR-Package: kernel
X-Loop: daniel_frazier@hp.com
Received: via spool by bugs@bugs.parisc-linux.org id=B.100663274023836
          (code B ref -1); Sat, 24 Nov 2001 20:18:01 GMT
Date: Sat, 24 Nov 2001 20:12:19 +0000
From: Matthew Wilcox <willy@debian.org>
To: submit@bugs.parisc-linux.org
Message-ID: <20011124201219.B19391@parcelfarce.linux.theplanet.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Sender: <willy@www.linux.org.uk>


Package: kernel
Version: 2.4.14-pa10

installing some debian packages, got this:

Kernel Fault: Code=26 regs=00000000104b9200 (Addr=0000000000000000)             
                                                                                
     YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI                                           
PSW: 00001000000001000000000000001111 Not tainted                               
r0-3     0000000000000000 00000000104408b0 000000001013de48 00000000104308b0    
r4-7     0000000000000001 0000000000000000 00000000104308b0 0000000000000001    
r8-11    00000000104308b0 fffffffffffffffd 0000000000000002 000000001044497c    
r12-15   0000000000000000 00000000ffffffff 0000000000000003 00000000f0400004    
r16-19   00000000104b8b40 00000000f000017c 00000000f0000174 0000000000000002    
r20-23   00000000104b8000 0000000000000000 0000000000000002 000000001043b8b0    
r24-27   00000000103b2230 000000001043d0b0 00000000103b2230 00000000104308b0    
r28-31   0000000000002000 00000000104b91f0 00000000104b9200 00000000104398b0    
sr0-3    000000000008e200 0000000000000000 0000000000000000 000000000008e200    
sr4-7    0000000000000000 0000000000000000 0000000000000000 0000000000000000    
                                                                                
IASQ: 0000000000000000 0000000000000000 IAOQ: 000000001013d948 000000001013d94c 
 IIR: 0ea010d3    ISR: 0000000000000000  IOR: 0000000000000000                  
 CPU:        0   CR30: 00000000104b8000 CR31: 00000000104c0000                  
 ORIG_R28: 0000000010223834                                                     

that's this chunk of code:

    1013d940:   9e b4 20 48     cmpb,*= r20,r21,1013d96c <count_active_tasks+0x74>
    1013d944:   34 16 00 04     ldi 2,r22
    1013d948:   0e a0 10 d3     ldd  0(sr0,r21),r19
    1013d94c:   ee 60 20 12     cmpib,*=,n 0,r19,1013d95c <count_active_tasks+0x64>


-- 
Revolutions do not require corporate support.