Hay
Date
June 20, 2025, 12:38 p.m.

Environment
qemu-armv7

--- cut here ---
[  207.014706] Unable to handle kernel NULL pointer dereference at virtual address 00000000 when write
[  207.014790] [00000000] *pgd=80000040204003, *pmd=00000000
[  207.017264] Internal error: Oops: a05 [#1] SMP ARM
[  207.033714] Modules linked in: test_vmalloc(+) nfnetlink ip_tables x_tables
[  207.034411] CPU: 1 UID: 0 PID: 1224 Comm: vmalloc_test/0 Tainted: G        W           6.16.0-rc2-next-20250620 #1 NONE 
[  207.034740] Tainted: [W]=WARN
[  207.034843] Hardware name: Generic DT based system
[  207.035002] PC is at vm_map_ram_test+0x98/0x4c0 [test_vmalloc]
[  207.035238] LR is at vm_map_ram+0x14c/0xa80
[  207.035405] pc : [<bf018bd8>]    lr : [<c06ab5b0>]    psr: 20000013
[  207.037706] sp : fa205ef0  ip : f1880000  fp : 00000030
[  207.038783] r10: 30fa3e10  r9 : bf01a01c  r8 : 00000001
[  207.039681] r7 : 00000061  r6 : 00000000  r5 : c43e4680  r4 : 00000001
[  207.040673] r3 : 60000013  r2 : 00003034  r1 : 00000001  r0 : 00000000
[  207.041738] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[  207.042893] Control: 30c5387d  Table: 4419a000  DAC: 00000000
[  207.043652] Register r0 information: NULL pointer
[  207.044413] Register r1 information: non-paged memory
[  207.044589] Register r2 information: non-paged memory
[  207.044749] Register r3 information: non-paged memory
[  207.045425] Register r4 information: non-paged memory
[  207.046051] Register r5 information: slab kmalloc-64 start c43e4680 pointer offset 0 size 64
[  207.047751] Register r6 information: NULL pointer
[  207.048325] Register r7 information: non-paged memory
[  207.048986] Register r8 information: non-paged memory
[  207.049316] Register r9 information: 1-page vmalloc region starting at 0xbf01a000 allocated at load_module+0xcf8/0x19c4
[  207.050475] Register r10 information: non-paged memory
[  207.050856] Register r11 information: non-paged memory
[  207.051026] Register r12 information: 1-page vmalloc region starting at 0xf187f000 allocated at kvfree_rcu_1_arg_vmalloc_test+0x2c/0x6c [test_vmalloc]
[  207.052099] Process vmalloc_test/0 (pid: 1224, stack limit = 0x49c7bc38)
[  207.053391] Stack: (0xfa205ef0 to 0xfa206000)
[  207.054251] 5ee0:                                     c43e4680 ffffffff bf018b40 c3c98608
[  207.054572] 5f00: 00000000 c3c9860c 0000000a bf01a018 00000030 bf01837c c409dc80 c3c98600
[  207.054806] 5f20: 8d4fdf3b 83126e97 c3c98610 00000007 d6f3b97e 00000004 00000008 00000003
[  207.055037] 5f40: 00000000 00000006 00000001 00000009 0000000a 00000002 00000007 00000005
[  207.055268] 5f60: f85a3a85 c409d850 c3ba2d00 c3ba2d00 fa1f9b38 bf018100 c3c98600 00000000
[  207.055497] 5f80: 00000000 c04933e8 00000000 00000000 c4120fc0 c04932f0 00000000 00000000
[  207.055738] 5fa0: 00000000 00000000 00000000 c040029c 00000000 00000000 00000000 00000000
[  207.055972] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  207.056201] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[  207.056448] Call trace: 
[  207.057624]  vm_map_ram_test [test_vmalloc] from test_func+0x27c/0x3c4 [test_vmalloc]
[  207.058918]  test_func [test_vmalloc] from kthread+0xf8/0x2d8
[  207.059753]  kthread from ret_from_fork+0x14/0x38
[  207.060380] Exception stack(0xfa205fb0 to 0xfa205ff8)
[  207.061017] 5fa0:                                     00000000 00000000 00000000 00000000
[  207.061933] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  207.062798] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[  207.064035] Code: e1a01004 e3e02000 eb5a4a23 e1a01004 (e5c07000) 
[  207.065930] ---[ end trace 0000000000000000 ]---

--- cut here ---
[  289.565586] Unable to handle kernel NULL pointer dereference at virtual address 00000000 when write
[  289.565810] [00000000] *pgd=80000040204003, *pmd=00000000
[  289.567263] Internal error: Oops: a05 [#1] SMP ARM
[  289.568123] Modules linked in: test_vmalloc(+) fuse
[  289.568843] CPU: 1 UID: 0 PID: 1220 Comm: vmalloc_test/0 Tainted: G        W           6.16.0-rc2-next-20250620 #1 NONE 
[  289.569696] Tainted: [W]=WARN
[  289.569989] Hardware name: Generic DT based system
[  289.570400] PC is at vm_map_ram_test+0xcc/0xf0 [test_vmalloc]
[  289.571017] LR is at 0xfa3f9e60
[  289.571481] pc : [<bf02d5c8>]    lr : [<fa3f9e60>]    psr: 600e0013
[  289.572355] sp : fa3f9ee8  ip : edbeae50  fp : c4341760
[  289.573187] r10: 6948f430  r9 : 00000061  r8 : c4d01080
[  289.573418] r7 : 00000001  r6 : bf02f000  r5 : 00000001  r4 : 00000001
[  289.573852] r3 : c441f500  r2 : 00000000  r1 : 00000001  r0 : 00000000
[  289.574940] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[  289.575545] Control: 30c5387d  Table: 44392800  DAC: 00000000
[  289.576081] Register r0 information: NULL pointer
[  289.577814] Register r1 information: non-paged memory
[  289.578076] Register r2 information: NULL pointer
[  289.578432] Register r3 information: slab task_struct start c441f500 pointer offset 0 size 2496
[  289.579488] systemd-journald[89]: Failed to sync system journal, ignoring: Resource temporarily unavailable
[  289.580320] Register r4 information: non-paged memory
[  289.581052] Register r5 information: non-paged memory
[  289.581586] Register r6 information: 1-page vmalloc region starting at 0xbf02f000 allocated at load_module+0x7b0/0x1d5c
[  289.583122] Register r7 information: non-paged memory
[  289.583387] Register r8 information: slab kmalloc-64 start c4d01080 pointer offset 0 size 64
[  289.584027] Register r9 information: non-paged memory
[  289.584628] Register r10 information: non-paged memory
[  289.585280] Register r11 information: slab kmalloc-192 start c43416c0 pointer offset 160 size 192
[  289.586319] Register r12 information: non-slab/vmalloc memory
[  289.586730] Process vmalloc_test/0 (pid: 1220, stack limit = 0x5d16a092)
[  289.587628] Stack: (0xfa3f9ee8 to 0xfa3fa000)
[  289.589145] 9ee0:                   c4d01080 c051b450 bf02d0bc bf02d4fc 0000000a bf02f000
[  289.589754] 9f00: fa3f9f48 fa3f9f5c 00000000 bf02d6ec 0001ac00 00000000 c43416c0 00000043
[  289.590031] 9f20: bf031238 bf02f400 c248aba0 dfe82b63 00000006 00000007 00000001 00000009
[  289.590413] 9f40: 00000002 0000000a 00000008 00000003 00000005 00000000 00000004 6bd59e74
[  289.590865] 9f60: c43416c0 00000001 c3fac300 c441f500 c3fac300 bf02d5ec c43416c0 00000000
[  289.590865] systemd-journald[89]: Failed to sync system journal, ignoring: Resource temporarily unavailable
[  289.593150] 9f80: 00000000 c048c460 00000000 6bd59e74 c4393940 c048c34c 00000000 00000000
[  289.594304] 9fa0: 00000000 00000000 00000000 c0400254 00000000 00000000 00000000 00000000
[  289.595087] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  289.595732] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[  289.596895] Call trace: 
[  289.597217]  vm_map_ram_test [test_vmalloc] from test_func+0x100/0x2d8 [test_vmalloc]
[  289.598140]  test_func [test_vmalloc] from kthread+0x114/0x240
[  289.598687]  kthread from ret_from_fork+0x14/0x20
[  289.598974] Exception stack(0xfa3f9fb0 to 0xfa3f9ff8)
[  289.599752] 9fa0:                                     00000000 00000000 00000000 00000000
[  289.600578] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  289.600955] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[  289.601618] Code: e1a00008 e2844001 eb5a3907 e1a01005 (e5c09000) 
[  289.603117] systemd-journald[89]: Failed to sync system journal, ignoring: Resource temporarily unavailable
[  289.604735] ---[ end trace 0000000000000000 ]---