Source-Changes archive

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

CVS commit: src/sys/uvm



Module Name:    src
Committed By:   mrg
Date:           Mon Nov 10 01:22:16 UTC 2025

Modified Files:
        src/sys/uvm: uvm_extern.h

Log Message:
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.235 -r1.236 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