What is reason of kernal crash? Unable to handle kernel paging request at virtual address

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What is reason of kernal crash? Unable to handle kernel paging request at virtual address

643 Views
tom_chou
Contributor I

Hi,

I develop imx8mm customer board.

We have a question at system boot-up, that always reboot.

Does any one meet similar issue or can provide the direction about the cause of this issue?

U-Boot 2018.03 (Apr 13 2021 - 11:23:44 +0800)

CPU: Freescale i.MX8MMQ rev1.0 1600 MHz (running at 1200 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 33C
Reset cause: POR
Model: FSL i.MX8MM EVK board
DRAM: 2 GiB
LCD_RESET_B in boot loaderUSB_CHARGE_DETECT=1
USB_OTG_OC=1
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

Failed (-5)
In: serial
Out: serial
Err: serial

BuildInfo:
- ATF 7ae2f2c
- U-Boot 2018.03

flash target is MMC:1
Net: No ethernet found.
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
verify OK, boot 'boot_a'
Kernel load addr 0x40480000 size 31075 KiB
kernel @ 40480000 (31820288)
ramdisk @ 43600000 (7468035)
fdt @ 43400000 (47049)
## Flattened Device Tree blob at 43400000
Booting using the fdt blob at 0x43400000
Using Device Tree in place at 0000000043400000, end 000000004340e7c8

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.98 (alva@Alva-BuildMachine) (gcc version 4.9.x 20150123 (prerelease) (GCC)) #420 SMP PREEMPT Tue Apr 13 11:26:21 CST 2021
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] Machine model: FSL i.MX8MM EVK board
[ 0.000000] earlycon: ec_imx6q0 at MMIO 0x0000000030890000 (options '115200')
[ 0.000000] bootconsole [ec_imx6q0] enabled
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 800 MiB at 0x0000000086000000
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x00000000bfffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0xbffb9880-0xbffbb67f]
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x00000000b7ffffff]
[ 0.000000] node 0: [mem 0x00000000b8400000-0x00000000bfffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.1
[ 0.000000] random: get_random_bytes called from start_kernel+0xa8/0x414 with crng_init=0
[ 0.000000] percpu: Embedded 25 pages/cpu @ffff80007ff4f000 s64536 r8192 d29672 u102400
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: enabling workaround for ARM erratum 845719
[ 0.000000] Speculative Store Bypass Disable mitigation not required
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 515072
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: console=ttymxc1,115200 earlycon=ec_imx6q,0x30890000,115200 init=/init androidboot.console=ttymxc1 androidboot.hardware=freescale fbcon=rotate:1 cma=800M androidboot.primary_display=imx-drm firmware_class.path=/vendor/firmware transparent_hugepage=never androidboot.wificountrycode=SA androidboot.wifivendor=bcm buildvariant=userdebug androidboot.serialno=202daa09dab5fc2f androidboot.btmacaddr=20:2d:aa:09:da:b5 androidboot.soc_type=imx8mm androidboot.storage_type=emmc androidboot.boottime=1BLL:0,1BLE:3074,KL:0,KD:0,AVB:1701,ODT:0,SW:0 androidboot.bootreason=cold,powerkey androidboot.verifiedbootstate=green androidboot.slot_suffix=_a dm="1 vroot none ro 1,0 3611944 verity 1 PARTUUID=eae22205-ca2f-4737-a40e-625950dc485e PARTUUID=eae22205-ca2f-4737-a40e-625950dc485e 4096 4096 451493 451493 sha1 18e7e001f77e47c18bab4c85e12990fe9f371fbf ce10bb11f4b358aa429621b64ffe38b72fd778cb491d343e38ff9b9608bfcdac 10 restart_on_corruption ignore_zero_blocks use_fec_from_devic
[ 0.000000] device-mapper: init: will configure 1 devices
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Memory: 1208608K/2093056K available (15932K kernel code, 2466K rwdata, 7000K rodata, 5632K init, 588K bss, 65248K reserved, 819200K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] modules : 0xffff000000000000 - 0xffff000008000000 ( 128 MB)
[ 0.000000] vmalloc : 0xffff000008000000 - 0xffff7dffbfff0000 (129022 GB)
[ 0.000000] .text : 0xffff000008080000 - 0xffff000009010000 ( 15936 KB)
[ 0.000000] .rodata : 0xffff000009010000 - 0xffff0000096f0000 ( 7040 KB)
[ 0.000000] .init : 0xffff0000096f0000 - 0xffff000009c70000 ( 5632 KB)
[ 0.000000] .data : 0xffff000009c70000 - 0xffff000009ed8a00 ( 2467 KB)
[ 0.000000] .bss : 0xffff000009ed8a00 - 0xffff000009f6ba80 ( 589 KB)
[ 0.000000] fixed : 0xffff7dfffe7f9000 - 0xffff7dfffec00000 ( 4124 KB)
[ 0.000000] PCI I/O : 0xffff7dfffee00000 - 0xffff7dffffe00000 ( 16 MB)
[ 0.000000] vmemmap : 0xffff7e0000000000 - 0xffff800000000000 ( 2048 GB maximum)
[ 0.000000] 0xffff7e0000000000 - 0xffff7e0002000000 ( 32 MB actual)
[ 0.000000] memory : 0xffff800000000000 - 0xffff800080000000 ( 2048 MB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: no VLPI support, no direct LPI support
[ 0.000000] ITS: No ITS available, not enabling LPIs
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000038880000
[ 0.000000] i.MX8MM clock driver init done
[ 0.000000] arch_timer: cp15 timer(s) running at 8.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
[ 0.000003] sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
[ 0.008514] system counter timer init
[ 0.011766] sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
[ 0.019776] clocksource: imx sysctr: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
[ 0.031039] Console: colour dummy device 80x25
[ 0.034609] Calibrating delay loop (skipped), value calculated using timer frequency.. 16.00 BogoMIPS (lpj=32000)
[ 0.044900] pid_max: default: 32768 minimum: 301
[ 0.049591] Security Framework initialized
[ 0.053649] SELinux: Initializing.
[ 0.057707] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.064582] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.071433] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.078157] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.101389] ASID allocator initialised with 32768 entries
[ 0.109390] Hierarchical SRCU implementation.
[ 0.117905] Cannot find MU entry in device tree
[ 0.119714] CPU identified as i.MX8MM, silicon rev 1.0
[ 0.125433] EFI services will not be available.
[ 0.137332] smp: Bringing up secondary CPUs ...
[ 0.165481] Detected VIPT I-cache on CPU1
[ 0.165506] GICv3: CPU1: found redistributor 1 region 0:0x00000000388a0000
[ 0.165539] CPU1: Booted secondary processor [410fd034]
[ 0.193525] Detected VIPT I-cache on CPU2
[ 0.193542] GICv3: CPU2: found redistributor 2 region 0:0x00000000388c0000
[ 0.193561] CPU2: Booted secondary processor [410fd034]
[ 0.221582] Detected VIPT I-cache on CPU3
[ 0.221598] GICv3: CPU3: found redistributor 3 region 0:0x00000000388e0000
[ 0.221615] CPU3: Booted secondary processor [410fd034]
[ 0.221676] smp: Brought up 1 node, 4 CPUs
[ 0.271497] SMP: Total of 4 processors activated.
[ 0.276217] CPU features: detected feature: GIC system register CPU interface
[ 0.283399] CPU features: detected feature: 32-bit EL0 Support
[ 0.289254] CPU features: detected feature: Kernel page table isolation (KPTI)
[ 0.301254] CPU: All CPU(s) started at EL2
[ 0.302507] alternatives: patching kernel code
[ 0.307252] CPU3: update max cpu_capacity 1024
[ 0.312362] devtmpfs: initialized
[ 0.319165] CPU3: update max cpu_capacity 1024
[ 0.322548] Registered cp15_barrier emulation handler
[ 0.325860] Registered setend emulation handler
[ 0.330716] Unable to handle kernel paging request at virtual address ffffb0007a4cd9b8
[ 0.330760] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.338347] Mem abort info:
[ 0.338350] Exception class = DABT (current EL), IL = 32 bits
[ 0.338353] SET = 0, FnV = 0
[ 0.338355] EA = 0, S1PTW = 0
[ 0.338357] Data abort info:
[ 0.338359] ISV = 0, ISS = 0x00000044
[ 0.338364] CM = 0, WnR = 1
[ 0.348189] futex hash table entries: 1024 (order: 5, 131072 bytes)
[ 0.350951] swapper pgtable: 4k pages, 48-bit VAs, pgd = ffff000009f6f000
[ 0.385949] [ffffb0007a4cd9b8] *pgd=0000000000000000
[ 0.390938] Internal error: Oops: 96000044 [#1] PREEMPT SMP
[ 0.396537] Modules linked in:
[ 0.399601] CPU: 1 PID: 31 Comm: kworker/u8:0 Not tainted 4.14.98 #420
[ 0.406160] Hardware name: FSL i.MX8MM EVK board (DT)
[ 0.411236] task: ffff80007a4cd400 task.stack: ffff00000a488000
[ 0.417193] PC is at detach_pid+0x44/0x74
[ 0.421213] LR is at release_task+0x374/0x47c
[ 0.425586] pc : [<ffff0000080fcce8>] lr : [<ffff0000080dee38>] pstate: 200000c5
[ 0.433022] sp : ffff00000a48bd70
[ 0.436348] x29: ffff00000a48bd70 x28: ffff80007a4f8cc0
[ 0.441685] x27: ffff000009c75100 x26: ffff80007a4f8e44
[ 0.447022] x25: ffff80007a4f20c8 x24: ffff80007a4f18c0
[ 0.452360] x23: ffff000009c75000 x22: ffff000009ee01e8
[ 0.457697] x21: ffff00000988a018 x20: 0000000000000001
[ 0.463035] x19: ffff80007a4cd400 x18: 000000000000000e
[ 0.468372] x17: 0000000000000001 x16: 0000000000000019
[ 0.473710] x15: 0000000000000033 x14: 000000000000004c
[ 0.479047] x13: 0000000000000068 x12: ffff00000a48bd78
[ 0.484385] x11: 000000000000007b x10: 0000000000000000
[ 0.489722] x9 : 0000000000000000 x8 : 0000000000000000
[ 0.495060] x7 : 0000000000000000 x6 : 0000000000000000
[ 0.500397] x5 : 0000000000000000 x4 : 0000400000000020
[ 0.505735] x3 : dead000000000200 x2 : ffff000009c9d8c8
[ 0.511072] x1 : ffffb0007a4cd418 x0 : ffff80007a4cd400
[ 0.516411]
[ 0.516411] X0: 0xffff80007a4cd380:
[ 0.521397] d380 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.529622] d3a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.537847] d3c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.546072] d3e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.554297] d400 00000022 00004000 ffffffff ffffffff 00000004 00000000 00000000 00000000
[ 0.562522] d420 0a488000 ffff0000 00000002 04208044 00000000 00000000 00000000 00000000
[ 0.570747] d440 00000001 00000001 00000002 00000000 fffedb46 00000000 7a4cc600 ffff8000
[ 0.578972] d460 00000001 00000001 00000078 00000078 00000078 00000000 09021d48 ffff0000
[ 0.587198]
[ 0.587198] X1: 0xffffb0007a4cd398:
[ 0.592184] d398 ******** ******** ******** ******** ******** ******** ******** ********
[ 0.600409] d3b8 ******** ******** ******** ******** ******** ******** ******** ********
[ 0.608634] d3d8 ******** ******** ******** ******** ******** ******** ******** ********
[ 0.616859] d3f8 ******** ******** ******** ******** ******** ******** ******** ********
[ 0.625084] d418 ******** ******** ******** ******** ******** ******** ******** ********
[ 0.633309] d438 ******** ******** ******** ******** ******** ******** ******** ********
[ 0.641534] d458 ******** ******** ******** ******** ******** ******** ******** ********
[ 0.649759] d478 ******** ******** ******** ******** ******** ******** ******** ********
[ 0.657991]
[ 0.657991] X19: 0xffff80007a4cd380:
[ 0.663059] d380 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.671284] d3a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.679509] d3c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.687734] d3e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.695959] d400 00000022 00004000 ffffffff ffffffff 00000004 00000000 00000000 00000000
[ 0.704184] d420 0a488000 ffff0000 00000002 04208044 00000000 00000000 00000000 00000000
[ 0.712409] d440 00000001 00000001 00000002 00000000 fffedb46 00000000 7a4cc600 ffff8000
[ 0.720634] d460 00000001 00000001 00000078 00000078 00000078 00000000 09021d48 ffff0000
[ 0.728862]
[ 0.728862] X24: 0xffff80007a4f1840:
[ 0.733934] 1840 00000000 00000000 00000001 00000000 00000000 00000000 00000000 00000000
[ 0.742159] 1860 00000000 00000000 00000001 00000000 00000000 00000000 00000000 00000000
[ 0.750384] 1880 00000000 00000000 00000000 a9020460 00000000 a9031c66 7a4f1898 ffff8000
[ 0.758609] 18a0 7a4f1898 ffff8000 7a4f18c0 ffff8000 f94057a2 f94006e1 eb01005f 54000121
[ 0.766834] 18c0 00000001 a9425bf5 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.775059] 18e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.783284] 1900 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.791509] 1920 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.799735]
[ 0.799735] X25: 0xffff80007a4f2048:
[ 0.804809] 2048 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.813034] 2068 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.821259] 2088 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.829484] 20a8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.837709] 20c8 00030002 aa1b03e0 00000000 9130c324 7a4f20d8 ffff8000 7a4f20d8 ffff8000
[ 0.845934] 20e8 7a4f2100 ffff8000 f900d383 f9012f9f 97ffff49 52800022 00000001 aa1403e0
[ 0.854159] 2108 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.862384] 2128 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.870610]
[ 0.870610] X26: 0xffff80007a4f8dc4:
[ 0.875684] 8dc4 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.883909] 8de4 00000000 7a4f8de8 ffff8000 7a4f8de8 ffff8000 7a4f8df8 ffff8000 7a4f8df8
[ 0.892134] 8e04 ffff8000 7a4f8e08 ffff8000 7a4f8e08 ffff8000 7a403f00 ffff8000 00000000
[ 0.900359] 8e24 00000000 00000000 00000000 00000000 00000000 09ee6c48 ffff0000 00000001
[ 0.908584] 8e44 00010000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.916809] 8e64 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.925034] 8e84 00000000 00000000 00000000 00000000 00000000 00000001 00000000 00000000
[ 0.933259] 8ea4 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.941486]
[ 0.941486] X28: 0xffff80007a4f8c40:
[ 0.946559] 8c40 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.954784] 8c60 00000000 00000000 00000000 00000000 00000000 00000000 7a4f8c78 ffff8000
[ 0.963009] 8c80 7a4f8c78 ffff8000 34fffe20 d2805a80 97fffab6 12000000 52000013 17fffff1
[ 0.971234] 8ca0 128002a0 f94013f5 a94153f3 a8c37bfd d65f03c0 a9bc7bfd 90007861 910003fd
[ 0.979459] 8cc0 00000001 00000000 00000000 00000000 7a4cd9f0 ffff8000 7a4cd9f0 ffff8000
[ 0.987684] 8ce0 00000000 00000000 7a4f8ce8 ffff8000 7a4f8ce8 ffff8000 7a4cd400 ffff8000
[ 0.995909] 8d00 7a4f8d00 ffff8000 7a4f8d00 ffff8000 00000000 00000000 00000000 00000000
[ 1.004134] 8d20 00000000 00000000 00000000 00000000 00000000 00000000 7a4f8d38 ffff8000
[ 1.012360]
[ 1.013849] Process kworker/u8:0 (pid: 31, stack limit = 0xffff00000a488000)
[ 1.020935] Call trace:
[ 1.023387] Exception stack(0xffff00000a48bc30 to 0xffff00000a48bd70)
[ 1.029862] bc20: ffff80007a4cd400 ffffb0007a4cd418
[ 1.037737] bc40: ffff000009c9d8c8 dead000000000200 0000400000000020 0000000000000000
[ 1.045612] bc60: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 1.053487] bc80: 0000000000000000 000000000000007b ffff00000a48bd78 0000000000000068
[ 1.061362] bca0: 000000000000004c 0000000000000033 0000000000000019 0000000000000001
[ 1.069237] bcc0: 000000000000000e ffff80007a4cd400 0000000000000001 ffff00000988a018
[ 1.077112] bce0: ffff000009ee01e8 ffff000009c75000 ffff80007a4f18c0 ffff80007a4f20c8
[ 1.084987] bd00: ffff80007a4f8e44 ffff000009c75100 ffff80007a4f8cc0 ffff00000a48bd70
[ 1.092862] bd20: ffff0000080dee38 ffff00000a48bd70 ffff0000080fcce8 00000000200000c5
[ 1.100737] bd40: ffff80007a4cd400 0000000000000001 0000ffffffffffff ffff000009ee01e8
[ 1.108611] bd60: ffff00000a48bd70 ffff0000080fcce8
[ 1.113513] [<ffff0000080fcce8>] detach_pid+0x44/0x74
[ 1.118587] [<ffff0000080dee38>] release_task+0x374/0x47c
[ 1.124012] [<ffff0000080e0434>] do_exit+0x5b4/0xa1c
[ 1.129002] [<ffff0000080f49b4>] call_usermodehelper_exec_async+0x168/0x178
[ 1.136001] [<ffff000008085064>] ret_from_fork+0x10/0x18
[ 1.141339] Code: d2804003 cb010c81 f2fbd5a3 8b010001 (f902d023)
[ 1.147468] ---[ end trace b59528ca2a7997e3 ]---
[ 1.152103] Fixing recursive fault but reboot is needed!
[ 1.157594] pinctrl core: initialized pinctrl subsystem
[ 1.163763] DMI not present or invalid.
[ 1.166741] swapper/0: vmalloc: allocation failure: 17592186045056 bytes, mode:0x14080c0(GFP_KERNEL|__GFP_ZERO), nodemask=(null)
[ 1.178190] swapper/0 cpuset=/ mems_allowed=0
[ 1.182551] CPU: 1 PID: 1 Comm: swapper/0 Tainted: G D 4.14.98 #420
[ 1.189985] Hardware name: FSL i.MX8MM EVK board (DT)
[ 1.195060] Call trace:
[ 1.197518] [<ffff00000808b2fc>] dump_backtrace+0x0/0x414
[ 1.202938] [<ffff00000808b724>] show_stack+0x14/0x1c
[ 1.208015] [<ffff000008fe540c>] dump_stack+0x90/0xb0
[ 1.213090] [<ffff00000820d720>] warn_alloc+0x108/0x194
[ 1.218339] [<ffff0000082576a8>] __vmalloc_node_range+0x234/0x29c
[ 1.224463] [<ffff000008257bb4>] __vmalloc_node_flags_caller+0x60/0x7c
[ 1.231025] [<ffff000008229a48>] kvmalloc_node+0x70/0xc4
[ 1.236364] [<ffff0000084bcd94>] bucket_table_alloc+0x240/0x290
[ 1.242312] [<ffff0000084bcfd4>] rhashtable_init+0x1f0/0x2ec
[ 1.248001] [<ffff000009776b8c>] netlink_proto_init+0x94/0x18c
[ 1.253862] [<ffff000008083ca0>] do_one_initcall+0x48/0x14c
[ 1.259465] [<ffff0000096f0e58>] kernel_init_freeable+0x198/0x24c
[ 1.265588] [<ffff000008ffa404>] kernel_init+0x10/0x140
[ 1.270837] [<ffff000008085064>] ret_from_fork+0x10/0x18
[ 1.276181] Mem-Info:
[ 1.278455] active_anon:0 inactive_anon:0 isolated_anon:0
[ 1.278455] active_file:0 inactive_file:0 isolated_file:0
[ 1.278455] unevictable:0 dirty:0 writeback:0 unstable:0
[ 1.278455] slab_reclaimable:21 slab_unreclaimable:506
[ 1.278455] mapped:0 shmem:0 pagetables:0 bounce:0
[ 1.278455] free:505177 free_pcp:137 free_cma:204800
[ 1.310048] Node 0 active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:0kB dirty:0kB writeback:0kB shmem:0kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 0kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
[ 1.335679] Node 0 DMA32 free:2020708kB min:4396kB low:5604kB high:6812kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:2093056kB managed:2027808kB mlocked:0kB kernel_stack:560kB pagetables:0kB bounce:0kB free_pcp:548kB local_pcp:168kB free_cma:819200kB
[ 1.363766] lowmem_reserve[]: 0 0 0
[ 1.367260] Node 0 DMA32: 3*4kB (UM) 4*8kB (ME) 5*16kB (UM) 4*32kB (UME) 3*64kB (ME) 2*128kB (M) 4*256kB (UM) 5*512kB (ME) 5*1024kB (UME) 2*2048kB (ME) 6*4096kB (ME) 6*8192kB (UME) 4*16384kB (UME) 57*32768kB (MC) = 2020540kB
[ 1.387298] 0 total pagecache pages
[ 1.390799] 0 pages in swap cache
[ 1.394129] Swap cache stats: add 0, delete 0, find 0/0
[ 1.399372] Free swap = 0kB
[ 1.402259] Total swap = 0kB
[ 1.405147] 523264 pages RAM
[ 1.408034] 0 pages HighMem/MovableOnly
[ 1.411884] 16312 pages reserved
[ 1.415122] 204800 pages cma reserved
[ 1.418800] Kernel panic - not syncing: netlink_init: Cannot allocate nl_table
[ 1.418800]
[ 1.427552] SMP: stopping secondary CPUs
[ 2.431486] SMP: failed to stop secondary CPUs 0-1,3
[ 2.433606] Rebooting in 5 seconds..

Labels (1)
0 Kudos
1 Reply

638 Views
disheng
Contributor III

From your log it seems caused by this:

[ 1.197518] [<ffff00000808b2fc>] dump_backtrace+0x0/0x414
[ 1.202938] [<ffff00000808b724>] show_stack+0x14/0x1c
[ 1.208015] [<ffff000008fe540c>] dump_stack+0x90/0xb0
[ 1.213090] [<ffff00000820d720>] warn_alloc+0x108/0x194
[ 1.218339] [<ffff0000082576a8>] __vmalloc_node_range+0x234/0x29c
[ 1.224463] [<ffff000008257bb4>] __vmalloc_node_flags_caller+0x60/0x7c
[ 1.231025] [<ffff000008229a48>] kvmalloc_node+0x70/0xc4
[ 1.236364] [<ffff0000084bcd94>] bucket_table_alloc+0x240/0x290
[ 1.242312] [<ffff0000084bcfd4>] rhashtable_init+0x1f0/0x2ec
[ 1.248001] [<ffff000009776b8c>] netlink_proto_init+0x94/0x18c
[ 1.253862] [<ffff000008083ca0>] do_one_initcall+0x48/0x14c
[ 1.259465] [<ffff0000096f0e58>] kernel_init_freeable+0x198/0x24c
[ 1.265588] [<ffff000008ffa404>] kernel_init+0x10/0x140
[ 1.270837] [<ffff000008085064>] ret_from_fork+0x10/0x18

 

[ 1.418800] Kernel panic - not syncing: netlink_init: Cannot allocate nl_table

 

But does it always end up panic in netlink? It feels like because of running out of memory then it crashes here as it could no longer allocate any memory for netlink.

 

Normally it happens during kernel init that if any init process fails it will be restarted and cannot be killed, eventually cause running out of memory and kernel panic.

It is not so easy to find out why, I would suggest starting from device tree.

 

0 Kudos