All of lore.kernel.org
 help / color / mirror / Atom feed
* nf_info pointer overwritten in queue handler
@ 2008-01-30 17:08 Toji Leon
  0 siblings, 0 replies; only message in thread
From: Toji Leon @ 2008-01-30 17:08 UTC (permalink / raw)
  To: Netfilter Development Mailing List

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-30 17:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-30 17:08 nf_info pointer overwritten in queue handler Toji Leon

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.