From 3aa9abb4d80cf4fb3839cf2e5a25418ce3b51b6e Mon Sep 17 00:00:00 2001 From: pk Date: Sat, 20 Sep 1997 19:32:15 +0000 Subject: [PATCH] Use the copied-in string to pass to cpu_reboot(), not a pointer into user space. --- sys/kern/kern_xxx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_xxx.c b/sys/kern/kern_xxx.c index c8dc2a3db9d7..bdcf3bbe8783 100644 --- a/sys/kern/kern_xxx.c +++ b/sys/kern/kern_xxx.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_xxx.c,v 1.39 1997/03/26 22:42:17 gwr Exp $ */ +/* $NetBSD: kern_xxx.c,v 1.40 1997/09/20 19:32:15 pk Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 @@ -67,7 +67,7 @@ sys_reboot(p, v, retval) */ if ((SCARG(uap, opt) & RB_STRING) && (error = copyinstr(SCARG(uap, bootstr), bs, sizeof(bs), 0)) == 0) - bootstr = SCARG(uap, bootstr); + bootstr = bs; else bootstr = NULL; /*