Module Name: src Committed By: njoly Date: Sat Jul 20 15:55:57 UTC 2013
Modified Files: src/sys/kern: vfs_syscalls.c Log Message: Remove, in do_sys_renameat(), wrong KASSERTs that check for non NULL from/to arguments. Such values are correctly handled by later pathbuf_maybe_copyin() calls, that will fail with EFAULT. ok from dholland@. To generate a diff of this commit: cvs rdiff -u -r1.466 -r1.467 src/sys/kern/vfs_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/vfs_syscalls.c diff -u src/sys/kern/vfs_syscalls.c:1.466 src/sys/kern/vfs_syscalls.c:1.467 --- src/sys/kern/vfs_syscalls.c:1.466 Thu Jul 18 14:06:27 2013 +++ src/sys/kern/vfs_syscalls.c Sat Jul 20 15:55:57 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_syscalls.c,v 1.466 2013/07/18 14:06:27 matt Exp $ */ +/* $NetBSD: vfs_syscalls.c,v 1.467 2013/07/20 15:55:57 njoly Exp $ */ /*- * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. @@ -70,7 +70,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.466 2013/07/18 14:06:27 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.467 2013/07/20 15:55:57 njoly Exp $"); #ifdef _KERNEL_OPT #include "opt_fileassoc.h" @@ -4169,8 +4169,6 @@ do_sys_renameat(struct lwp *l, int fromf int error; KASSERT(l != NULL || (fromfd == AT_FDCWD && tofd == AT_FDCWD)); - KASSERT(from != NULL); - KASSERT(to != NULL); error = pathbuf_maybe_copyin(from, seg, &fpb); if (error)