<?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 Re: ASLR seed in imx-optee in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/ASLR-seed-in-imx-optee/m-p/2127777#M238951</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/140665"&gt;@alexanderhoppus&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've sent you system email.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Harvey&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jul 2025 05:55:21 GMT</pubDate>
    <dc:creator>Harvey021</dc:creator>
    <dc:date>2025-07-03T05:55:21Z</dc:date>
    <item>
      <title>ASLR seed in imx-optee</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ASLR-seed-in-imx-optee/m-p/2121468#M238629</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm looking in imx-optee and how ASLR seed is generated there. I see support for ELE&amp;nbsp;&lt;A title="ele" href="https://github.com/nxp-imx/imx-optee-os/blob/lf-6.12.3_1.0.0/core/drivers/crypto/ele/ele.c#L610" target="_self"&gt;https://github.com/nxp-imx/imx-optee-os/blob/lf-6.12.3_1.0.0/core/drivers/crypto/ele/ele.c#L610&lt;/A&gt;&amp;nbsp;, but there is no ele on my platform (imx8mp), however still the hardware rng is available in caam, but I don't see that it is used to seed ASLR, so system end up with seed 0&amp;nbsp;&lt;A title="0" href="http://github.com/nxp-imx/imx-optee-os/blob/lf-6.12.3_1.0.0/core/arch/arm/kernel/boot.c#L112" target="_self"&gt;github.com/nxp-imx/imx-optee-os/blob/lf-6.12.3_1.0.0/core/arch/arm/kernel/boot.c#L112&lt;/A&gt;&amp;nbsp;what it seems is insecure.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 13:48:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ASLR-seed-in-imx-optee/m-p/2121468#M238629</guid>
      <dc:creator>alexanderhoppus</dc:creator>
      <dc:date>2025-06-23T13:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: ASLR seed in imx-optee</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ASLR-seed-in-imx-optee/m-p/2124431#M238784</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried to test what log or RNG past from FDT?&lt;/P&gt;
&lt;P&gt;with&amp;nbsp;&lt;SPAN data-teams="true"&gt;unsigned long __weak get_aslr_seed(void) from&amp;nbsp;&lt;A href="https://github.com/nxp-imx/imx-optee-os/blob/lf-6.12.3_1.0.0/core/arch/arm/kernel/boot.c#L110" target="_self"&gt;boot.c&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;.....&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt; offs =&amp;nbsp; fdt_path_offset(fdt, "/secure-chosen");&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; if (offs &amp;lt; 0) {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; DMSG("Cannot find /secure-chosen");&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; goto err;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; seed = fdt_getprop(fdt, offs, "kaslr-seed", &amp;amp;len);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; if (!seed || len != sizeof(*seed)) {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; DMSG("Cannot find valid kaslr-seed");&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; goto err;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; return fdt64_to_cpu(fdt64_ld(seed));&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;err:&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; /* Try platform implementation */&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; return plat_get_aslr_seed();&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Harvey&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Jun 2025 05:25:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ASLR-seed-in-imx-optee/m-p/2124431#M238784</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2025-06-27T05:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: ASLR seed in imx-optee</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ASLR-seed-in-imx-optee/m-p/2125083#M238825</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192970"&gt;@Harvey021&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thanks for your response, I don't think taking seed from dts will work, since seed need to be random and it should change on every boot, in other case aslr is unreliable. I don't think correct seeding will work with current codebase, I have several ideas how that can be resolved, but I'm not sure who is the right person / where is right place to discuss. Or maybe should I send MRs to optee/atf directly. But I would like first check if the ideas are feasible or not.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jun 2025 16:16:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ASLR-seed-in-imx-optee/m-p/2125083#M238825</guid>
      <dc:creator>alexanderhoppus</dc:creator>
      <dc:date>2025-06-28T16:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: ASLR seed in imx-optee</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ASLR-seed-in-imx-optee/m-p/2127777#M238951</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/140665"&gt;@alexanderhoppus&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've sent you system email.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Harvey&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 05:55:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ASLR-seed-in-imx-optee/m-p/2127777#M238951</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2025-07-03T05:55:21Z</dc:date>
    </item>
  </channel>
</rss>

