Hello,
Thanks for the investigation!
I have pushed the patch and uploaded to Debian.
Mike Kelly, le mar. 01 déc. 2026 17:09:04 +0000, a ecrit:
> Whilst developing this patch, I did notice the code in:
> hurd/libdde-linux26/lib/src/arch/l4/res.c:
>
> static void l4dde26_release_mem_region(resource_size_t start, resource_size_t
> n)
> {
> ddekit_release_mem(start, n);
> ddekit_pgtab_clear_region((void *)start, PTE_TYPE_OTHER);
> }
>
> I can't see how the call to ddekit_pgtab_clear_region can be correct
> given that 'start' is the physical address and that the function
> requires a virtual address.
That looks very fishy indeed.
> This function isn't called in my test case, but I can make an
> additional patch if you agree that it is required ?
release_region is relatively common in drivers indeed.
Samuel