Re: slab cache problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 16 Feb 2004 07:25:41 +0000 (GMT)
pankaj chauhan <chauhan_ait@yahoo.co.in> wrote:

[snip]

>HERE the  system freezes and i  get some messages on  console some of
>them are :
>
>***
>[<c020b490>] ip_rcv_finish [kernel] 
><0> kernel panic : Aii killing interrupt handler 
>In interrupt handler not syncing
>***
>
>all  these  operations  i  am   doing  in  a  routine  registered  at
>NF_IP_PRE_ROUTING hook of netfilter frame work of linux .

Taking a look  at your dump it can be easily  seen your system freezes
while  receiving a packet  (ip_rcv_finish) and  you confirmed  that by
saying it's due to an NF_IP_PRE_ROUTING netfilter hook.

Well there's  just a  problem... when you  receive a packet  you're in
interrupt context. This means you simply can't sleep since sleeping is
allowed   just  if   you're  working   in  process   context.  Calling
kmem_cache_alloc with  SLAB_KERNEL priority could easily  lead to this
situation.  And if  sleeping  occurs havoc  is  guaranteed. Try  using
SLAB_ATOMIC instead.

Regards.

- --

Angelo Dell'Aera 'buffer' 
Antifork Research, Inc.	  	http://buffer.antifork.org

PGP information in e-mail header


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFANNZ3pONIzxnBXKIRAl39AJ4whXVPoHqYPpJ+loISRB3mocHmxACfQM2n
HVqe1bzj5srmQTLHHB+6Aho=
=q4Xy
-----END PGP SIGNATURE-----

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux