Skip to contentSkip to conversation

nf_info pointer overwritten in queue handler

DISCUSSION Toji Leon 1 participant 1 message Jan 30, 2008 netfilter

lore
Share & tools
lore

Toji Leon

author
#0 lore 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