Source-Changes-HG archive

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

[src/netbsd-2-0]: src/sys/kern Pull up following revision(s) (requested by ad...



details:   https://anonhg.NetBSD.org/src/rev/6cb317b6c0e9
branches:  netbsd-2-0
changeset: 565014:6cb317b6c0e9
user:      tron <tron%NetBSD.org@localhost>
date:      Sun Oct 29 13:03:51 2006 +0000

description:
Pull up following revision(s) (requested by adrianp in ticket #10740):
        sys/kern/uipc_syscalls.c: revision 1.104
PR/34873: Ryo Shimizu: sendmsg() can cause kernel panic
Patch applied, thanks!

diffstat:

 sys/kern/uipc_syscalls.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 42d38eeed237 -r 6cb317b6c0e9 sys/kern/uipc_syscalls.c
--- a/sys/kern/uipc_syscalls.c  Sun Oct 29 13:00:45 2006 +0000
+++ b/sys/kern/uipc_syscalls.c  Sun Oct 29 13:03:51 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_syscalls.c,v 1.86.2.2 2006/08/28 14:54:26 tron Exp $      */
+/*     $NetBSD: uipc_syscalls.c,v 1.86.2.3 2006/10/29 13:03:51 tron Exp $      */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1990, 1993
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_syscalls.c,v 1.86.2.2 2006/08/28 14:54:26 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_syscalls.c,v 1.86.2.3 2006/10/29 13:03:51 tron Exp $");
 
 #include "opt_ktrace.h"
 #include "opt_pipe.h"
@@ -517,7 +517,7 @@
        } else
                to = 0;
        if (mp->msg_control) {
-               if (mp->msg_controllen < sizeof(struct cmsghdr)) {
+               if (mp->msg_controllen < CMSG_ALIGN(sizeof(struct cmsghdr))) {
                        error = EINVAL;
                        goto bad;
                }



Home | Main Index | Thread Index | Old Index