linux_dsm_epyc7002/include/net/irda
Dan Carpenter e15465e180 irda: small read past the end of array in debug code
The "reason" can come from skb->data[] and it hasn't been capped so it
can be from 0-255 instead of just 0-6.  For example in irlmp_state_dtr()
the code does:

	reason = skb->data[3];
	...
	irlmp_disconnect_indication(self, reason, skb);

Also LMREASON has a couple other values which don't have entries in the
irlmp_reasons[] array.  And 0xff is a valid reason as well which means
"unknown".

So far as I can see we don't actually care about "reason" except for in
the debug code.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-04-19 17:32:31 -04:00
..
af_irda.h include files: convert "include" subdirectory to UTF-8 2007-05-09 08:58:21 +02:00
crc.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
discovery.h irda: Fix a misalign access issue. (v2) 2008-05-13 23:25:57 -07:00
ircomm_core.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ircomm_event.h net: mark read-only arrays as const 2009-08-05 10:42:58 -07:00
ircomm_lmp.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ircomm_param.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ircomm_ttp.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ircomm_tty_attach.h net: mark read-only arrays as const 2009-08-05 10:42:58 -07:00
ircomm_tty.h TTY: ircomm, use tty from tty_port 2012-06-12 15:50:24 -07:00
irda_device.h irda: Add irda_skb_cb qdisc related padding 2008-12-17 15:44:58 -08:00
irda.h irda: Use __packed annotation instead IRDA_PACKED macro 2010-07-21 14:44:29 -07:00
iriap_event.h include files: convert "include" subdirectory to UTF-8 2007-05-09 08:58:21 +02:00
iriap.h include files: convert "include" subdirectory to UTF-8 2007-05-09 08:58:21 +02:00
irias_object.h include files: convert "include" subdirectory to UTF-8 2007-05-09 08:58:21 +02:00
irlan_client.h include files: convert "include" subdirectory to UTF-8 2007-05-09 08:58:21 +02:00
irlan_common.h irda: use net_device_stats from struct net_device 2010-08-21 23:32:31 -07:00
irlan_eth.h [IRDA]: Remove irlan_eth_send_gratuitous_arp() 2008-04-15 00:29:24 -07:00
irlan_event.h net/irda: Use static const char * const where possible 2010-09-14 20:22:05 -07:00
irlan_filter.h include files: convert "include" subdirectory to UTF-8 2007-05-09 08:58:21 +02:00
irlan_provider.h include files: convert "include" subdirectory to UTF-8 2007-05-09 08:58:21 +02:00
irlap_event.h net: mark read-only arrays as const 2009-08-05 10:42:58 -07:00
irlap_frame.h irda: Use __packed annotation instead IRDA_PACKED macro 2010-07-21 14:44:29 -07:00
irlap.h Fix common misspellings 2011-03-31 11:26:23 -03:00
irlmp_event.h net: mark read-only arrays as const 2009-08-05 10:42:58 -07:00
irlmp_frame.h include files: convert "include" subdirectory to UTF-8 2007-05-09 08:58:21 +02:00
irlmp.h irda: small read past the end of array in debug code 2013-04-19 17:32:31 -04:00
irmod.h include files: convert "include" subdirectory to UTF-8 2007-05-09 08:58:21 +02:00
irqueue.h include files: convert "include" subdirectory to UTF-8 2007-05-09 08:58:21 +02:00
irttp.h treewide: Replace incomming with incoming in all comments and strings 2013-01-03 16:15:49 +01:00
parameters.h include files: convert "include" subdirectory to UTF-8 2007-05-09 08:58:21 +02:00
qos.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
timer.h include files: convert "include" subdirectory to UTF-8 2007-05-09 08:58:21 +02:00
wrapper.h Fix common misspellings 2011-03-31 11:26:23 -03:00