NetBSD-Bugs archive

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

re: kern/57683: uvm_pglistalloc_s_ps() et al integer overflow



> But problems will I think only occur here on systems with more than 16 TB of RAM.

we have all sorts of issues with anything beyond 8TB (signed 32 bit
4K pages overflow) because we use "int" all over uvm to count pages.

this is one of them, and if it's enough to fix your problem, then it
is worth doing but i expect to see *all sorts of issues* in UVM when
there's actually huge ram.

this is not a small problem AFAICT.  getting to 16T by using unsigned
page count would help, but it's not nearly enough for the future.


.mrg.


Home | Main Index | Thread Index | Old Index