From: Toji Leon <tojileon@gmail.com>
To: Netfilter Development Mailing List <netfilter-devel@vger.kernel.org>
Subject: nf_info pointer overwritten in queue handler
Date: Wed, 30 Jan 2008 22:38:06 +0530 [thread overview]
Message-ID: <47A0AEF6.3090500@gmail.com> (raw)
Hi
I was trying to buffer some packets in NF_QUEUE handler
(in a kernel module). When I kmalloc some memory inside
the handler, the address returned is the same as that of
the info pointer that the queue handler gets. What am I
doing wrong?
To summarise:
int
enq_pkt (struct sk_buff *skb, struct nf_info *info, void *data)
{
p = kmalloc(x, GFP_ATOMIC);
OMG! p and info has the same address!
}
uname -a:
Linux (none) 2.6.10_dev armv6l unknown
Toji
reply other threads:[~2008-01-30 17:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=47A0AEF6.3090500@gmail.com \
--to=tojileon@gmail.com \
--cc=netfilter-devel@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 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.