Kernel crash while SyS_write
Hi Everyone,
We are using Linux 4.14.40 on the TI AM5748 custom board, we are running our application after some time we see the below crash, could you provide some pointers to see the root cause of this kernel crash?
Below is the partial crash log, and the full log I have attached in this post/thread.
Jun 09 10:01:54 TSTAMP 2000/02/19 01:30:41:7
Jun 09 10:02:00 Last Packet RSSI: -59 Last Packet SNR: 69
Jun 09 10:02:09 TSTAMP 2000/02/19 01:30:56:9
Jun 09 10:02:11 Last Packet RSSI: -98 Last Packet SNR: 28
Jun 09 10:02:19 TSTAMP 2000/02/19 01:31:06:10
Jun 09 10:02:24 TSTAMP 2000/02/19 01:31:11:10
Jun 09 10:02:32 Last Packet RSSI: -97 Last Packet SNR: 29
Jun 09 10:02:39 TSTAMP 2000/02/19 01:31:26:12
Jun 09 10:02:44 TSTAMP 2000/02/19 01:31:31:13
Jun 09 10:02:49 TSTAMP 2000/02/19 01:31:36:13
Jun 09 10:02:54 TSTAMP 2000/02/19 01:31:41:14
Jun 09 10:02:59 TSTAMP 2000/02/19 01:31:46:14
Jun 09 10:03:04 Last Packet RSSI: -59 Last Packet SNR: 67
Jun 09 10:03:04 STAMP 2000/02/19 01:31:51:15
Jun 09 10:03:14 TSTAMP 2000/02/19 01:32:01:16
Jun 09 10:03:14 Last Packet RSSI: -98 Last Packet SNR: 29
Jun 09 10:03:17 [863305.026344] Unable to handle kernel paging request at virtual address 2e109000
Jun 09 10:03:17 [863305.029135] Unable to handle kernel paging request at virtual address 2e0fa000
Jun 09 10:03:17 [863305.029139] pgd = ed9f8900
Jun 09 10:03:17 [863305.029143] [2e0fa000] *pgd=ad06b003, *pmd=00000000
Jun 09 10:03:17 [863305.029156] Internal error: Oops: 206 [#1] PREEMPT SMP ARM
Jun 09 10:03:17 [863305.029161] Modules linked in: rpmsg_proto ti_prueth pru_rproc pruss pruss_intc pruss_soc_bus omap_remoteproc remoteproc xt_conntrack ipt_MASQUERADE nf_nat_masquerade_ipv4_tables x_tables br_netfilter bridge stp llc omap_aes_driver omap_sham omap_des des_generic rtc_ds1307 crypto_engine omap_crypto virtio_rpmsg_bus rpmsg_core sch_fq_codel
Jun 09 10:03:17 [863305.029262] CPU: 0 PID: 235 Comm: dockerd Not tainted 4.14.40-g4796173fc5 #4
Jun 09 10:03:17 [863305.029266] Hardware name: Generic DRA74X (Flattened Device Tree)
Jun 09 10:03:17 [863305.029270] task: edc04a40 task.stack: ed084000
Jun 09 10:03:17 [863305.029282] PC is at balance_dirty_pages_ratelimited+0x288/0x634
Jun 09 10:03:17 [863305.029286] LR is at 0x86
Jun 09 10:03:17 [863305.029291] pc : [] lr : [<00000086>] psr: 600d0093
Jun 09 10:03:17 [863305.029295] sp : ed085d98 ip : 000001b8 fp : ed085dbc
Jun 09 10:03:17 [863305.029299] r10: 00000082 r9 : c0a109f4 r8 : 00000da6
Jun 09 10:03:17 [863305.029303] r7 : 0000025a r6 : ffffe000 r5 : edc2e438 r4 : 00000080
Jun 09 10:03:17 [863305.029306] r3 : 00000000 r2 : 00000001 r1 : 2e0fa000 r0 : 600d0013
Jun 09 10:03:17 [863305.029311] Flags: nZCv IRQs off FProcess dockerd (pid: 235, stack limit = 0xed084210)
Jun 09 10:03:17 [863305.029324] Stack: (0xed085d98 to 0xed086000)
Jun 09 10:03:17 [863305.029328] 5d80: c03cea00 ed085ee8
Jun 09 10:03:17 [863305.029334] 5da0: eb2649b4 0000025a 00000da6 c0a109f4 ed085e1c ed085dc0 c02de90c c02ebcc0
Jun 09 10:03:17 [863305.029341] 5dc0: 00000082 00000082 efc3588c 00000000 ed085dec ed084000 00000000 edb17480
Jun 09 10:03:17 [863305.029347] 5de0: 00178e28 00000000 efc3588c 00000000 38adf293 00000000 ed085f00 eb2649b4
Jun 09 10:03:17 [863305.029352] 5e00: eb2648c0 ed085ee8 edb17480 00000000 ed085e6c ed085e20 c02e0f30 c02de7cc
Jun 09 10:03:17 [863305.029358] 5e20: c02a6204 ed3de544 00000001 ed3de540 00000000 eea020c8 eea020c4 00000000
Jun 09 10:03:17 [863305.029363] 5e40: ed085e6c ed085f00 eb2648c0 00000082 eb2648c0 ed085ee8 eb264938 00000000
Jun 09 10:03:17 [863305.029369] 5e60: ed085ed4 ed085e70 c03bb8c8 c02e0e28 0000003b eea020bc ed013878 ed3dea94
Jun 09 10:03:17 0020000 ed085f5c 00000000 edb17480 ed085f78 ed085f78 00178da6
Jun 09 10:03:17 [863305.029385] 5ec0: 00000000 00000000 ed085f44 ed085ed8 c033cc1c c03bb758 00000082 c0344f54
Jun 09 10:03:17 [863305.029391] 5ee0: 03a2a580 00000082 00000001 00000000 00000000 ed085ee8 00000000 00000000
Jun 09 10:03:17 [863305.029396] 5f00: edb17480 00000000 00178da6 00000000 00000000 ed085e8c 00000000 00000000
Jun 09 10:03:17 [863305.029402] 5f20: 00000082 edb17480 03a2a580 ed085f78 00000000 00000082 ed085f74 ed085f48
Jun 09 10:03:17 [863305.029407] 5f40: c033cdf0 c033cb50 c035b2d4 c035b0dc edb17483 edb17480 00178da6 00000000
Jun 09 10:03:17 [863305.029413] 5f60: 03a2a580 00000082 ed085fa4 ed085f78 c033cfcc c033cd50 00178da6 00000000
Jun 09 10:03:17 [863305.029418] 5f80: 00000000 00000000 03a2a580 00000004 c0207e64 ed084000 00000000 ed085fa8
Jun 09 10:03:17 [863305.029423] 5fa0: c0207c80 c033cf94 00000000 00000000 00000013 03a2a580 00000082 00000000
Jun 09 10:03:17 [863305.029429] 5fc0: 00000000 00000000 033 00000000 00000000
Jun 09 10:03:17 [863305.029437] Backtrace:
Jun 09 10:03:17 [863305.029453] [] (balance_dirty_pages_ratelimited) from [] (generic_perform_write+0x14c/0x1ac)
Jun 09 10:03:17 [863305.029461] r9:c0a109f4 r8:00000da6 r7:0000025a r6:eb2649b4 r5:ed085ee8 r4:c03cea00
Jun 09 10:03:17 [863305.029471] [] (generic_perform_write) from [] (__generic_file_write_iter+0x114/0x1d4)
Jun 09 10:03:17 [863305.029478] r10:00000000 r9:edb17480 r8:ed085ee8 r7:eb2648c0 r6:eb2649b4 r5:ed085f00
Jun 09 10:03:17 [863305.029482] r4:00000000
Jun 09 10:03:17 [863305.029492] [] (__generic_file_write_iter) from [] (ext4_file_write_iter+0x17c/0x434)
Jun 09 10:03:17 [863305.029498] r10:00000000 r9:eb264938 r8:ed085ee8 r7:eb2648c0 r6:00000082 r5:eb2648c0
Jun 09 10:03:17 [863305.029501] r4:ed085f00
Jun 09 10:03:17 [863305.029510] [] (ext4_file_write_iter) from [] (__vfs_write+0xd8/0x128)
Jun 09 10:03:17 [863305.029515] r10:00000000 r9:00000000 r8:033cdf0>] (vfs_write+0xac/0x170)
Jun 09 10:03:17 [863305.029533] r9:00000082 r8:00000000 r7:ed085f78 r6:03a2a580 r5:edb17480 r4:00000082
Jun 09 10:03:17 [863305.029540] [] (vfs_write) from [] (SyS_write+0x44/0x98)
Jun 09 10:03:17 [863305.029547] r9:00000082 r8:03a2a580 r7:00000000 r6:00178da6 r5:edb17480 r4:edb17483
Jun 09 10:03:17 [863305.029557] [] (SyS_write) from [] (ret_fast_syscall+0x0/0x4c)
Jun 09 10:03:17 [863305.029564] r9:ed084000 r8:c0207e64 r7:00000004 r6:03a2a580 r5:00000000 r4:00000000
Jun 09 10:03:17 [863305.029571] Code: 1a000086 e10f0000 f10c0080 ee1d1f90 (e7932001)
Jun 09 10:03:17 [863305.029577] ---[ end trace 8bb6ecc9bd04fcf9 ]---
Jun 09 10:03:17 [863305.029597] note: dockerd[235] exited with preempt_count 1
Jun 09 10:03:17 [863305.484892] pgd = ecef8540
Jun 09 10:03:17 [863305.487695] [2e109000] *pgd=acefd003, *pmd=00000000
Jun 09 10:03:17 [863305.492692] Internal error: Oops: 206 [#2] PREEMPT SMP ARM
Jun 09 10:03:17 [863305.498285] Modules linked in: rpmsg_proto ti_frm_user xfrm_algo xt_addrtype iptable_filter iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack ip_tables x_tables br_netfilter bridge stp llc omap_aes_driver omap_sham omap_des des_generic rtc_ds1307 crypto_engine omap_crypto virtio_rpmsg_bus rpmsg_core sch_fq_codel
Jun 09 10:03:17 [863305.539696] CPU: 1 PID: 1230 Comm: eventlog.am5748 Tainted: G D 4.14.40-g4796173fc5 #4
Jun 09 10:03:17 [863305.548866] Hardware name: Generic DRA74X (Flattened Device Tree)
Jun 09 10:03:17 [863305.555072] task: ece80000 task.stack: ecdfc000
Jun 09 10:03:17 [863305.559712] PC is at balance_dirty_pages_ratelimited+0x288/0x634
Jun 09 10:03:17 [863305.565830] LR is at 0x28
Jun 09 10:03:17 [863305.568548] pc : [] lr : [<00000028>] psr: 60070093
Jun 09 10:03:17 [863305.574927] sp : ecdfdd98 ip : 000001b8 fp : ecdfddbc
Jun 09 10:03:17 [863305.580260] r10: 00000258 r9 : c0a109f4 r8 : 00000c30
Regards,
Snehal
Answers
-
Well, you need to check below points and take appropriate steps accordingly to fix these issues.
1. Check hardware related issues
2. Identify the crash location
3. Check for memory related issues
4. Check for kernel patches
5. Review custom codeLets check and update these points to fix the error.
Thanks0
Categories
- All Categories
- 167 LFX Mentorship
- 219 LFX Mentorship: Linux Kernel
- 795 Linux Foundation IT Professional Programs
- 355 Cloud Engineer IT Professional Program
- 179 Advanced Cloud Engineer IT Professional Program
- 82 DevOps Engineer IT Professional Program
- 127 Cloud Native Developer IT Professional Program
- 112 Express Training Courses
- 112 Express Courses - Discussion Forum
- 6.2K Training Courses
- 48 LFC110 Class Forum - Discontinued
- 17 LFC131 Class Forum
- 35 LFD102 Class Forum
- 227 LFD103 Class Forum
- 14 LFD110 Class Forum
- 39 LFD121 Class Forum
- 15 LFD133 Class Forum
- 7 LFD134 Class Forum
- 17 LFD137 Class Forum
- 63 LFD201 Class Forum
- 3 LFD210 Class Forum
- 5 LFD210-CN Class Forum
- 2 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum - Discontinued
- 1 LFD233 Class Forum
- 2 LFD237 Class Forum
- 23 LFD254 Class Forum
- 697 LFD259 Class Forum
- 109 LFD272 Class Forum
- 3 LFD272-JP クラス フォーラム
- 10 LFD273 Class Forum
- 152 LFS101 Class Forum
- 1 LFS111 Class Forum
- 1 LFS112 Class Forum
- 1 LFS116 Class Forum
- 1 LFS118 Class Forum
- LFS120 Class Forum
- 7 LFS142 Class Forum
- 7 LFS144 Class Forum
- 3 LFS145 Class Forum
- 1 LFS146 Class Forum
- 3 LFS147 Class Forum
- 1 LFS148 Class Forum
- 15 LFS151 Class Forum
- 1 LFS157 Class Forum
- 33 LFS158 Class Forum
- 8 LFS162 Class Forum
- 1 LFS166 Class Forum
- 1 LFS167 Class Forum
- 3 LFS170 Class Forum
- 2 LFS171 Class Forum
- 1 LFS178 Class Forum
- 1 LFS180 Class Forum
- 1 LFS182 Class Forum
- 1 LFS183 Class Forum
- 29 LFS200 Class Forum
- 736 LFS201 Class Forum - Discontinued
- 2 LFS201-JP クラス フォーラム
- 14 LFS203 Class Forum
- 102 LFS207 Class Forum
- 1 LFS207-DE-Klassenforum
- 1 LFS207-JP クラス フォーラム
- 301 LFS211 Class Forum
- 55 LFS216 Class Forum
- 48 LFS241 Class Forum
- 42 LFS242 Class Forum
- 37 LFS243 Class Forum
- 15 LFS244 Class Forum
- LFS245 Class Forum
- LFS246 Class Forum
- 50 LFS250 Class Forum
- 1 LFS250-JP クラス フォーラム
- LFS251 Class Forum
- 154 LFS253 Class Forum
- LFS254 Class Forum
- LFS255 Class Forum
- 5 LFS256 Class Forum
- 1 LFS257 Class Forum
- 1.3K LFS258 Class Forum
- 10 LFS258-JP クラス フォーラム
- 111 LFS260 Class Forum
- 159 LFS261 Class Forum
- 41 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 20 LFS267 Class Forum
- 24 LFS268 Class Forum
- 29 LFS269 Class Forum
- 1 LFS270 Class Forum
- 199 LFS272 Class Forum
- 1 LFS272-JP クラス フォーラム
- LFS274 Class Forum
- 3 LFS281 Class Forum
- LFW111 Class Forum
- 260 LFW211 Class Forum
- 182 LFW212 Class Forum
- 13 SKF100 Class Forum
- 1 SKF200 Class Forum
- 1 SKF201 Class Forum
- 782 Hardware
- 198 Drivers
- 68 I/O Devices
- 37 Monitors
- 96 Multimedia
- 174 Networking
- 91 Printers & Scanners
- 83 Storage
- 743 Linux Distributions
- 80 Debian
- 67 Fedora
- 15 Linux Mint
- 13 Mageia
- 23 openSUSE
- 143 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 348 Ubuntu
- 461 Linux System Administration
- 39 Cloud Computing
- 70 Command Line/Scripting
- Github systems admin projects
- 90 Linux Security
- 77 Network Management
- 101 System Management
- 46 Web Management
- 64 Mobile Computing
- 17 Android
- 34 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 371 Off Topic
- 114 Introductions
- 174 Small Talk
- 19 Study Material
- 507 Programming and Development
- 285 Kernel Development
- 204 Software Development
- 1.8K Software
- 211 Applications
- 180 Command Line
- 3 Compiling/Installing
- 405 Games
- 309 Installation
- 97 All In Program
- 97 All In Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)