x25: Patch to fix bug 15678 - x25 accesses fields beyond end of packet.
authorJohn Hughes <john@calva.com>
Thu, 8 Apr 2010 04:29:25 +0000 (21:29 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:27:09 +0000 (13:27 -0800)
commit7281524c6476cbb85cd5156bde7c12df793bfeb3
tree05c45640c9ece91c499e1a5a0cbd2f3c5f038945
parenta22280783f150f3e0bd03b4124faa73d45b8af06
x25: Patch to fix bug 15678 - x25 accesses fields beyond end of packet.

commit f5eb917b861828da18dc28854308068c66d1449a upstream.

Here is a patch to stop X.25 examining fields beyond the end of the packet.

For example, when a simple CALL ACCEPTED was received:

10 10 0f

x25_parse_facilities was attempting to decode the FACILITIES field, but this
packet contains no facilities field.

Signed-off-by: John Hughes <john@calva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/net/x25.h
net/x25/af_x25.c
net/x25/x25_facilities.c
net/x25/x25_in.c