From: DaveC (freevsd_at_comm.it)
Date: Sat 22 Feb 2003 - 09:39:35 GMT
> It shouldn't do; spinlocks are placed around every access to the new
> structures I have set up.
I am receiving a consistent crash with both smp and non smp kernels.
Attached is a log from a crash with an UP kernel.
The kernel is a 2.4.20 + ac2 + ctx16 + your patch.
The patches were applied in this order. ctx16 had the normal rejects
expected because of the O(1) scheduler.
To crash, I start 1 vserver and enter the context. A few commands later
(ps ax/df etc) the kernel crashes consistently.
Here's the log filtered trough ksymoops:
Unable to handle kernel paging request at virtual address f8cb7000
c0123c30
*pde = 034f9067
Oops: 0000
CPU:    0
EIP:    0010:[<c0123c30>]    Not tainted
Using defaults from ksymoops -t elf32-i386 -a i386
EFLAGS: 00010246
eax: c0255800   ebx: c0255800   ecx: f8cb7000   edx: 00000000
esi: 0000063a   edi: f5e38000   ebp: 00005410   esp: f578ff3c
ds: 0018   es: 0018   ss: 0018
Process bash (pid: 1542, stackpage=f578f000)
Stack: f5c92000 c011a9a8 f8cb7000 0000063a f578e000 c016f1f6 0000063a
f5e38000
       bffff7c4 f5e38000 c016f5e8 f5e38000 f5e38000 bffff7c4 00000000
00000001
       00000000 00000000 00005410 ffffffe7 bffff7c4 c34905e0 c0147217
f5e390c0
Call Trace:    [<c011a9a8>] [<c016f1f6>] [<c016f5e8>] [<c0147217>]
[<c010883b>]
Code: 8b 01 48 85 c0 89 01 75 07 51 e8 b1 af 00 00 58 89 d8 ba ff
>>EIP; c0123c30 <sys_release_ip_info+20/50>   <=====
Trace; c011a9a8 <session_of_pgrp+48/70>
Trace; c016f1f6 <tiocspgrp+66/90>
Trace; c016f5e8 <tty_ioctl+258/370>
Trace; c0147217 <sys_ioctl+217/230>
Trace; c010883b <system_call+33/38>
Code;  c0123c30 <sys_release_ip_info+20/50>
00000000 <_EIP>:
Code;  c0123c30 <sys_release_ip_info+20/50>   <=====
   0:   8b 01                     mov    (%ecx),%eax   <=====
Code;  c0123c32 <sys_release_ip_info+22/50>
   2:   48                        dec    %eax
Code;  c0123c33 <sys_release_ip_info+23/50>
   3:   85 c0                     test   %eax,%eax
Code;  c0123c35 <sys_release_ip_info+25/50>
   5:   89 01                     mov    %eax,(%ecx)
Code;  c0123c37 <sys_release_ip_info+27/50>
   7:   75 07                     jne    10 <_EIP+0x10> c0123c40
<sys_release_ip_info+30/50>
Code;  c0123c39 <sys_release_ip_info+29/50>
   9:   51                        push   %ecx
Code;  c0123c3a <sys_release_ip_info+2a/50>
   a:   e8 b1 af 00 00            call   afc0 <_EIP+0xafc0> c012ebf0
<vfree+0/70>
Code;  c0123c3f <sys_release_ip_info+2f/50>
   f:   58                        pop    %eax
Code;  c0123c40 <sys_release_ip_info+30/50>
  10:   89 d8                     mov    %ebx,%eax
Code;  c0123c42 <sys_release_ip_info+32/50>
  12:   ba ff 00 00 00            mov    $0xff,%edx
DaveC