All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* problems with netlink_broadcast
@ 2004-01-13 11:56 John Williams Floroiu
  2004-01-13 17:03 ` Patrick McHardy
  0 siblings, 1 reply; 5+ messages in thread
From: John Williams Floroiu @ 2004-01-13 11:56 UTC (permalink / raw
  To: netfilter-devel


hi,

I am trying to send data to userspace from a kernel module each time a kernel timer expires. so I basically call
skb_alloc followed by netlink_broadcast.

the funny part is that if I call netlink_broadcast from the timer handler (which, according to my understanding, is a
softirq), I get a crash. on the other hand, if I dispatch a tasklet from the timer handler and call skb_alloc from the
tasklet, then I get a crash too.

the only combination that appears to work is calling skb_alloc in the timer handler (pass 'skb' to the tasklet) and
netlink_broadcast from the tasklet. this looks quite strange to me because ipt_ULOG and other kernel modules doing
similar things don't appear to hint at the existence of such restrictions. could anybody figure out what could be wrong?

thanks in advance.

cheers,
John.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-01-14 12:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-13 11:56 problems with netlink_broadcast John Williams Floroiu
2004-01-13 17:03 ` Patrick McHardy
2004-01-13 18:16   ` John Williams Floroiu
2004-01-14 11:25     ` pablo neira
2004-01-14 12:34       ` John Williams Floroiu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.