From: Patrick McHardy <kaber@trash.net>
To: John Williams Floroiu <floroiu@fokus.fraunhofer.de>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: problems with netlink_broadcast
Date: Tue, 13 Jan 2004 18:03:51 +0100 [thread overview]
Message-ID: <400424F7.9040508@trash.net> (raw)
In-Reply-To: <4003DCD7.6040602@fokus.fraunhofer.de>
Are you using GFP_ATOMIC for netlink_broadcast and alloc_skb ?
Regards,
Patrick
John Williams Floroiu wrote:
>
> 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.
>
next prev parent reply other threads:[~2004-01-13 17:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-13 11:56 problems with netlink_broadcast John Williams Floroiu
2004-01-13 17:03 ` Patrick McHardy [this message]
2004-01-13 18:16 ` John Williams Floroiu
2004-01-14 11:25 ` pablo neira
2004-01-14 12:34 ` John Williams Floroiu
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=400424F7.9040508@trash.net \
--to=kaber@trash.net \
--cc=floroiu@fokus.fraunhofer.de \
--cc=netfilter-devel@lists.netfilter.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 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.