Skip to contentSkip to conversation

sleeping in irq context in match()

DISCUSSION Arjan van de Ven 3 participants 4 messages Jul 23, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

the backtrace below is popping up in kerneloops.org stats pretty quickly; I don't know if it's been discussed here before but just wanted to mention it in case it hasn't been.. (it's rank 13 right now, out of nowhere)

http://www.kerneloops.org/searchweek.php?search=match for more info

__might_sleep
mutex_lock_nested
rtnl_lock
*match
ipt_do_table
ipt_local_in_hook
nf_iterate
nf_hook_slow
ip_local_deliver
ip_rcv_finish
ip_rcv
netif_receive_skb
tg3_poll

Signature · 3 lines
If you want to reach me at my work email, use [email protected]
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org
#1 lore raw
Quoted 7 lines · Arjan van de Ven

Hi,

the backtrace below is popping up in kerneloops.org stats pretty quickly; I don't know if it's been discussed here before but just wanted to mention it in case it hasn't been.. (it's rank 13 right now, out of nowhere)

Quoted 7 lines

http://www.kerneloops.org/searchweek.php?search=match for more info

__might_sleep
mutex_lock_nested
rtnl_lock
*match

[...]

Looking at the "more info", I see that that function is in xt_ipisforif, which is an out-of-tree module. The author appears to be Alex Davis <[email protected]>.

Ben.

Signature · 2 lines
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
#2 lore raw
Quoted 23 lines · Ben Hutchings

From: Ben Hutchings <[email protected]>
Subject: Re: sleeping in irq context in match()
To: "Arjan van de Ven" <[email protected]>
Cc: "Alex Davis" <[email protected]>, [email protected]
Date: Wednesday, July 23, 2008, 3:14 PM

Quoted 3 lines · Arjan van de Ven

Hi,

the backtrace below is popping up in kerneloops.org

stats pretty

Quoted 1 line

quickly; I don't know if it's been discussed

here before but

Quoted 4 lines

just wanted to mention it in case it hasn't been.. (it's rank 13 right now, out of nowhere)

http://www.kerneloops.org/searchweek.php?search=match

for more info

Quoted 6 lines

__might_sleep
mutex_lock_nested
rtnl_lock
*match

Quoted 14 lines

[...]

Looking at the "more info", I see that that function is in xt_ipisforif,
which is an out-of-tree module. The author appears to be Alex Davis <[email protected]>.

Ben.

Signature · 4 lines
Ben Hutchings, Senior Software Engineer, Solarflare
Communications
Not speaking for my employer; that's the marketing
department's job.

My goodness!! Someone is actually using it?? I sumbitted the code back in June '06, but it was rejected by Patrick McHardy. I think his words were something along the lines of 'I don't want to create a new match
just for this'. Anyway, I'm still using it on a 2.6.18 kernel. Since
people are using it, I'll consider fixing it to work on later kernels.

Is this something the netfilter team would have an interest in?

I code, therefore I am

#3 lore raw

Possible coding error in ./drivers/net/wan/dlci.c

In reply to Ben Hutchings

In the 2.6.25.10 version of this file, function dlci_del, the function __dev_get_by_name is called with neither the RTNL semaphore or dev_base_lock being held. According to the documentation for __dev_get_by_name, one of the aforementioned locks must be held. Am I missing something?

I code, therefore I am