From: Patrick McHardy <kaber@trash.net>
To: thibault dory <dory.thibault@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Kernel BUG using iptable
Date: Wed, 15 Jun 2005 13:28:49 +0200 [thread overview]
Message-ID: <42B010F1.7060505@trash.net> (raw)
In-Reply-To: <243922d60506150304348bb817@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 495 bytes --]
thibault dory wrote:
> Since I try to use iptable with kernel 2.6.11.X serie I get the same
> bug with iptable. It didn't work at all and I experience problems with
> my connection. I give you my kernel config file in attachement.
> For the moment I'm using 2.6.11.12 kernel on a 1.4Ghz Centrino.
>
> BUG: using smp_processor_id() in preemptible [00000001] code: modprobe/1529
> caller is ip_conntrack_helper_register+0x18/0x170
You need to disable CONFIG_NETFILTER_DEBUG or apply this patch.
[-- Attachment #2: x --]
[-- Type: text/plain, Size: 1601 bytes --]
Avoid smp_processor_id() in premptible code in the netfilter lock debugging
code.
Signed-off-by: Andrew Morton <akpm@osdl.org>
---
include/linux/netfilter_ipv4/lockhelp.h | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diff -puN include/linux/netfilter_ipv4/lockhelp.h~netfilter-debug-locking-fix include/linux/netfilter_ipv4/lockhelp.h
--- 25/include/linux/netfilter_ipv4/lockhelp.h~netfilter-debug-locking-fix Thu Apr 28 20:53:26 2005
+++ 25-akpm/include/linux/netfilter_ipv4/lockhelp.h Thu Apr 28 20:53:26 2005
@@ -63,9 +63,11 @@ do { if ((l)->read_locked_map & (1UL <<
#define LOCK_BH(lk) \
do { \
+ preempt_disable(); \
MUST_BE_UNLOCKED(lk); \
spin_lock_bh(&(lk)->l); \
atomic_set(&(lk)->locked_by, smp_processor_id()); \
+ preempt_enable(); \
} while(0)
#define UNLOCK_BH(lk) \
@@ -77,16 +79,20 @@ do { \
#define READ_LOCK(lk) \
do { \
+ preempt_disable(); \
MUST_BE_READ_WRITE_UNLOCKED(lk); \
read_lock_bh(&(lk)->l); \
set_bit(smp_processor_id(), &(lk)->read_locked_map); \
+ preempt_enable(); \
} while(0)
-#define WRITE_LOCK(lk) \
-do { \
- MUST_BE_READ_WRITE_UNLOCKED(lk); \
- write_lock_bh(&(lk)->l); \
- set_bit(smp_processor_id(), &(lk)->write_locked_map); \
+#define WRITE_LOCK(lk) \
+do { \
+ preempt_disable(); \
+ MUST_BE_READ_WRITE_UNLOCKED(lk); \
+ write_lock_bh(&(lk)->l); \
+ set_bit(smp_processor_id(), &(lk)->write_locked_map); \
+ preempt_enable(); \
} while(0)
#define READ_UNLOCK(lk) \
prev parent reply other threads:[~2005-06-15 11:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-15 10:04 Kernel BUG using iptable thibault dory
2005-06-15 11:28 ` Patrick McHardy [this message]
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=42B010F1.7060505@trash.net \
--to=kaber@trash.net \
--cc=dory.thibault@gmail.com \
--cc=linux-kernel@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