commit fb89f62a9e0e08cb7a995497d0d1f6cdc86e53fc
Author: Eric MacDonald <email address hidden>
Date: Wed May 22 08:45:14 2019 -0400
Fix hbsAgent mgmnt interface name corruption
The hbsAgent socket initialization process is declaring
a local string variable and then loading the management
interface name into it and setting its static management
interface config pointer to that variable.
So, when that local variable falls out of scope and that
local (stack) variable memory is recycled and changed by
its new owner then the data the management interface config
pointer points to changes and that leads to the reported
error condition and log flooding.
This update allocates a new memory pointer instead.
Change-Id: I858bcc69455f1d915f2873c47a75dd1139cf8fcb
Closes-Bug: 1829608
Signed-off-by: Eric MacDonald <email address hidden>
Reviewed: https:/ /review. opendev. org/660704 /git.openstack. org/cgit/ starlingx/ metal/commit/ ?id=fb89f62a9e0 e08cb7a995497d0 d1f6cdc86e53fc
Committed: https:/
Submitter: Zuul
Branch: master
commit fb89f62a9e0e08c b7a995497d0d1f6 cdc86e53fc
Author: Eric MacDonald <email address hidden>
Date: Wed May 22 08:45:14 2019 -0400
Fix hbsAgent mgmnt interface name corruption
The hbsAgent socket initialization process is declaring
a local string variable and then loading the management
interface name into it and setting its static management
interface config pointer to that variable.
So, when that local variable falls out of scope and that
local (stack) variable memory is recycled and changed by
its new owner then the data the management interface config
pointer points to changes and that leads to the reported
error condition and log flooding.
This update allocates a new memory pointer instead.
Change-Id: I858bcc69455f1d 915f2873c47a75d d1139cf8fcb
Closes-Bug: 1829608
Signed-off-by: Eric MacDonald <email address hidden>