diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2008-01-09 06:51:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-09 06:51:59 -0500 |
commit | 1c9b7aa1eb40ab708ef3242f74b9a61487623168 (patch) | |
tree | c0f3d53967a5e54a42413fe4cb6f1ee7a2c2b01e /net/atm/resources.h | |
parent | 1ac4f008857487bf45b709248d71c5b3f4cae7b5 (diff) |
[ATM]: Check IP header validity in mpc_send_packet
Al went through the ip_fast_csum callers and found this piece of code
that did not validate the IP header. While root crashing the machine
by sending bogus packets through raw or AF_PACKET sockets isn't that
serious, it is still nice to react gracefully.
This patch ensures that the skb has enough data for an IP header and
that the header length field is valid.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/resources.h')
0 files changed, 0 insertions, 0 deletions