> 
> The latest development source of ntpd started to use setrlimit() before
> using mlockall(). This combination proves fatal on -current. The code
> in ntpd/ntpd.c looks like this:

Ok, I found an easier way to provoke the panic. Just compile the following
program like this:

cc -Wall -O -o vm -lcrypto vm.c

and run as root. The program itself does not use the crypto, but it is
needed to provoke the panic.

##################### vm.c ##########################
#include <stdio.h>
#include <sys/mman.h>

int
main(int argc, char **argv)
{
        /*
         * lock the process into memory
         */
        if (mlockall(MCL_CURRENT|MCL_FUTURE) < 0)
                perror("mlockall()");

        return 0;
}
#######################################################

John
-- 
John Hay -- [EMAIL PROTECTED] / [EMAIL PROTECTED]
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to