<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hi Kazutomo, in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/micctrl-crash/m-p/1000246#M29879</link>
    <description>&lt;P&gt;Hi Kazutomo,&lt;/P&gt;

&lt;P&gt;I also tried with sysmap in micctrl but still couldn't reproduce the problem. However, I agree the code needs to be changed. I did file a bug report, (ID: 4868934) to report this issue..&lt;/P&gt;

&lt;P&gt;Thank you..&lt;/P&gt;</description>
    <pubDate>Thu, 24 Apr 2014 20:44:08 GMT</pubDate>
    <dc:creator>Loc_N_Intel</dc:creator>
    <dc:date>2014-04-24T20:44:08Z</dc:date>
    <item>
      <title>micctrl crash</title>
      <link>https://community.intel.com/t5/Software-Archive/micctrl-crash/m-p/1000243#M29876</link>
      <description>&lt;P&gt;micctrl crashes if I change OSimage in micX.conf on MPSS 3.2. I traced it and found a problem. &amp;nbsp; I checked the MPSS-3.2.1 source code and looks this problem still there. See below for a fix.&lt;/P&gt;

&lt;P&gt;- kaz&lt;/P&gt;

&lt;P&gt;--- mpss-daemon-3.2/libmpssconfig/mpssconfig.c.bak&amp;nbsp;&amp;nbsp; &amp;nbsp;2014-04-24 01:01:47.097544049 -0500&lt;BR /&gt;
	+++ mpss-daemon-3.2/libmpssconfig/mpssconfig.c&amp;nbsp;&amp;nbsp; &amp;nbsp;2014-04-24 01:02:01.256545552 -0500&lt;BR /&gt;
	@@ -205,7 +205,7 @@&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;return 0;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	-&amp;nbsp;&amp;nbsp; &amp;nbsp;if ((mic-&amp;gt;config.boot.systemmap = malloc(strlen(map)) + 1) != NULL) {&lt;BR /&gt;
	+&amp;nbsp;&amp;nbsp; &amp;nbsp;if ((mic-&amp;gt;config.boot.systemmap = malloc(strlen(map)+ 1)) != NULL) {&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;strcpy(mic-&amp;gt;config.boot.systemmap, map);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;add_perr(perrs, PINFO, "%s: [Parse] OS System map %s", mic-&amp;gt;name, map);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2014 06:26:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/micctrl-crash/m-p/1000243#M29876</guid>
      <dc:creator>Kazutomo_Y_</dc:creator>
      <dc:date>2014-04-24T06:26:42Z</dc:date>
    </item>
    <item>
      <title>Hi Kazutomo,</title>
      <link>https://community.intel.com/t5/Software-Archive/micctrl-crash/m-p/1000244#M29877</link>
      <description>&lt;P&gt;Hi Kazutomo,&lt;/P&gt;

&lt;P&gt;I tried to reproduce the problem you reported but I didn't see it. Here is what I did on my system with MPSS 3.2.1 (note that bzImage-2.6.38+mpss3.2-knightscorner and System.map-2.6.38+mpss3.2-kgnightscorner are currently existing files&amp;nbsp;under /usr/share/mpss/boot)&lt;/P&gt;

&lt;P&gt;% micinfo&lt;/P&gt;

&lt;P&gt;% cd /usr/share/mpss/boot&lt;/P&gt;

&lt;P&gt;%&amp;nbsp;cp bzImage-2.6.38+mpss3.2-knightscorner bzImage-test&lt;/P&gt;

&lt;P&gt;% micctrl --osimage=/usr/share/mpss/boot/bzImage-test --sysmap=/usr/share/mpss/boot/System.map-knightscorner mic0&lt;/P&gt;

&lt;P&gt;% service mpss stop&lt;/P&gt;

&lt;P&gt;% service mpss start&lt;/P&gt;

&lt;P&gt;MPSS comes up properly, mic0 booted with bzImage-test.&lt;/P&gt;

&lt;P&gt;Would you like to describe how did you find the issue? Thank you.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2014 19:27:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/micctrl-crash/m-p/1000244#M29877</guid>
      <dc:creator>Loc_N_Intel</dc:creator>
      <dc:date>2014-04-24T19:27:41Z</dc:date>
    </item>
    <item>
      <title>Hi Loc-nguyen,</title>
      <link>https://community.intel.com/t5/Software-Archive/micctrl-crash/m-p/1000245#M29878</link>
      <description>&lt;P&gt;Hi Loc-nguyen,&lt;/P&gt;

&lt;P&gt;The code probably works without segv by luck. It depends on the string length (technically of the system map).&lt;/P&gt;

&lt;P&gt;Please take a look at the source code of&amp;nbsp; mpss-daemon-3.2/libmpssconfig/mpssconfig.c&amp;nbsp; The line number 208 in a copy of the mpss source code I have&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((mic-&amp;gt;config.boot.systemmap = malloc(strlen(map)) + 1) != NULL) {&lt;/P&gt;

&lt;P&gt;This malloac only allocates the size strlen(map) and adds 1 to the malloc result.&amp;nbsp; The following strcpy is likely to trigger a data corruption.&lt;/P&gt;

&lt;P&gt;- kaz&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2014 19:47:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/micctrl-crash/m-p/1000245#M29878</guid>
      <dc:creator>Kazutomo_Y_</dc:creator>
      <dc:date>2014-04-24T19:47:18Z</dc:date>
    </item>
    <item>
      <title>Hi Kazutomo,</title>
      <link>https://community.intel.com/t5/Software-Archive/micctrl-crash/m-p/1000246#M29879</link>
      <description>&lt;P&gt;Hi Kazutomo,&lt;/P&gt;

&lt;P&gt;I also tried with sysmap in micctrl but still couldn't reproduce the problem. However, I agree the code needs to be changed. I did file a bug report, (ID: 4868934) to report this issue..&lt;/P&gt;

&lt;P&gt;Thank you..&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2014 20:44:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/micctrl-crash/m-p/1000246#M29879</guid>
      <dc:creator>Loc_N_Intel</dc:creator>
      <dc:date>2014-04-24T20:44:08Z</dc:date>
    </item>
  </channel>
</rss>

