]> git.baikalelectronics.ru Git - kernel.git/commit
[NETFILTER] arp_tables: Fix unaligned accesses.
authorDavid S. Miller <davem@sunset.davemloft.net>
Fri, 13 Apr 2007 23:37:54 +0000 (16:37 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 13 Apr 2007 23:37:54 +0000 (16:37 -0700)
commitb5e84ef3c2cf711399ff64a57f73ead6524e6113
treee30c9d9424115282be11b1495b8bcf8a12a5885b
parent3dd3367d7aa0dc8187cdc7fed8a2b19c004b6830
[NETFILTER] arp_tables: Fix unaligned accesses.

There are two device string comparison loops in arp_packet_match().
The first one goes byte-by-byte but the second one tries to be
clever and cast the string to a long and compare by longs.

The device name strings in the arp table entries are not guarenteed
to be aligned enough to make this value, so just use byte-by-byte
for both cases.

Based upon a report by <drraid@gmail.com>.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/arp_tables.c