Hay
Date
May 14, 2025, 11:38 a.m.

Environment
qemu-armv7

--- cut here ---
[  154.239259] Unable to handle kernel NULL pointer dereference at virtual address 00000000 when write
[  154.239311] [00000000] *pgd=80000040204003, *pmd=00000000
[  154.240238] Internal error: Oops: a05 [#1] SMP ARM
[  154.248787] Modules linked in: test_vmalloc(+) nfnetlink ip_tables x_tables
[  154.249542] CPU: 1 UID: 0 PID: 1170 Comm: vmalloc_test/0 Tainted: G        W           6.15.0-rc6-next-20250514 #1 NONE 
[  154.249986] Tainted: [W]=WARN
[  154.250919] Hardware name: Generic DT based system
[  154.251142] PC is at vm_map_ram_test+0x98/0x4c0 [test_vmalloc]
[  154.251258] LR is at vm_map_ram+0x14c/0xa80
[  154.251339] pc : [<bf018bd8>]    lr : [<c06a6928>]    psr: 200a0013
[  154.251522] sp : fa21def0  ip : f1b00000  fp : 00000023
[  154.251749] r10: e7c4e450  r9 : bf01a004  r8 : 00000001
[  154.251961] r7 : 00000061  r6 : 00000000  r5 : c44bf4c0  r4 : 00000001
[  154.252398] r3 : 600a0013  r2 : 00003e5c  r1 : 00000001  r0 : 00000000
[  154.252744] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[  154.252954] Control: 30c5387d  Table: 43df0e40  DAC: 00000000
[  154.253073] Register r0 information: NULL pointer
[  154.253609] Register r1 information: non-paged memory
[  154.253934] Register r2 information: non-paged memory
[  154.254162] Register r3 information: non-paged memory
[  154.254603] Register r4 information: non-paged memory
[  154.255284] Register r5 information: slab kmalloc-64 start c44bf4c0 pointer offset 0 size 64
[  154.256314] Register r6 information: NULL pointer
[  154.256401] Register r7 information: non-paged memory
[  154.256478] Register r8 information: non-paged memory
[  154.256552] Register r9 information: 1-page vmalloc region starting at 0xbf01a000 allocated at load_module+0xcf8/0x19b8
[  154.256763] Register r10 information: non-slab/vmalloc memory
[  154.256886] Register r11 information: non-paged memory
[  154.256962] Register r12 information: 0-page vmalloc region starting at 0xf1b00000 allocated at __devm_ioremap_resource+0x118/0x1f0
[  154.257131] Process vmalloc_test/0 (pid: 1170, stack limit = 0x09d1ad62)
[  154.257451] Stack: (0xfa21def0 to 0xfa21e000)
[  154.257524] dee0:                                     c44bf4c0 bf018588 bf018b40 c3bb4788
[  154.257665] df00: 00000000 c3bb478c 0000000a bf01a000 00000023 bf01837c c3c28940 c3bb4780
[  154.257803] df20: 8d4fdf3b 83126e97 c3bb4790 00000009 3e74fc55 00000008 00000004 00000005
[  154.257906] df40: 00000007 00000003 00000006 00000000 00000009 00000001 0000000a 00000002
[  154.258007] df60: 506cd16a c3c2d340 c3db1c00 c3db1c00 fa219b38 bf018100 c3bb4780 00000000
[  154.258107] df80: 00000000 c0493328 00000000 00000000 c40b8940 c0493234 00000000 00000000
[  154.258208] dfa0: 00000000 00000000 00000000 c040029c 00000000 00000000 00000000 00000000
[  154.258308] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  154.258409] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[  154.258512] Call trace: 
[  154.259397]  vm_map_ram_test [test_vmalloc] from test_func+0x27c/0x3c4 [test_vmalloc]
[  154.261101]  test_func [test_vmalloc] from kthread+0xf4/0x2d4
[  154.261427]  kthread from ret_from_fork+0x14/0x38
[  154.262115] Exception stack(0xfa21dfb0 to 0xfa21dff8)
[  154.262595] dfa0:                                     00000000 00000000 00000000 00000000
[  154.262993] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  154.263376] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[  154.263814] Code: e1a01004 e3e02000 eb5a3701 e1a01004 (e5c07000) 
[  154.265686] ---[ end trace 0000000000000000 ]---