Source-Changes archive

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

CVS commit: [netbsd-9] src/sys/uvm



Module Name:    src
Committed By:   martin
Date:           Sat Nov 15 10:16:13 UTC 2025

Modified Files:
        src/sys/uvm [netbsd-9]: uvm_extern.h

Log Message:
Pull up following revision(s) (requested by mrg in ticket #1979):

        sys/uvm/uvm_extern.h: revision 1.236

avoid integer overflow when calculating inactive target.

on one of my systems, when UVM_PCTPARAM_APPLY() is used to calculate
s_inactarg, (s_active + s_inactive) * pct_scaled -- eg, (27484702 +
263661) * 84 == 2330862492, aka overflow in 32-bit signed, and then
code to enforce the inactive target to be at least the free target
would trigger and inactive target would be a small value.


To generate a diff of this commit:
cvs rdiff -u -r1.213.6.1 -r1.213.6.2 src/sys/uvm/uvm_extern.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index