Skip to contentSkip to conversation

Bug in using inet_lookup ()

DISCUSSION Nj A 2 participants 2 messages Nov 14, 2007 – Nov 15, 2007

Subsystems (2)
lore
Share & tools
lore

Nj A

author
#0 lore raw

By setting the ID of the ingress device to the inet_lookup() to 0, the machine reboots automatically. Setting proc/sys/kernel/panic* to non zero values dosn't help more..

Cheers,

----- Message d'origine ----

Quoted 24 lines

De : Evgeniy Polyakov <[email protected]> À : Nj A <[email protected]>
Cc : [email protected]
Envoyé le : Mercredi, 14 Novembre 2007, 14h31mn 18s Objet : Re: Re : Bug in using inet_lookup ()

Quoted 1 line · Nj A

I suspected it could be that. However, can't see in ip_rcv the right portion

that can help.

Quoted 1 line

Any further tip please?

It is ip_rcv_finish() called from ip_rcv():
if (skb->dst == NULL) {
int err = ip_route_input(skb, iph->daddr, iph->saddr, iph->tos, skb->dev);
if (unlikely(err)) {
if (err == -EHOSTUNREACH) IP_INC_STATS_BH(IPSTATS_MIB_INADDRERRORS);
else if (err == -ENETUNREACH) IP_INC_STATS_BH(IPSTATS_MIB_INNOROUTES);
goto drop;
}
}

Quoted 9 lines

So you will have to specify device, you got your skb via. Actually it is not exactly needed in some cases, you will need interface index (dev->ifindex). You can find socket by using that number instead of dereferencing dst.

Signature · 2 lines
Evgeniy
Polyakov
      _____________________________________________________________________________ 

Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail

#1 lore raw
Quoted 2 lines · Nj A

By setting the ID of the ingress device to the inet_lookup() to 0, the machine reboots automatically. Setting proc/sys/kernel/panic* to non zero values dosn't help more..

Sorry, I did not understand?
You mean after you provide zero to inet_lookup() instead of device id it strted to reboot?

Signature · 1 line
	Evgeniy Polyakov