NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/57748: vmem(9) cannot manage a full 32-bit address space on 32-bit platforms



>Number:         57748
>Category:       kern
>Synopsis:       vmem(9) cannot manage a full 32-bit address space on 32-bit platforms
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 04 01:30:00 +0000 2023
>Originator:     Jason Thorpe
>Release:        10.99.10
>Organization:
CISCy Business
>Environment:
Any 32-bit platform.
>Description:
vmem(9) uses:

typedef uintptr_t vmem_addr_t;
typedef size_t vmem_size_t;

...meaning that one cannot create a vmem arena that covers a full 32-bit address space, because the size would overflow.
>How-To-Repeat:
Go ahead, try it.
>Fix:
Possibly use uintmax_t for both addresses and sizes?



Home | Main Index | Thread Index | Old Index