linux-hardened/net/tipc
Allan Stephens a686e6859e tipc: Fix minor bugs in link session number handling
This patch introduces a new, out-of-range value to indicate that
a link endpoint does not have an existing session established
with its peer, eliminating the risk that the previously used
"invalid session number" value (i.e. zero) might eventually be
assigned as a valid session number and cause incorrect link
behavior.

The patch also introduces explicit bit masking when assigning a
new link session number to ensure it does not exceed 16 bits.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-06-04 17:29:39 -07:00
..
addr.c [NET] TIPC: Fix whitespace errors. 2007-02-10 23:20:15 -08:00
addr.h [TIPC]: Kill unused static inline (x5) 2008-02-07 18:17:13 -08:00
bcast.c [NET] TIPC: Fix whitespace errors. 2007-02-10 23:20:15 -08:00
bcast.h [TIPC]: Kill unused static inline (x5) 2008-02-07 18:17:13 -08:00
bearer.c [NET] TIPC: Fix whitespace errors. 2007-02-10 23:20:15 -08:00
bearer.h [NET] TIPC: Fix whitespace errors. 2007-02-10 23:20:15 -08:00
cluster.c tipc: fix integer as NULL pointer sparse warnings in tipc 2008-02-24 18:38:31 -08:00
cluster.h [NET] TIPC: Fix whitespace errors. 2007-02-10 23:20:15 -08:00
config.c tipc: Fix initialization sequence problems when entering network mode 2008-05-21 14:55:04 -07:00
config.h [NET] TIPC: Fix whitespace errors. 2007-02-10 23:20:15 -08:00
core.c tipc: Fix initialization sequence problems when entering network mode 2008-05-21 14:55:04 -07:00
core.h tipc: Fix initialization sequence problems when entering network mode 2008-05-21 14:55:04 -07:00
dbg.c tipc: Exclude debug-only print buffer code when not debugging 2008-05-05 01:24:06 -07:00
dbg.h tipc: Elimination of print buffer chaining 2008-05-05 01:22:30 -07:00
discover.c tipc: Optimize null pointer check during neighbor discovery 2008-05-21 14:53:34 -07:00
discover.h [NET] TIPC: Fix whitespace errors. 2007-02-10 23:20:15 -08:00
eth_media.c [NET] NETNS: Omit net_device->nd_net without CONFIG_NET_NS. 2008-03-26 04:39:53 +09:00
handler.c mm: Remove slab destructors from kmem_cache_create(). 2007-07-20 10:11:58 +09:00
Kconfig [TIPC]: Use menuconfig objects. 2007-05-24 16:36:50 -07:00
link.c tipc: Fix minor bugs in link session number handling 2008-06-04 17:29:39 -07:00
link.h [NET] TIPC: Fix whitespace errors. 2007-02-10 23:20:15 -08:00
Makefile [TIPC] Initial merge 2006-01-12 14:06:31 -08:00
msg.c tipc: Fix bugs in message error code display when debugging 2008-06-04 17:29:09 -07:00
msg.h tipc: endianness annotations 2008-04-27 14:26:49 -07:00
name_distr.c tipc: Fix null pointer dereference in debug code 2008-05-05 01:21:54 -07:00
name_distr.h [NET] TIPC: Fix whitespace errors. 2007-02-10 23:20:15 -08:00
name_table.c tipc: Enhancements to name table initialization 2008-05-12 15:41:53 -07:00
name_table.h [NET] TIPC: Fix whitespace errors. 2007-02-10 23:20:15 -08:00
net.c tipc: Fix initialization sequence problems when entering network mode 2008-05-21 14:55:04 -07:00
net.h tipc: Fix initialization sequence problems when entering network mode 2008-05-21 14:55:04 -07:00
netlink.c tipc: Fix skb_under_panic when configuring TIPC without privileges 2008-05-21 14:52:30 -07:00
node.c tipc: Prevent node object duplication due to simultaneous discovery 2008-05-21 14:53:00 -07:00
node.h [NET] TIPC: Fix whitespace errors. 2007-02-10 23:20:15 -08:00
node_subscr.c [NET] TIPC: Fix whitespace errors. 2007-02-10 23:20:15 -08:00
node_subscr.h [NET] TIPC: Fix whitespace errors. 2007-02-10 23:20:15 -08:00
port.c tipc: Standardize error checking on incoming messages via native API 2008-06-04 17:28:45 -07:00
port.h [TIPC]: Optimize stream send routine to avoid fragmentation 2007-07-10 22:06:12 -07:00
ref.c tipc: Fix race condition when creating socket or native port 2008-05-12 15:42:28 -07:00
ref.h [TIPC]: Remove inlining of reference table locking routines 2008-04-16 18:21:16 -07:00
socket.c tipc: Fix race condition when creating socket or native port 2008-05-12 15:42:28 -07:00
subscr.c tipc: Cosmetic cleanup of topology service code 2008-05-19 13:30:13 -07:00
subscr.h tipc: Cosmetic cleanup of topology service code 2008-05-19 13:30:13 -07:00
user_reg.c [NET] TIPC: Fix whitespace errors. 2007-02-10 23:20:15 -08:00
user_reg.h [NET] TIPC: Fix whitespace errors. 2007-02-10 23:20:15 -08:00
zone.c tipc: fix integer as NULL pointer sparse warnings in tipc 2008-02-24 18:38:31 -08:00
zone.h [NET] TIPC: Fix whitespace errors. 2007-02-10 23:20:15 -08:00