From: Buddy Liong Date: Tue, 19 May 2015 14:11:23 +0000 (-0500) Subject: QNX: Fix in trace buffer dump during recovery X-Git-Tag: 3.41.00.01_eng~12 X-Git-Url: https://git.ti.com/gitweb?p=ipc%2Fipcdev.git;a=commitdiff_plain;h=45fd9cac98e8adbf14f43d50fc2f7aa53329ef5f;hp=45fd9cac98e8adbf14f43d50fc2f7aa53329ef5f QNX: Fix in trace buffer dump during recovery During the recovery, in deinit_ipc(), the IPC resource manager will try to dump the remote core trace information to a file. There is a possibility that the trace buffer may have become corrupted as a result of the crash on the remote core and that the write index, which resides in the trace buffer, has become corrupted as well. In this situation, there is a potential that the trace dump code will read beyond the mapped buffer for the TRACE BUF memory, causing the system to crash and be unable to recover. At this point a system restart is required to recover the system. There should be a check to make sure that the trace dump code is not indexing beyond the end of the trace buffer. Signed-off-by: Buddy Liong Signed-off-by: Angela Stegmaier ---