Hay
Date
June 5, 2025, 7:08 a.m.

Environment
qemu-armv7

--- cut here ---
[  224.714596] Unable to handle kernel NULL pointer dereference at virtual address 00000000 when write
[  224.714670] [00000000] *pgd=80000040204003, *pmd=00000000
[  224.715242] Internal error: Oops: a05 [#1] SMP ARM
[  224.736800] Modules linked in: test_vmalloc(+) fuse
[  224.737890] CPU: 0 UID: 0 PID: 1173 Comm: vmalloc_test/0 Tainted: G        W           6.15.0-next-20250605 #1 NONE 
[  224.739208] Tainted: [W]=WARN
[  224.739439] Hardware name: Generic DT based system
[  224.740782] PC is at vm_map_ram_test+0xcc/0xf0 [test_vmalloc]
[  224.742188] LR is at 0xfa2a1e60
[  224.742955] pc : [<bf02d5c8>]    lr : [<fa2a1e60>]    psr: 600a0013
[  224.743949] sp : fa2a1ee8  ip : edbd7e50  fp : c3e379a0
[  224.744365] r10: 50b43f90  r9 : 00000061  r8 : c4758100
[  224.745720] r7 : 00000001  r6 : bf02f014  r5 : 00000001  r4 : 00000001
[  224.746734] r3 : c430f500  r2 : 00000000  r1 : 00000001  r0 : 00000000
[  224.748076] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  224.749656] Control: 30c5387d  Table: 43e59100  DAC: fffffffd
[  224.750687] Register r0 information: NULL pointer
[  224.751623] Register r1 information: non-paged memory
[  224.752072] Register r2 information: NULL pointer
[  224.753007] Register r3 information: slab task_struct start c430f500 pointer offset 0 size 2496
[  224.755087] Register r4 information: non-paged memory
[  224.755886] Register r5 information: non-paged memory
[  224.757085] Register r6 information: 1-page vmalloc region starting at 0xbf02f000 allocated at load_module+0x7b0/0x1d5c
[  224.758482] Register r7 information: non-paged memory
[  224.759283] Register r8 information: slab kmalloc-64 start c4758100 pointer offset 0 size 64
[  224.760374] Register r9 information: non-paged memory
[  224.761074] Register r10 information: non-paged memory
[  224.761961] Register r11 information: slab kmalloc-192 start c3e37900 pointer offset 160 size 192
[  224.763226] Register r12 information: non-slab/vmalloc memory
[  224.763975] Process vmalloc_test/0 (pid: 1173, stack limit = 0x3edaa58b)
[  224.765965] Stack: (0xfa2a1ee8 to 0xfa2a2000)
[  224.766880] 1ee0:                   c4758100 c051af28 bf02d464 bf02d4fc 0000000a bf02f014
[  224.768516] 1f00: fa2a1f54 fa2a1f5c 00000000 bf02d6ec 00034da0 00000000 c3e37900 00000034
[  224.769464] 1f20: bf031238 bf02f000 c248c100 42be7f79 00000009 00000006 00000008 00000001
[  224.770988] 1f40: 00000007 00000004 00000002 00000000 0000000a 00000003 00000005 10f166fb
[  224.772154] 1f60: c3e37900 00000001 c42a8000 c430f500 c42a8000 bf02d5ec c3e37900 00000000
[  224.773800] 1f80: 00000000 c048c558 00000000 10f166fb c4015a40 c048c444 00000000 00000000
[  224.775342] 1fa0: 00000000 00000000 00000000 c0400254 00000000 00000000 00000000 00000000
[  224.776452] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  224.777606] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[  224.778607] Call trace: 
[  224.779288]  vm_map_ram_test [test_vmalloc] from test_func+0x100/0x2d8 [test_vmalloc]
[  224.780554]  test_func [test_vmalloc] from kthread+0x114/0x240
[  224.781335]  kthread from ret_from_fork+0x14/0x20
[  224.782310] Exception stack(0xfa2a1fb0 to 0xfa2a1ff8)
[  224.783023] 1fa0:                                     00000000 00000000 00000000 00000000
[  224.785239] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  224.786286] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[  224.787532] Code: e1a00008 e2844001 eb5a33b3 e1a01005 (e5c09000) 
[  224.789571] ---[ end trace 0000000000000000 ]---