<?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: uevents causing kernel panic in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/uevents-causing-kernel-panic/m-p/773822#M120137</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;I have tried udevd --debug and found the udev rules related to it. Then, I made some changes in those rules and I found no memory leak in the initial 40 minutes.&lt;/P&gt;&lt;P&gt;But after that the memory leak happens again and goes to panic within 1 hour 15 minutes. &lt;STRONG&gt;How to debug this issue?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Could you give more detail of usermode helper and how to handle it?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jun 2018 06:28:56 GMT</pubDate>
    <dc:creator>mathew_k_t</dc:creator>
    <dc:date>2018-06-01T06:28:56Z</dc:date>
    <item>
      <title>uevents causing kernel panic</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/uevents-causing-kernel-panic/m-p/773820#M120135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working with imx6ull custom board. In my BSP, I have enabled uevents for notifying interrupts to userspace application. I'm receiving uevents. But the uevents cause memory exhaust. It uses 500KB within 2sec.Verified with &lt;STRONG&gt;top&lt;/STRONG&gt; command.&lt;/P&gt;&lt;P&gt;Finally, it enters to kernel panic after 30 minutes due to Out of Memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. How to avoid this?&lt;/P&gt;&lt;P&gt;2. Is there any other method to receive events to userspace application other than uevents?(should capable of interrupts at every 5ms)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2018 04:59:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/uevents-causing-kernel-panic/m-p/773820#M120135</guid>
      <dc:creator>mathew_k_t</dc:creator>
      <dc:date>2018-05-22T04:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: uevents causing kernel panic</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/uevents-causing-kernel-panic/m-p/773821#M120136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mathew_k_t&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Udev works by receiving uevents. But there is an option - kernel can call usermode helper. In this case kernel spawns one process per hotplug event, supplying environment variables to each new process describing that particular hotplug event. If you look at &lt;CODE&gt;kobject_uevent_env&lt;/CODE&gt; you'll see that netlink message is actually #ifdefed and default action is to call that usermode helper.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 14:41:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/uevents-causing-kernel-panic/m-p/773821#M120136</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2018-05-25T14:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: uevents causing kernel panic</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/uevents-causing-kernel-panic/m-p/773822#M120137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;I have tried udevd --debug and found the udev rules related to it. Then, I made some changes in those rules and I found no memory leak in the initial 40 minutes.&lt;/P&gt;&lt;P&gt;But after that the memory leak happens again and goes to panic within 1 hour 15 minutes. &lt;STRONG&gt;How to debug this issue?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Could you give more detail of usermode helper and how to handle it?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 06:28:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/uevents-causing-kernel-panic/m-p/773822#M120137</guid>
      <dc:creator>mathew_k_t</dc:creator>
      <dc:date>2018-06-01T06:28:56Z</dc:date>
    </item>
  </channel>
</rss>

