This issue is seen on changeset 6377 (46FC Tag). When IMM agents using old APIs (having SaNameT) specifies the length of object greater than 256, application asserts.
bt of the core:
Program terminated with signal 6, Aborted.
#0 0x00007fe800983b55 in raise () from /lib64/libc.so.6
(gdb) bt
#0 0x00007fe800983b55 in raise () from /lib64/libc.so.6
#1 0x00007fe800985131 in abort () from /lib64/libc.so.6
#2 0x00007fe7ffe2437a in __osafassert_fail () from /usr/lib64/libopensaf_core.so.0
#3 0x00007fe7ffe204b3 in osaf_extended_name_length () from /usr/lib64/libopensaf_core.so.0
#4 0x00007fe8000a2dac in saImmOmAdminOperationInvoke_o2 () at imma_om_api.c:3569
Till 4.5 INVALID_PARAM is returned to the application.
Diff:
This problem is introduced in OpenSAF 4.6. More IMM functions are affected by this problem, not only saImmOmAdminOperationInvoke_o2().
The check, if object name is a valid name, is missing before osaf_extended_name_length().
There are some parts of the code in OpenSAF 4.5 where the check is missing. The milestone is reverted to 4.5.2
opensaf-4.5.x:
https://sourceforge.net/p/opensaf/mailman/message/33765637/
opensaf-4.6.x:
default(4.7):
https://sourceforge.net/p/opensaf/mailman/message/33765670/
I unintentionally changed the milestone from 4.5 to 4.6, and changed the status from review to accepted.
I change back to the right milestone and the status.
opensaf-4.5.x:
changeset: 6475:9efc31715bdf
branch: opensaf-4.5.x
parent: 6472:3afd398b3d36
user: Zoran Milinkovic zoran.milinkovic@ericsson.com
date: Fri Apr 10 14:12:58 2015 +0200
summary: imm: validate SaNameT value before osaf_extended_name_length [#1303]
opensaf-4.6.x:
changeset: 6476:712340762044
branch: opensaf-4.6.x
parent: 6473:46e07c8e11c9
user: Zoran Milinkovic zoran.milinkovic@ericsson.com
date: Fri Apr 10 14:15:49 2015 +0200
summary: imm: validate SaNameT value before osaf_extended_name_length [#1303]
default(4.7):
changeset: 6477:29cbb9e3c859
tag: tip
parent: 6474:4307262dd0d8
user: Zoran Milinkovic zoran.milinkovic@ericsson.com
date: Fri Apr 10 14:15:49 2015 +0200
summary: imm: validate SaNameT value before osaf_extended_name_length [#1303]
Related
Tickets:
#1303