Wind River Support Network

HomeDefectsLIN8-12078
Fixed

LIN8-12078 : SNMPv3 over DTLS: tlstmParams cache cleaning

Created: Feb 10, 2020    Updated: Apr 25, 2020
Resolved Date: Apr 20, 2020
Found In Version: 8.0.0.24
Fix Version: 8.0.0.33
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Userspace

Description

One part of configuration is localCert (written through snmpd.conf) and trusted certificates (written by invoking snmpset). 
 The other part is configuring notification targets (trap receivers) and TSM users. This is also done by invoking snmpset command.

The above operations work fine. The problems appear when we try to change securityName (user) parameter. 
 We get a following error and crash in snmpd:

error on subcontainer 'tlstmParams' insert (-1) 
 error inserting tlstmParams com_ntfTLS1

The interesting thing is that this works if cache has been cleaned between creating/editing a user and trying to edit it again:

tlstmParamsTable:cache:free: called, 1 rows 
 tlstmParamsTable:entry:delete: entry 0x4d9d58 / row 0x4d9d40 
 tlstmParamsTable:cache:free: done, 0 rows

But if the cache wasn’t cleared after last operation we always get this crash. Timeout for cache cleaning is 60 seconds based on what we see.

I have included the following: 
 Operations performed when SnmpTargetV3Dtls (notification target + TSM user) is re-configured. 
 Traces from database when these operations are performed. 
 PMD from one of the crashes

 
Live chat
Online