Hay
Date
June 23, 2025, 7:07 a.m.

Environment
qemu-armv7

--- cut here ---
[  104.798045] Unable to handle kernel NULL pointer dereference at virtual address 00000000 when write
[  104.798259] [00000000] *pgd=80000040204003, *pmd=00000000
[  104.798767] Internal error: Oops: a05 [#1] SMP ARM
[  104.826578] Modules linked in: test_vmalloc(+) nfnetlink ip_tables x_tables
[  104.827951] CPU: 0 UID: 0 PID: 1225 Comm: vmalloc_test/0 Tainted: G        W           6.16.0-rc3-next-20250623 #1 NONE 
[  104.829132] Tainted: [W]=WARN
[  104.829542] Hardware name: Generic DT based system
[  104.830105] PC is at vm_map_ram_test+0x98/0x4c0 [test_vmalloc]
[  104.830348] LR is at vm_map_ram+0x14c/0xa80
[  104.830941] pc : [<bf018bd8>]    lr : [<c06ab6e4>]    psr: 20000013
[  104.831679] sp : fa1b1ef0  ip : f1880000  fp : 00000018
[  104.832255] r10: 655acc10  r9 : bf01a01c  r8 : 00000001
[  104.832467] r7 : 00000061  r6 : 00000000  r5 : c466fc00  r4 : 00000001
[  104.832814] r3 : 60000013  r2 : 000033c0  r1 : 00000001  r0 : 00000000
[  104.833752] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  104.834545] Control: 30c5387d  Table: 43d23600  DAC: fffffffd
[  104.835115] Register r0 information: NULL pointer
[  104.835451] Register r1 information: non-paged memory
[  104.835824] Register r2 information: non-paged memory
[  104.836557] Register r3 information: non-paged memory
[  104.837228] Register r4 information: non-paged memory
[  104.837835] Register r5 information: slab kmalloc-64 start c466fc00 pointer offset 0 size 64
[  104.839225] Register r6 information: NULL pointer
[  104.839624] Register r7 information: non-paged memory
[  104.840068] Register r8 information: non-paged memory
[  104.840786] Register r9 information: 1-page vmalloc region starting at 0xbf01a000 allocated at load_module+0xcf8/0x19c4
[  104.841863] Register r10 information: non-paged memory
[  104.842351] Register r11 information: non-paged memory
[  104.842538] Register r12 information: 1-page vmalloc region starting at 0xf187f000 allocated at kvfree_rcu_1_arg_vmalloc_test+0x2c/0x6c [test_vmalloc]
[  104.844022] Process vmalloc_test/0 (pid: 1225, stack limit = 0x339e6c18)
[  104.845050] Stack: (0xfa1b1ef0 to 0xfa1b2000)
[  104.845189] 1ee0:                                     c466fc00 bf01a01c bf018b40 c3af0cc8
[  104.846076] 1f00: 00000000 c3af0ccc 0000000a bf01a018 00000018 bf01837c c2a19bc0 c3af0cc0
[  104.846309] 1f20: 8d4fdf3b 83126e97 c3af0cd0 00000009 84464877 00000008 00000009 00000005
[  104.847185] 1f40: 00000001 00000002 00000006 00000007 00000003 00000004 0000000a 00000000
[  104.847995] 1f60: 8d1217e9 c40cbc90 c4121f80 c4121f80 fa17db38 bf018100 c3af0cc0 00000000
[  104.848691] 1f80: 00000000 c04933e8 00000000 00000000 c4001c80 c04932f0 00000000 00000000
[  104.849097] 1fa0: 00000000 00000000 00000000 c040029c 00000000 00000000 00000000 00000000
[  104.849751] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  104.850218] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[  104.851027] Call trace: 
[  104.851159]  vm_map_ram_test [test_vmalloc] from test_func+0x27c/0x3c4 [test_vmalloc]
[  104.851697]  test_func [test_vmalloc] from kthread+0xf8/0x2d8
[  104.851909]  kthread from ret_from_fork+0x14/0x38
[  104.852350] Exception stack(0xfa1b1fb0 to 0xfa1b1ff8)
[  104.852884] 1fa0:                                     00000000 00000000 00000000 00000000
[  104.853767] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  104.854369] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[  104.855058] Code: e1a01004 e3e02000 eb5a4a70 e1a01004 (e5c07000) 
[  104.856099] ---[ end trace 0000000000000000 ]---

--- cut here ---
[  365.696948] Unable to handle kernel NULL pointer dereference at virtual address 00000000 when write
[  365.697270] [00000000] *pgd=80000040204003, *pmd=00000000
[  365.698088] Internal error: Oops: a05 [#1] SMP ARM
[  365.722656] Modules linked in: test_vmalloc(+) fuse
[  365.725003] CPU: 1 UID: 0 PID: 1224 Comm: vmalloc_test/0 Tainted: G        W           6.16.0-rc3-next-20250623 #1 NONE 
[  365.725884] Tainted: [W]=WARN
[  365.726146] Hardware name: Generic DT based system
[  365.726837] PC is at vm_map_ram_test+0xcc/0xf0 [test_vmalloc]
[  365.727245] LR is at 0xfa3f1e60
[  365.727960] pc : [<bf02d5c8>]    lr : [<fa3f1e60>]    psr: 60010013
[  365.728203] sp : fa3f1ee8  ip : edbeae50  fp : c4401460
[  365.728361] r10: 239c31e0  r9 : 00000061  r8 : c46c53c0
[  365.728717] r7 : 00000001  r6 : bf02f000  r5 : 00000001  r4 : 00000001
[  365.729302] r3 : c2af8000  r2 : 00000000  r1 : 00000001  r0 : 00000000
[  365.729721] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[  365.730040] Control: 30c5387d  Table: 439cb280  DAC: 00000000
[  365.730516] Register r0 information: NULL pointer
[  365.731388] Register r1 information: non-paged memory
[  365.732786] Register r2 information: NULL pointer
[  365.733285] Register r3 information: slab task_struct start c2af8000 pointer offset 0 size 2496
[  365.734959] Register r4 information: non-paged memory
[  365.735364] Register r5 information: non-paged memory
[  365.735517] Register r6 information: 1-page vmalloc region starting at 0xbf02f000 allocated at load_module+0x7b0/0x1d5c
[  365.737139] Register r7 information: non-paged memory
[  365.737815] Register r8 information: slab kmalloc-64 start c46c53c0 pointer offset 0 size 64
[  365.738100] Register r9 information: non-paged memory
[  365.738528] Register r10 information: non-paged memory
[  365.738793] Register r11 information: slab kmalloc-192 start c44013c0 pointer offset 160 size 192
[  365.739539] Register r12 information: non-slab/vmalloc memory
[  365.740145] Process vmalloc_test/0 (pid: 1224, stack limit = 0x481e86f4)
[  365.741278] Stack: (0xfa3f1ee8 to 0xfa3f2000)
[  365.741677] 1ee0:                   c46c53c0 c051b6e0 bf02d464 bf02d4fc 0000000a bf02f000
[  365.742388] 1f00: fa3f1f50 fa3f1f5c 00000000 bf02d6ec 00019a00 00000000 c44013c0 00000055
[  365.742590] 1f20: bf031238 bf02f400 c248abe0 692fdea8 00000004 00000003 00000009 00000006
[  365.743571] 1f40: 00000008 00000002 00000000 0000000a 00000007 00000001 00000005 16171bf4
[  365.744137] 1f60: c44013c0 00000001 c417f300 c2af8000 c417f300 bf02d5ec c44013c0 00000000
[  365.744985] 1f80: 00000000 c048c460 00000000 16171bf4 c42a91c0 c048c34c 00000000 00000000
[  365.745320] 1fa0: 00000000 00000000 00000000 c0400254 00000000 00000000 00000000 00000000
[  365.745893] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  365.746686] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[  365.747276] Call trace: 
[  365.747536]  vm_map_ram_test [test_vmalloc] from test_func+0x100/0x2d8 [test_vmalloc]
[  365.748747]  test_func [test_vmalloc] from kthread+0x114/0x240
[  365.749130]  kthread from ret_from_fork+0x14/0x20
[  365.749792] Exception stack(0xfa3f1fb0 to 0xfa3f1ff8)
[  365.750225] 1fa0:                                     00000000 00000000 00000000 00000000
[  365.750721] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  365.751688] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[  365.752740] Code: e1a00008 e2844001 eb5a398a e1a01005 (e5c09000) 
[  365.755553] ---[ end trace 0000000000000000 ]---