netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Michal Piotrowski <michal.k.k.piotrowski@gmail.com>
Cc: linux-kernel@vger.kernel.org,
	Harald Welte <laforge@netfilter.org>,
	netdev@vger.kernel.org
Subject: Re: 2.6.15-rc2-mm1
Date: Wed, 23 Nov 2005 11:22:18 -0800	[thread overview]
Message-ID: <20051123112218.73f68926.akpm@osdl.org> (raw)
In-Reply-To: <6bffcb0e0511230615y7531e268n@mail.gmail.com>

Michal Piotrowski <michal.k.k.piotrowski@gmail.com> wrote:
>
>  Debug: sleeping function called from invalid context at
>  include/asm/semaphore.h:123
>  in_atomic():1, irqs_disabled():0
>   [<c0103be6>] dump_stack+0x17/0x19
>   [<c011a0c3>] __might_sleep+0x9c/0xae
>   [<fd9a090d>] translate_table+0x147/0xc14 [ip_tables]
>   [<fd9a2b2a>] ipt_register_table+0x93/0x20d [ip_tables]
>   [<f98fe027>] init+0x27/0x9e [iptable_filter]
>   [<c01376d0>] sys_init_module+0xd7/0x26c
>   [<c0102cc7>] sysenter_past_esp+0x54/0x75
>  ---------------------------
>  | preempt count: 00000001 ]
>  | 1 level deep critical section nesting:
>  ----------------------------------------
>  .. [<fd9a2aca>] .... ipt_register_table+0x33/0x20d [ip_tables]
>  .....[<f98fe027>] ..   ( <= init+0x27/0x9e [iptable_filter])
> 

ipt_register_table() does get_cpu() then calls translate_table(), and
somewhere under translate_table() we do something which sleeps, only I'm not
sure what it is - netfilter likes to hide things in unexpected places.

check_entry() will do sleepy things under that get_cpu(), but that doesn't
seem to be in this particular call chain.

Anyway, the new get_cpu() in ipt_register_table() is the problem.

       reply	other threads:[~2005-11-23 19:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20051123033550.00d6a6e8.akpm@osdl.org>
     [not found] ` <6bffcb0e0511230615y7531e268n@mail.gmail.com>
2005-11-23 19:22   ` Andrew Morton [this message]
2005-11-24  9:04     ` 2.6.15-rc2-mm1 Harald Welte
     [not found] ` <20051123175045.GA6760@stiffy.osknowledge.org>
2005-11-23 19:38   ` 2.6.15-rc2-mm1 Andrew Morton
2005-11-24  2:06     ` Mouse issues in -mm Frank Sorenson
2005-11-24  3:26       ` Dmitry Torokhov
2005-11-24  6:14         ` Frank Sorenson
2005-11-25 22:31           ` Dmitry Torokhov
2005-11-24  9:40         ` Marc Koschewski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051123112218.73f68926.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=laforge@netfilter.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michal.k.k.piotrowski@gmail.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).