Hay
Date
May 29, 2025, 7:10 a.m.

Environment
qemu-armv7
x15

--- cut here ---
[  116.074242] Unable to handle kernel NULL pointer dereference at virtual address 00000000 when write
[  116.074716] [00000000] *pgd=80000040204003, *pmd=00000000
[  116.075773] Internal error: Oops: a05 [#1] SMP ARM
[  116.083726] Modules linked in: test_vmalloc(+) fuse
[  116.084651] CPU: 1 UID: 0 PID: 1174 Comm: vmalloc_test/0 Tainted: G        W           6.15.0-next-20250529 #1 NONE 
[  116.085833] Tainted: [W]=WARN
[  116.086292] Hardware name: Generic DT based system
[  116.086956] PC is at vm_map_ram_test+0xcc/0xf0 [test_vmalloc]
[  116.087748] LR is at 0xfa345e60
[  116.088295] pc : [<bf02d5c8>]    lr : [<fa345e60>]    psr: 60010013
[  116.088824] sp : fa345ee8  ip : edbeae50  fp : c3f62b20
[  116.089256] r10: 057430b0  r9 : 00000061  r8 : c457f8c0
[  116.089696] r7 : 00000001  r6 : bf02f014  r5 : 00000001  r4 : 00000001
[  116.090226] r3 : c3e11d40  r2 : 00000000  r1 : 00000001  r0 : 00000000
[  116.091212] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[  116.091983] Control: 30c5387d  Table: 43e32680  DAC: 00000000
[  116.092168] Register r0 information: NULL pointer
[  116.092468] Register r1 information: non-paged memory
[  116.092629] Register r2 information: NULL pointer
[  116.092759] Register r3 information: slab task_struct start c3e11d40 pointer offset 0 size 2496
[  116.093240] Register r4 information: non-paged memory
[  116.093379] Register r5 information: non-paged memory
[  116.093514] Register r6 information: 1-page vmalloc region starting at 0xbf02f000 allocated at load_module+0x7b0/0x1d5c
[  116.095035] Register r7 information: non-paged memory
[  116.095560] Register r8 information: slab kmalloc-64 start c457f8c0 pointer offset 0 size 64
[  116.096527] Register r9 information: non-paged memory
[  116.097242] Register r10 information: non-paged memory
[  116.098015] Register r11 information: slab kmalloc-192 start c3f62a80 pointer offset 160 size 192
[  116.099190] Register r12 information: non-slab/vmalloc memory
[  116.099919] Process vmalloc_test/0 (pid: 1174, stack limit = 0xd0914938)
[  116.100676] Stack: (0xfa345ee8 to 0xfa346000)
[  116.101042] 5ee0:                   c457f8c0 c051aed8 bf02d974 bf02d4fc 0000000a bf02f014
[  116.101782] 5f00: fa345f3c fa345f5c 00000000 bf02d6ec 000230e0 00000000 c3f62a80 0000001b
[  116.102813] 5f20: bf031238 bf02f000 c248c300 b515a164 00000008 00000003 0000000a 00000002
[  116.103229] 5f40: 00000001 00000004 00000005 00000000 00000006 00000007 00000009 04815c0c
[  116.103448] 5f60: c3f62a80 00000001 c4000f80 c3e11d40 c4000f80 bf02d5ec c3f62a80 00000000
[  116.103668] 5f80: 00000000 c048c56c 00000000 04815c0c c2ac8280 c048c458 00000000 00000000
[  116.103880] 5fa0: 00000000 00000000 00000000 c0400254 00000000 00000000 00000000 00000000
[  116.104092] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  116.104302] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[  116.104523] Call trace: 
[  116.105167]  vm_map_ram_test [test_vmalloc] from test_func+0x100/0x2d8 [test_vmalloc]
[  116.106231]  test_func [test_vmalloc] from kthread+0x114/0x240
[  116.106933]  kthread from ret_from_fork+0x14/0x20
[  116.107502] Exception stack(0xfa345fb0 to 0xfa345ff8)
[  116.108188] 5fa0:                                     00000000 00000000 00000000 00000000
[  116.109192] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  116.110304] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[  116.111340] Code: e1a00008 e2844001 eb5a343f e1a01005 (e5c09000) 
[  116.112805] ---[ end trace 0000000000000000 ]---


--- cut here ---
[   66.149597] Unable to handle kernel NULL pointer dereference at virtual address 00000000 when write
[   66.158752] [00000000] *pgd=80000080204003, *pmd=00000000
[   66.164184] Internal error: Oops: a05 [#1] SMP ARM
[   66.169006] Modules linked in: test_vmalloc(+) snd_soc_simple_card etnaviv snd_soc_simple_card_utils omapdrm gpu_sched ahci_dwc onboard_usb_dev snd_soc_tlv320aic3x_i2c snd_soc_davinci_mcasp snd_soc_ti_sdma snd_soc_ti_udma snd_soc_tlv320aic3x snd_soc_ti_edma snd_soc_core ac97_bus snd_pcm_dmaengine snd_pcm snd_timer snd soundcore ti_tpd12s015 omap_remoteproc display_connector nfnetlink ip_tables x_tables
[   66.204895] CPU: 0 UID: 0 PID: 1273 Comm: vmalloc_test/0 Tainted: G        W           6.15.0-next-20250529 #1 NONE 
[   66.215484] Tainted: [W]=WARN
[   66.218444] Hardware name: Generic DRA74X (Flattened Device Tree)
[   66.224578] PC is at vm_map_ram_test+0x98/0x4c0 [test_vmalloc]
[   66.230438] LR is at vm_map_ram+0x14c/0xa80
[   66.234649] pc : [<bf08bbd8>]    lr : [<c06a90f0>]    psr: 200e0013
[   66.240936] sp : f2c19ef0  ip : f1400000  fp : 0000000f
[   66.246185] r10: 65c63fdb  r9 : bf093004  r8 : 00000001
[   66.251434] r7 : 00000061  r6 : 00000000  r5 : c75d6c40  r4 : 00000001
[   66.257995] r3 : 600e0013  r2 : 000048dc  r1 : 00000001  r0 : 00000000
[   66.264556] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[   66.271728] Control: 30c5387d  Table: 842196c0  DAC: fffffffd
[   66.277496] Register r0 information: NULL pointer
[   66.282226] Register r1 information: non-paged memory
[   66.287292] Register r2 information: non-paged memory
[   66.292388] Register r3 information: non-paged memory
[   66.297454] Register r4 information: non-paged memory
[   66.302520] Register r5 information: slab kmalloc-64 start c75d6c40 pointer offset 0 size 64
[   66.311035] Register r6 information: NULL pointer
[   66.315765] Register r7 information: non-paged memory
[   66.320831] Register r8 information: non-paged memory
[   66.325897] Register r9 information: 1-page vmalloc region starting at 0xbf093000 allocated at load_module+0xcf8/0x19c4
[   66.336730] Register r10 information: non-paged memory
[   66.341918] Register r11 information: non-paged memory
[   66.347076] Register r12 information: 0-page vmalloc region starting at 0xf1400000 allocated at __devm_ioremap_resource+0x180/0x1f0
[   66.358947] Process vmalloc_test/0 (pid: 1273, stack limit = 0x906b087f)
[   66.365692] Stack: (0xf2c19ef0 to 0xf2c1a000)
[   66.370056] 9ee0:                                     c75d6c40 6193099b bf08bb40 c5209c08
[   66.378265] 9f00: 00000000 c5209c0c 0000000a bf093000 0000000f bf08b37c c57b3780 c5209c00
[   66.386505] 9f20: 8d4fdf3b 83126e97 c5209c10 00000008 00000000 00000006 00000007 00000000
[   66.394714] 9f40: 00000005 00000002 00000004 00000001 00000008 0000000a 00000003 00000009
[   66.402923] 9f60: 7927b27b c57b5850 c5225c00 c5225c00 f2bfdb38 bf08b100 c5209c00 00000000
[   66.411132] 9f80: 00000000 c0493358 00000000 00000000 c47e8300 c0493260 00000000 00000000
[   66.419342] 9fa0: 00000000 00000000 00000000 c040029c 00000000 00000000 00000000 00000000
[   66.427551] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   66.435791] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[   66.444000] Call trace: 
[   66.444000]  vm_map_ram_test [test_vmalloc] from test_func+0x27c/0x3c4 [test_vmalloc]
[   66.454406]  test_func [test_vmalloc] from kthread+0xf8/0x2d8
[   66.460205]  kthread from ret_from_fork+0x14/0x38
[   66.464935] Exception stack(0xf2c19fb0 to 0xf2c19ff8)
[   66.470001] 9fa0:                                     00000000 00000000 00000000 00000000
[   66.478210] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   66.486419] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   66.493072] Code: e1a01004 e3e02000 eb5874f3 e1a01004 (e5c07000) 
[   66.499267] ---[ end trace 0000000000000000 ]---