calcru() access p_stats, which is in upages. Therefore, as I understand, it should not be called on a swapped out process. Neither calcru() nor its callers seem to ensure this. At least the call in procfs_dostatus() may happen on a swapped out process. (It test for P_INMEM for another access to p_stats several lines before :-/)
Dima To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message