Re: [PATCH] NET: fix kernel panic from no dev->hard_header_len space

Alexey Kuznetsov
2006-07-27T16:43:46Z

Hello!

> ip_output() ignores dev->hard_header_len

ip_output() worries about the space, which it needs.

If some place needs more, it is its problem to check.
To the moment where it is used, hard_header_len can even change.

It can be applied, but it does not change the fact, that those
placed which fail now must check the condition as well.

> A similar problem may be present in psched_mtu().

Nothing similar. The result psched_mtu() is compared with skb->len,
how it is seen by qdiscs. If hard_header is NULL, it sees skbs
without header.

Alexey