kernel BUG at slab.c:1244 (delsi(

Robert Vojta vojta na ipex.cz
Středa Červen 27 16:58:15 CEST 2001


Zdravim,
  podivejte se do archive lkml, tato chyba se tam objevovalo celkem "casto"
... Jinak je to dan za 2.4.x :P

  Jedna z reakci, nerikam, ze Vam to pomuze, takze se podivejte do lkml ...

<snip>
I found a bug of release_mem() in tty_io.c and it may cause this
oops. release_mem() frees the memory of tty_struct, but does not
reset tty_files field of tty_struct. So, when fput() was called,
it changes tty_files of already freed tty_struct.



diff -r -u linux.org/drivers/char/tty_io.c linux/drivers/char/tty_io.c
--- linux.org/drivers/char/tty_io.c     Tue Jun 26 09:46:07 2001
+++ linux/drivers/char/tty_io.c Tue Jun 26 10:00:24 2001
@@ -1024,6 +1024,7 @@
                }
                o_tty->magic = 0;
                (*o_tty->driver.refcount)--;
+               list_del(&o_tty->tty_files);
                free_tty_struct(o_tty);
        }
 
@@ -1035,6 +1036,7 @@
        }
        tty->magic = 0;
        (*tty->driver.refcount)--;
+       list_del(&tty->tty_files); 
        free_tty_struct(tty);
 }
</snip>

Zdravim,
  Robert

-- 
   _
  |-|  __      Robert Vojta <vojta-at-ipex.cz>          -= Oo.oO =-
  |=| [Ll]     IPEX, s.r.o.
  "^" ====`o
------------- další část ---------------
A non-text attachment was scrubbed...
Name: [žádný popis není k dispozici]
Type: application/pgp-signature
Size: 240 bytes
Desc: [žádný popis není k dispozici]
URL: <http://www.linux.cz/pipermail/linux/attachments/20010627/4c736c8e/attachment.sig>


Další informace o konferenci Linux