<?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>i.MX Processorsのトピックandroid kernel crash at exit_mmap</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/android-kernel-crash-at-exit-mmap/m-p/1793870#M219089</link>
    <description>&lt;P&gt;We have a lot of crashes with unclear reason.&lt;BR /&gt;They happen more frequently during monkey tests when there are a lot of actions and eth networking.&lt;BR /&gt;This call trace happened on shutdown but shutdown is not necessary for it. Here is it:&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;LI-CODE lang="cpp"&gt;[    T1] Call trace:
[    T1]  dump_backtrace.cfi_jt+0x0/0x4
[    T1]  show_stack+0x24/0x34
[    T1]  sysrq_handle_showallcpus+0x9c/0xd4
[    T1]  __handle_sysrq+0x108/0x1f4
[    T1]  write_sysrq_trigger+0x11c/0x188
[    T1]  proc_reg_write+0xec/0x210
[    T1]  vfs_write+0x118/0x3cc
[    T1]  ksys_write+0x84/0xf4
[    T1]  __arm64_sys_write+0x28/0x38
[    T1]  invoke_syscall+0x68/0x150
[    T1]  el0_svc_common.llvm.4347159286016627091+0xc0/0x100
[    T1]  do_el0_svc+0x30/0x9c
[    T1]  el0_svc+0x24/0x7c
[    T1]  el0t_64_sync_handler+0x6c/0xb4
[    T1]  el0t_64_sync+0x1b4/0x1b8
[    C0] sysrq: CPU0: backtrace skipped as idling
[    C4] sysrq: CPU4: backtrace skipped as idling
[    C2] sysrq: CPU2:
[    C3] sysrq: CPU3: backtrace skipped as idling
[    C5] sysrq: CPU5: backtrace skipped as idling
[    T1] sysrq: Show Blocked State
[    T1] task:kworker/1:0     state:D stack:14120 pid:30224 ppid:     2 flags:0x00000008
[    T1] Workqueue: events key_garbage_collector.860fd2f9b6d01b497b0f700c85752b22.cfi_jt
[    T1] Call trace:
[    T1]  __switch_to+0x150/0x1e8
[    T1]  __schedule+0x5bc/0x9a8
[    T1]  schedule+0x8c/0x10c
[    T1]  schedule_timeout+0x4c/0x10c
[    T1]  wait_for_common+0xb0/0x140
[    T1]  wait_for_completion+0x24/0x34
[    T1]  __wait_rcu_gp+0x1ac/0x1d8
[    T1]  synchronize_rcu+0x70/0x9c
[    T1]  key_garbage_collector+0x3d8/0x518
[    T1]  process_one_work+0x22c/0x4a4
[    T1]  worker_thread+0x290/0x510
[    T1]  kthread+0x178/0x1e4
[    T1]  ret_from_fork+0x10/0x20
[    T1] sysrq: Kill All Tasks
[  T325] watchdog: watchdog0: watchdog did not stop!
[  T261] printk: ueventd: 2 output lines suppressed due to ratelimiting
[    C2] Call trace:
[    C2]  dump_backtrace.cfi_jt+0x0/0x4
[    C2]  show_stack+0x24/0x34
[    T1] reboot: Set up alarm timer for 5 sec
[    C2]  showacpu+0x70/0xb4
[    C2]  flush_smp_call_function_queue.llvm.7698391963899168790+0x1d4/0x2e4
[    T1] kvm: exiting hardware virtualization
[    C2]  ipi_handler+0x98/0x150
[    C2]  handle_percpu_devid_irq+0xc4/0x318
[    C2]  handle_domain_irq+0x84/0xf8
[    C2]  gic_handle_irq+0x5c/0x124
[    C2]  call_on_irq_stack+0x3c/0x6c
[    C2]  do_interrupt_handler+0x4c/0xa8
[    C2]  el1_interrupt+0x34/0x64
[    C2]  el1h_64_irq_handler+0x1c/0x2c
[    C2]  el1h_64_irq+0x7c/0x80
[    C2]  follow_page_mask+0x70/0x3f8
[    C2]  follow_page+0x38/0x80
[    C2]  munlock_vma_pages_range+0xbc/0x2c0
[    C2]  exit_mmap+0xec/0x2ec
[    C2]  __mmput+0x3c/0x168
[    C2]  mmput+0x3c/0x78
[    C2]  exit_mm+0x1f8/0x334
[    C2]  do_exit+0x1c8/0xa38
[    C2]  do_group_exit+0x90/0xac
[    C2]  get_signal+0x1d0/0x7b0
[    C2]  do_signal+0xa4/0x258
[    C2]  do_notify_resume+0x7c/0x164
[    C2]  el0_svc+0x5c/0x7c
[    C2]  el0t_64_sync_handler+0x6c/0xb4
[    C2]  el0t_64_sync+0x1b4/0x1b8&lt;/LI-CODE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;I think this may be related:&lt;LI-MESSAGE title="Stack corruption in libart.so art::ClassLinker::ResolveMethod in android automotive" uid="1791931" url="https://community.nxp.com/t5/i-MX-Processors/Stack-corruption-in-libart-so-art-ClassLinker-ResolveMethod-in/m-p/1791931#U1791931" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;A logs file with two crashes attached.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2024 14:16:47 GMT</pubDate>
    <dc:creator>dmitry_sidorenkov</dc:creator>
    <dc:date>2024-01-23T14:16:47Z</dc:date>
    <item>
      <title>android kernel crash at exit_mmap</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/android-kernel-crash-at-exit-mmap/m-p/1793870#M219089</link>
      <description>&lt;P&gt;We have a lot of crashes with unclear reason.&lt;BR /&gt;They happen more frequently during monkey tests when there are a lot of actions and eth networking.&lt;BR /&gt;This call trace happened on shutdown but shutdown is not necessary for it. Here is it:&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;LI-CODE lang="cpp"&gt;[    T1] Call trace:
[    T1]  dump_backtrace.cfi_jt+0x0/0x4
[    T1]  show_stack+0x24/0x34
[    T1]  sysrq_handle_showallcpus+0x9c/0xd4
[    T1]  __handle_sysrq+0x108/0x1f4
[    T1]  write_sysrq_trigger+0x11c/0x188
[    T1]  proc_reg_write+0xec/0x210
[    T1]  vfs_write+0x118/0x3cc
[    T1]  ksys_write+0x84/0xf4
[    T1]  __arm64_sys_write+0x28/0x38
[    T1]  invoke_syscall+0x68/0x150
[    T1]  el0_svc_common.llvm.4347159286016627091+0xc0/0x100
[    T1]  do_el0_svc+0x30/0x9c
[    T1]  el0_svc+0x24/0x7c
[    T1]  el0t_64_sync_handler+0x6c/0xb4
[    T1]  el0t_64_sync+0x1b4/0x1b8
[    C0] sysrq: CPU0: backtrace skipped as idling
[    C4] sysrq: CPU4: backtrace skipped as idling
[    C2] sysrq: CPU2:
[    C3] sysrq: CPU3: backtrace skipped as idling
[    C5] sysrq: CPU5: backtrace skipped as idling
[    T1] sysrq: Show Blocked State
[    T1] task:kworker/1:0     state:D stack:14120 pid:30224 ppid:     2 flags:0x00000008
[    T1] Workqueue: events key_garbage_collector.860fd2f9b6d01b497b0f700c85752b22.cfi_jt
[    T1] Call trace:
[    T1]  __switch_to+0x150/0x1e8
[    T1]  __schedule+0x5bc/0x9a8
[    T1]  schedule+0x8c/0x10c
[    T1]  schedule_timeout+0x4c/0x10c
[    T1]  wait_for_common+0xb0/0x140
[    T1]  wait_for_completion+0x24/0x34
[    T1]  __wait_rcu_gp+0x1ac/0x1d8
[    T1]  synchronize_rcu+0x70/0x9c
[    T1]  key_garbage_collector+0x3d8/0x518
[    T1]  process_one_work+0x22c/0x4a4
[    T1]  worker_thread+0x290/0x510
[    T1]  kthread+0x178/0x1e4
[    T1]  ret_from_fork+0x10/0x20
[    T1] sysrq: Kill All Tasks
[  T325] watchdog: watchdog0: watchdog did not stop!
[  T261] printk: ueventd: 2 output lines suppressed due to ratelimiting
[    C2] Call trace:
[    C2]  dump_backtrace.cfi_jt+0x0/0x4
[    C2]  show_stack+0x24/0x34
[    T1] reboot: Set up alarm timer for 5 sec
[    C2]  showacpu+0x70/0xb4
[    C2]  flush_smp_call_function_queue.llvm.7698391963899168790+0x1d4/0x2e4
[    T1] kvm: exiting hardware virtualization
[    C2]  ipi_handler+0x98/0x150
[    C2]  handle_percpu_devid_irq+0xc4/0x318
[    C2]  handle_domain_irq+0x84/0xf8
[    C2]  gic_handle_irq+0x5c/0x124
[    C2]  call_on_irq_stack+0x3c/0x6c
[    C2]  do_interrupt_handler+0x4c/0xa8
[    C2]  el1_interrupt+0x34/0x64
[    C2]  el1h_64_irq_handler+0x1c/0x2c
[    C2]  el1h_64_irq+0x7c/0x80
[    C2]  follow_page_mask+0x70/0x3f8
[    C2]  follow_page+0x38/0x80
[    C2]  munlock_vma_pages_range+0xbc/0x2c0
[    C2]  exit_mmap+0xec/0x2ec
[    C2]  __mmput+0x3c/0x168
[    C2]  mmput+0x3c/0x78
[    C2]  exit_mm+0x1f8/0x334
[    C2]  do_exit+0x1c8/0xa38
[    C2]  do_group_exit+0x90/0xac
[    C2]  get_signal+0x1d0/0x7b0
[    C2]  do_signal+0xa4/0x258
[    C2]  do_notify_resume+0x7c/0x164
[    C2]  el0_svc+0x5c/0x7c
[    C2]  el0t_64_sync_handler+0x6c/0xb4
[    C2]  el0t_64_sync+0x1b4/0x1b8&lt;/LI-CODE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;I think this may be related:&lt;LI-MESSAGE title="Stack corruption in libart.so art::ClassLinker::ResolveMethod in android automotive" uid="1791931" url="https://community.nxp.com/t5/i-MX-Processors/Stack-corruption-in-libart-so-art-ClassLinker-ResolveMethod-in/m-p/1791931#U1791931" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;A logs file with two crashes attached.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 14:16:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/android-kernel-crash-at-exit-mmap/m-p/1793870#M219089</guid>
      <dc:creator>dmitry_sidorenkov</dc:creator>
      <dc:date>2024-01-23T14:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: android kernel crash at exit_mmap</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/android-kernel-crash-at-exit-mmap/m-p/1794714#M219150</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I can not see why this happening, but probably is due to your are using a non-supported kernel, so please download android from the official website and download it.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/android-os-for-i-mx-applications-processors:IMXANDROID" target="_blank"&gt;https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/android-os-for-i-mx-applications-processors:IMXANDROID&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 14:53:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/android-kernel-crash-at-exit-mmap/m-p/1794714#M219150</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2024-01-24T14:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: android kernel crash at exit_mmap</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/android-kernel-crash-at-exit-mmap/m-p/1794766#M219156</link>
      <description>&lt;P&gt;This logs are based on &lt;STRONG&gt;Android 12.1.0_1.0.0 (L5.15.52_2.1.0 BSP)&lt;/STRONG&gt;&lt;BR /&gt;We had to add multiple changes to to fix bugs, added audio codecs, cypress wifi drivers, fixed fec_main.c driver for two eth interfaces. So it is big changes.&lt;BR /&gt;I will try get the same with no kernel code changes.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 16:53:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/android-kernel-crash-at-exit-mmap/m-p/1794766#M219156</guid>
      <dc:creator>dmitry_sidorenkov</dc:creator>
      <dc:date>2024-01-24T16:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: android kernel crash at exit_mmap</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/android-kernel-crash-at-exit-mmap/m-p/1795240#M219190</link>
      <description>&lt;P&gt;I've tested kernel with minimal changes from our side and it crashed several times on 84 reboots.&lt;BR /&gt;I did checkout to &lt;SPAN&gt;&lt;STRONG&gt;tag: automotive-12.1.0_1.1.0&lt;/STRONG&gt;, then added our dts and defconfig files, then added a little changes(patch attached) in kernel code to get android partially working with our SXM application.&lt;BR /&gt;To test I used is a simple reboot script, it could made 84 iterations.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;#!/bin/bash
for VAR in {1..200}
do
   echo "n=$VAR"
   adb reboot
   sleep 120
done&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And has got a dmesg logs file with several crashes, 3 blocks of crashes.&lt;BR /&gt;The deadlock from logs we see frequently on our main build.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 08:41:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/android-kernel-crash-at-exit-mmap/m-p/1795240#M219190</guid>
      <dc:creator>dmitry_sidorenkov</dc:creator>
      <dc:date>2024-01-25T08:41:17Z</dc:date>
    </item>
  </channel>
</rss>

