Since linux-6.3 vma->vm_flags must be set using a wrapper function. See commit bc292ab00f6c7a661a8a605c714e8a148f629ef6 for a more thorough explanation. --- hpuefi-mod-3.04/hpuefi.c +++ hpuefi-mod-3.04/hpuefi.c @@ -612,7 +612,7 @@ /* *****Input conditions validation preamble end***** */ // we do not want to have this area swapped out, lock it - vma->vm_flags |= VM_LOCKED; + vm_flags_set(vma, VM_LOCKED); // create mapping between virtual address supplied by user and physical pages if (PhysBuffer != 0) { if ((remap_pfn_range(vma, vma->vm_start, PhysBuffer >> PAGE_SHIFT, size, vma->vm_page_prot)) != SUCCESS)