]> git.openfabrics.org - ~shefty/ibacm.git/log
~shefty/ibacm.git
8 years agodelete
Sean Hefty [Tue, 28 Jul 2015 21:43:28 +0000 (14:43 -0700)]
delete

8 years agodelete
Sean Hefty [Tue, 28 Jul 2015 21:43:28 +0000 (14:43 -0700)]
delete

8 years agonew
Sean Hefty [Tue, 28 Jul 2015 21:43:24 +0000 (14:43 -0700)]
new

8 years agonew
Sean Hefty [Tue, 28 Jul 2015 21:43:24 +0000 (14:43 -0700)]
new

8 years agoacmp: Fix copying DGID from path record
Sean Hefty [Tue, 28 Jul 2015 21:43:24 +0000 (14:43 -0700)]
acmp: Fix copying DGID from path record

9 years agocommit
Sean Hefty [Wed, 17 Jun 2015 05:41:55 +0000 (22:41 -0700)]
commit

9 years agocommit
Sean Hefty [Wed, 17 Jun 2015 05:41:55 +0000 (22:41 -0700)]
commit

9 years agorefresh
Sean Hefty [Wed, 17 Jun 2015 05:41:24 +0000 (22:41 -0700)]
refresh

9 years agorefresh
Sean Hefty [Wed, 17 Jun 2015 05:41:24 +0000 (22:41 -0700)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 17 Jun 2015 05:41:24 +0000 (22:41 -0700)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 17 Jun 2015 05:41:24 +0000 (22:41 -0700)]
refresh (create temporary patch)

9 years agoRefresh of addr
Sean Hefty [Wed, 17 Jun 2015 05:41:24 +0000 (22:41 -0700)]
Refresh of addr

9 years agoacme.c: Fix IPv6 address handling in inet_any_pton
Ilya Nelkenbaum [Wed, 17 Jun 2015 05:39:51 +0000 (22:39 -0700)]
acme.c: Fix IPv6 address handling in inet_any_pton

In inet_any_pton() routine, src_addr was used by mistake
instead of addr argument.

Signed-off-by: Ilya Nelkenbaum <ilyan@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
9 years agonew
Sean Hefty [Wed, 17 Jun 2015 05:39:51 +0000 (22:39 -0700)]
new

9 years agonew
Sean Hefty [Wed, 17 Jun 2015 05:39:51 +0000 (22:39 -0700)]
new

9 years agoacme.c: Fix IPv6 address handling in inet_any_pton
Ilya Nelkenbaum [Wed, 17 Jun 2015 05:39:51 +0000 (22:39 -0700)]
acme.c: Fix IPv6 address handling in inet_any_pton

In inet_any_pton() routine, src_addr was used by mistake
instead of addr argument.

Signed-off-by: Ilya Nelkenbaum <ilyan@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
9 years agocommit
Sean Hefty [Wed, 25 Mar 2015 22:41:40 +0000 (15:41 -0700)]
commit

9 years agocommit
Sean Hefty [Wed, 25 Mar 2015 22:41:40 +0000 (15:41 -0700)]
commit

9 years agorefresh
Sean Hefty [Wed, 25 Mar 2015 22:40:50 +0000 (15:40 -0700)]
refresh

9 years agorefresh
Sean Hefty [Wed, 25 Mar 2015 22:40:50 +0000 (15:40 -0700)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 25 Mar 2015 22:40:50 +0000 (15:40 -0700)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 25 Mar 2015 22:40:50 +0000 (15:40 -0700)]
refresh (create temporary patch)

9 years agoRefresh of ibacm-use-pkey-0xffff-or-0x7ff
Sean Hefty [Wed, 25 Mar 2015 22:40:50 +0000 (15:40 -0700)]
Refresh of ibacm-use-pkey-0xffff-or-0x7ff

9 years agoibacm: Use pkey 0xffff or 0x7fff for SA query
Kaike Wan [Wed, 25 Mar 2015 22:40:46 +0000 (15:40 -0700)]
ibacm: Use pkey 0xffff or 0x7fff for SA query

Currently, ibacm uses the first pkey on the local port to query SA. More
appropriately, it should use either 0xffff or 0x7fff for SA query.
However, if the local port is not configured with either pkey, ibacm will
continue to use the first pkey.

Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
9 years agopick
Sean Hefty [Wed, 25 Mar 2015 22:40:46 +0000 (15:40 -0700)]
pick

9 years agopick
Sean Hefty [Wed, 25 Mar 2015 22:40:46 +0000 (15:40 -0700)]
pick

9 years agoibacm: Use pkey 0xffff or 0x7fff for SA query
Kaike Wan [Wed, 25 Mar 2015 22:40:46 +0000 (15:40 -0700)]
ibacm: Use pkey 0xffff or 0x7fff for SA query

Currently, ibacm uses the first pkey on the local port to query SA. More
appropriately, it should use either 0xffff or 0x7fff for SA query.
However, if the local port is not configured with either pkey, ibacm will
continue to use the first pkey.

Signed-off-by: Kaike Wan <kaike.wan@intel.com>
9 years agocommit
Sean Hefty [Wed, 7 Jan 2015 22:26:38 +0000 (14:26 -0800)]
commit

9 years agocommit
Sean Hefty [Wed, 7 Jan 2015 22:26:38 +0000 (14:26 -0800)]
commit

9 years agorefresh
Sean Hefty [Wed, 7 Jan 2015 22:25:46 +0000 (14:25 -0800)]
refresh

9 years agorefresh
Sean Hefty [Wed, 7 Jan 2015 22:25:46 +0000 (14:25 -0800)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 7 Jan 2015 22:25:42 +0000 (14:25 -0800)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 7 Jan 2015 22:25:42 +0000 (14:25 -0800)]
refresh (create temporary patch)

9 years agoRefresh of ibacm-open-only-prov-endpoints
Sean Hefty [Wed, 7 Jan 2015 22:25:42 +0000 (14:25 -0800)]
Refresh of ibacm-open-only-prov-endpoints

9 years agorefresh
Sean Hefty [Wed, 7 Jan 2015 22:25:39 +0000 (14:25 -0800)]
refresh

9 years agorefresh
Sean Hefty [Wed, 7 Jan 2015 22:25:39 +0000 (14:25 -0800)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 7 Jan 2015 22:25:39 +0000 (14:25 -0800)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 7 Jan 2015 22:25:39 +0000 (14:25 -0800)]
refresh (create temporary patch)

9 years agoRefresh of ibacm-open-only-prov-endpoints
Sean Hefty [Wed, 7 Jan 2015 22:25:39 +0000 (14:25 -0800)]
Refresh of ibacm-open-only-prov-endpoints

9 years agoibacm: open only prov endpoints with name/addr configured
Kaike Wan [Wed, 7 Jan 2015 22:25:34 +0000 (14:25 -0800)]
ibacm: open only prov endpoints with name/addr configured

This patch modifies the ibacm core so that it will request the provider to
open those endpoints that have been assigned with at least one name or address.
This change will avoid unnecessary endpoint open and close for those without
any name/address configured by the administrator.

Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
9 years agopick
Sean Hefty [Wed, 7 Jan 2015 22:25:34 +0000 (14:25 -0800)]
pick

9 years agopick
Sean Hefty [Wed, 7 Jan 2015 22:25:34 +0000 (14:25 -0800)]
pick

9 years agoibacm: open only prov endpoints with name/addr configured
Kaike Wan [Wed, 7 Jan 2015 22:25:34 +0000 (14:25 -0800)]
ibacm: open only prov endpoints with name/addr configured

This patch modifies the ibacm core so that it will request the provider to
open those endpoints that have been assigned with at least one name or address.
This change will avoid unnecessary endpoint open and close for those without
any name/address configured by the administrator.

Signed-off-by: Kaike Wan <kaike.wan@intel.com>
9 years agocommit
Sean Hefty [Mon, 15 Dec 2014 20:04:02 +0000 (12:04 -0800)]
commit

9 years agocommit
Sean Hefty [Mon, 15 Dec 2014 20:04:02 +0000 (12:04 -0800)]
commit

9 years agorefresh
Sean Hefty [Mon, 15 Dec 2014 20:03:54 +0000 (12:03 -0800)]
refresh

9 years agorefresh
Sean Hefty [Mon, 15 Dec 2014 20:03:54 +0000 (12:03 -0800)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Mon, 15 Dec 2014 20:03:41 +0000 (12:03 -0800)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Mon, 15 Dec 2014 20:03:41 +0000 (12:03 -0800)]
refresh (create temporary patch)

9 years agoRefresh of ibacm-search-the-pthread-and-d
Sean Hefty [Mon, 15 Dec 2014 20:03:41 +0000 (12:03 -0800)]
Refresh of ibacm-search-the-pthread-and-d

9 years agoibacm: Search the pthread and dynamic linker/loader library when linking.
John Fleck [Mon, 15 Dec 2014 15:43:25 +0000 (10:43 -0500)]
ibacm: Search the pthread and dynamic linker/loader library when linking.

When building with RHEL 7, there is an undefined reference to the pthread
and the dynamic linker/loader libraries.

Signed-off-by: John Fleck <john.fleck@intel.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
9 years agopick
Sean Hefty [Mon, 15 Dec 2014 20:03:34 +0000 (12:03 -0800)]
pick

9 years agopick
Sean Hefty [Mon, 15 Dec 2014 20:03:34 +0000 (12:03 -0800)]
pick

9 years agoibacm: Search the pthread and dynamic linker/loader library when linking.
John Fleck [Mon, 15 Dec 2014 15:43:25 +0000 (10:43 -0500)]
ibacm: Search the pthread and dynamic linker/loader library when linking.

When building with RHEL 7, there is an undefined reference to the pthread
and the dynamic linker/loader libraries.

9 years agocommit
Sean Hefty [Wed, 3 Dec 2014 20:15:57 +0000 (12:15 -0800)]
commit

9 years agocommit
Sean Hefty [Wed, 3 Dec 2014 20:15:57 +0000 (12:15 -0800)]
commit

9 years agoibacm: incorrect ifc_len is specified in SIOCGIFCONF request
Kaike Wan [Wed, 3 Dec 2014 19:42:54 +0000 (11:42 -0800)]
ibacm: incorrect ifc_len is specified in SIOCGIFCONF request

The ifc->ifs_len in the ioctl SIOCGIFCONF request should only specify the
associated ifreq buffer length and not include the ifc header length.
This bug was found by running ibacm with Valgrind:

==8201== Syscall param ioctl(SIOCGIFCONF).ifc_buf points to unaddressable byte(s)
==8201==    at 0x3E886DF7B7: ioctl (in /lib64/libc-2.12.so)
==8201==    by 0x40A11A: acm_if_iter_sys (acm_util.c:154)
==8201==    by 0x406979: acm_get_system_ips (acm.c:1584)
==8201==    by 0x4069FD: acm_assign_ep_names (acm.c:1602)
==8201==    by 0x4070D1: acm_ep_up (acm.c:1744)
==8201==    by 0x407799: acm_port_up (acm.c:1896)
==8201==    by 0x407DE1: acm_activate_devices (acm.c:2027)
==8201==    by 0x409CAC: main (acm.c:2728)
==8201==  Address 0x5063470 is 0 bytes after a block of size 2,576 alloc'd
==8201==    at 0x4A05FDE: malloc (vg_replace_malloc.c:236)
==8201==    by 0x40A0BB: acm_if_iter_sys (acm_util.c:144)
==8201==    by 0x406979: acm_get_system_ips (acm.c:1584)
==8201==    by 0x4069FD: acm_assign_ep_names (acm.c:1602)
==8201==    by 0x4070D1: acm_ep_up (acm.c:1744)
==8201==    by 0x407799: acm_port_up (acm.c:1896)
==8201==    by 0x407DE1: acm_activate_devices (acm.c:2027)
==8201==    by 0x409CAC: main (acm.c:2728)

Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
9 years agopop
Sean Hefty [Wed, 3 Dec 2014 20:14:51 +0000 (12:14 -0800)]
pop

9 years agopop
Sean Hefty [Wed, 3 Dec 2014 20:14:51 +0000 (12:14 -0800)]
pop

9 years agorefresh
Sean Hefty [Wed, 3 Dec 2014 20:14:49 +0000 (12:14 -0800)]
refresh

9 years agorefresh
Sean Hefty [Wed, 3 Dec 2014 20:14:49 +0000 (12:14 -0800)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 3 Dec 2014 20:14:49 +0000 (12:14 -0800)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 3 Dec 2014 20:14:49 +0000 (12:14 -0800)]
refresh (create temporary patch)

9 years agoRefresh of ibacm-ibacmp-fix-a-crash-when-
Sean Hefty [Wed, 3 Dec 2014 20:14:49 +0000 (12:14 -0800)]
Refresh of ibacm-ibacmp-fix-a-crash-when-

9 years agoibacm/ibacmp: fix a crash when SM restarts
Kaike Wan [Wed, 3 Dec 2014 20:14:44 +0000 (12:14 -0800)]
ibacm/ibacmp: fix a crash when SM restarts

Ibacm may cause segfault when the SM restarts: when the SM restarts, ibacm will
receive P_Key change event and instruct ibacmp to close all endpoints. However,
ibacmp only resets the core endpoint pointer in its ep structure and keeps the ep
in the port's ep_list. Afterwards, the ibacm core will ask ibacmp to create
an ep for each pkey enumerated from the local port. The ep will be found
from the port's ep_list if it exists. However, if an old pkey is not present
in the new SM configuration, the old ep will still be linked in the port's
ep_list with the ep->endpoint being set to NULL. When the ibacm core forwards
the client reregistration event to ibacmp, ibacmp will enumerate the ep_list and
try to join multicast group for each ep, including any one with ep->endpoint
set to NULL. In this case, it will cause segfault in acm_send_sa_mad().
Additional check should be able to avoid the crash.

Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
9 years agopick
Sean Hefty [Wed, 3 Dec 2014 20:14:44 +0000 (12:14 -0800)]
pick

9 years agopick
Sean Hefty [Wed, 3 Dec 2014 20:14:44 +0000 (12:14 -0800)]
pick

9 years agoibacm/ibacmp: fix a crash when SM restarts
Kaike Wan [Wed, 3 Dec 2014 20:14:44 +0000 (12:14 -0800)]
ibacm/ibacmp: fix a crash when SM restarts

Ibacm may cause segfault when the SM restarts: when the SM restarts, ibacm will
receive P_Key change event and instruct ibacmp to close all endpoints. However,
ibacmp only resets the core endpoint pointer in its ep structure and keeps the ep
in the port's ep_list. Afterwards, the ibacm core will ask ibacmp to create
an ep for each pkey enumerated from the local port. The ep will be found
from the port's ep_list if it exists. However, if an old pkey is not present
in the new SM configuration, the old ep will still be linked in the port's
ep_list with the ep->endpoint being set to NULL. When the ibacm core forwards
the client reregistration event to ibacmp, ibacmp will enumerate the ep_list and
try to join multicast group for each ep, including any one with ep->endpoint
set to NULL. In this case, it will cause segfault in acm_send_sa_mad().
Additional check should be able to avoid the crash.

Signed-off-by: Kaike Wan <kaike.wan@intel.com>
9 years agopop
Sean Hefty [Wed, 3 Dec 2014 20:14:40 +0000 (12:14 -0800)]
pop

9 years agopop
Sean Hefty [Wed, 3 Dec 2014 20:14:40 +0000 (12:14 -0800)]
pop

9 years agorefresh
Sean Hefty [Wed, 3 Dec 2014 19:43:37 +0000 (11:43 -0800)]
refresh

9 years agorefresh
Sean Hefty [Wed, 3 Dec 2014 19:43:37 +0000 (11:43 -0800)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 3 Dec 2014 19:43:37 +0000 (11:43 -0800)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 3 Dec 2014 19:43:37 +0000 (11:43 -0800)]
refresh (create temporary patch)

9 years agoRefresh of ibacm-incorrect-ifc_len-is-spe
Sean Hefty [Wed, 3 Dec 2014 19:43:37 +0000 (11:43 -0800)]
Refresh of ibacm-incorrect-ifc_len-is-spe

9 years agoibacm: incorrect ifc_len is specified in SIOCGIFCONF request
Kaike Wan [Wed, 3 Dec 2014 19:42:54 +0000 (11:42 -0800)]
ibacm: incorrect ifc_len is specified in SIOCGIFCONF request

The ifc->ifs_len in the ioctl SIOCGIFCONF request should only specify the
associated ifreq buffer length and not include the ifc header length.
This bug was found by running ibacm with Valgrind:

==8201== Syscall param ioctl(SIOCGIFCONF).ifc_buf points to unaddressable byte(s)
==8201==    at 0x3E886DF7B7: ioctl (in /lib64/libc-2.12.so)
==8201==    by 0x40A11A: acm_if_iter_sys (acm_util.c:154)
==8201==    by 0x406979: acm_get_system_ips (acm.c:1584)
==8201==    by 0x4069FD: acm_assign_ep_names (acm.c:1602)
==8201==    by 0x4070D1: acm_ep_up (acm.c:1744)
==8201==    by 0x407799: acm_port_up (acm.c:1896)
==8201==    by 0x407DE1: acm_activate_devices (acm.c:2027)
==8201==    by 0x409CAC: main (acm.c:2728)
==8201==  Address 0x5063470 is 0 bytes after a block of size 2,576 alloc'd
==8201==    at 0x4A05FDE: malloc (vg_replace_malloc.c:236)
==8201==    by 0x40A0BB: acm_if_iter_sys (acm_util.c:144)
==8201==    by 0x406979: acm_get_system_ips (acm.c:1584)
==8201==    by 0x4069FD: acm_assign_ep_names (acm.c:1602)
==8201==    by 0x4070D1: acm_ep_up (acm.c:1744)
==8201==    by 0x407799: acm_port_up (acm.c:1896)
==8201==    by 0x407DE1: acm_activate_devices (acm.c:2027)
==8201==    by 0x409CAC: main (acm.c:2728)

Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
9 years agopop
Sean Hefty [Wed, 3 Dec 2014 19:43:35 +0000 (11:43 -0800)]
pop

9 years agopop
Sean Hefty [Wed, 3 Dec 2014 19:43:35 +0000 (11:43 -0800)]
pop

9 years agoibacm: incorrect ifc_len is specified in SIOCGIFCONF request
Kaike Wan [Wed, 3 Dec 2014 19:42:54 +0000 (11:42 -0800)]
ibacm: incorrect ifc_len is specified in SIOCGIFCONF request

The ifc->ifs_len in the ioctl SIOCGIFCONF request should only specify the
associated ifreq buffer length and not include the ifc header length.
This bug was found by running ibacm with Valgrind:

==8201== Syscall param ioctl(SIOCGIFCONF).ifc_buf points to unaddressable byte(s)
==8201==    at 0x3E886DF7B7: ioctl (in /lib64/libc-2.12.so)
==8201==    by 0x40A11A: acm_if_iter_sys (acm_util.c:154)
==8201==    by 0x406979: acm_get_system_ips (acm.c:1584)
==8201==    by 0x4069FD: acm_assign_ep_names (acm.c:1602)
==8201==    by 0x4070D1: acm_ep_up (acm.c:1744)
==8201==    by 0x407799: acm_port_up (acm.c:1896)
==8201==    by 0x407DE1: acm_activate_devices (acm.c:2027)
==8201==    by 0x409CAC: main (acm.c:2728)
==8201==  Address 0x5063470 is 0 bytes after a block of size 2,576 alloc'd
==8201==    at 0x4A05FDE: malloc (vg_replace_malloc.c:236)
==8201==    by 0x40A0BB: acm_if_iter_sys (acm_util.c:144)
==8201==    by 0x406979: acm_get_system_ips (acm.c:1584)
==8201==    by 0x4069FD: acm_assign_ep_names (acm.c:1602)
==8201==    by 0x4070D1: acm_ep_up (acm.c:1744)
==8201==    by 0x407799: acm_port_up (acm.c:1896)
==8201==    by 0x407DE1: acm_activate_devices (acm.c:2027)
==8201==    by 0x409CAC: main (acm.c:2728)

Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
9 years agorefresh
Sean Hefty [Wed, 3 Dec 2014 19:43:33 +0000 (11:43 -0800)]
refresh

9 years agorefresh
Sean Hefty [Wed, 3 Dec 2014 19:43:33 +0000 (11:43 -0800)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 3 Dec 2014 19:43:33 +0000 (11:43 -0800)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 3 Dec 2014 19:43:33 +0000 (11:43 -0800)]
refresh (create temporary patch)

9 years agoRefresh of ibacm-close-the-provider-endpo
Sean Hefty [Wed, 3 Dec 2014 19:43:32 +0000 (11:43 -0800)]
Refresh of ibacm-close-the-provider-endpo

9 years agoibacm: close the provider endpoint when it fails to assign a name to a core endpoint
Kaike Wan [Wed, 3 Dec 2014 19:37:51 +0000 (11:37 -0800)]
ibacm: close the provider endpoint when it fails to assign a name to a core endpoint

In function acm_ep_up(), when it fails to assign any name to an endpoint, the
endpoint in the provider is not properly closed before the core endpoint is
freed. This may cause segfault when ibacmp tries to join multicast group with
a stale core endpoint pointer.

Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
9 years agopop
Sean Hefty [Wed, 3 Dec 2014 19:43:30 +0000 (11:43 -0800)]
pop

9 years agopop
Sean Hefty [Wed, 3 Dec 2014 19:43:30 +0000 (11:43 -0800)]
pop

9 years agoibacm: close the provider endpoint when it fails to assign a name to a core endpoint
Kaike Wan [Wed, 3 Dec 2014 19:37:51 +0000 (11:37 -0800)]
ibacm: close the provider endpoint when it fails to assign a name to a core endpoint

In function acm_ep_up(), when it fails to assign any name to an endpoint, the
endpoint in the provider is not properly closed before the core endpoint is
freed. This may cause segfault when ibacmp tries to join multicast group with
a stale core endpoint pointer.

Signed-off-by: Kaike Wan <kaike.wan@intel.com>
9 years agorefresh
Sean Hefty [Wed, 3 Dec 2014 19:43:24 +0000 (11:43 -0800)]
refresh

9 years agorefresh
Sean Hefty [Wed, 3 Dec 2014 19:43:24 +0000 (11:43 -0800)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 3 Dec 2014 19:43:24 +0000 (11:43 -0800)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 3 Dec 2014 19:43:24 +0000 (11:43 -0800)]
refresh (create temporary patch)

9 years agoRefresh of ibacmp-missing-in-acm_log-form
Sean Hefty [Wed, 3 Dec 2014 19:43:24 +0000 (11:43 -0800)]
Refresh of ibacmp-missing-in-acm_log-form

9 years agopop
Sean Hefty [Wed, 3 Dec 2014 19:43:03 +0000 (11:43 -0800)]
pop

9 years agopop
Sean Hefty [Wed, 3 Dec 2014 19:43:03 +0000 (11:43 -0800)]
pop

9 years agopop
Sean Hefty [Wed, 3 Dec 2014 19:42:58 +0000 (11:42 -0800)]
pop

9 years agopop
Sean Hefty [Wed, 3 Dec 2014 19:42:58 +0000 (11:42 -0800)]
pop

9 years agopick
Sean Hefty [Wed, 3 Dec 2014 19:42:54 +0000 (11:42 -0800)]
pick

9 years agopick
Sean Hefty [Wed, 3 Dec 2014 19:42:54 +0000 (11:42 -0800)]
pick

9 years agoibacm: incorrect ifc_len is specified in SIOCGIFCONF request
Kaike Wan [Wed, 3 Dec 2014 19:42:54 +0000 (11:42 -0800)]
ibacm: incorrect ifc_len is specified in SIOCGIFCONF request

The ifc->ifs_len in the ioctl SIOCGIFCONF request should only specify the
associated ifreq buffer length and not include the ifc header length.
This bug was found by running ibacm with Valgrind:

==8201== Syscall param ioctl(SIOCGIFCONF).ifc_buf points to unaddressable byte(s)
==8201==    at 0x3E886DF7B7: ioctl (in /lib64/libc-2.12.so)
==8201==    by 0x40A11A: acm_if_iter_sys (acm_util.c:154)
==8201==    by 0x406979: acm_get_system_ips (acm.c:1584)
==8201==    by 0x4069FD: acm_assign_ep_names (acm.c:1602)
==8201==    by 0x4070D1: acm_ep_up (acm.c:1744)
==8201==    by 0x407799: acm_port_up (acm.c:1896)
==8201==    by 0x407DE1: acm_activate_devices (acm.c:2027)
==8201==    by 0x409CAC: main (acm.c:2728)
==8201==  Address 0x5063470 is 0 bytes after a block of size 2,576 alloc'd
==8201==    at 0x4A05FDE: malloc (vg_replace_malloc.c:236)
==8201==    by 0x40A0BB: acm_if_iter_sys (acm_util.c:144)
==8201==    by 0x406979: acm_get_system_ips (acm.c:1584)
==8201==    by 0x4069FD: acm_assign_ep_names (acm.c:1602)
==8201==    by 0x4070D1: acm_ep_up (acm.c:1744)
==8201==    by 0x407799: acm_port_up (acm.c:1896)
==8201==    by 0x407DE1: acm_activate_devices (acm.c:2027)
==8201==    by 0x409CAC: main (acm.c:2728)

Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>