Date: Wed, 9 Sep 2009 20:59:01 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/compat/freebsd32 freebsd32_misc.c src/sys/compat/linux linux_misc.c src/sys/kern sys_generic.c src/sys/sys syscallsubr.h Message-ID: <200909092059.n89KxGpa012441@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2009-09-09 20:59:01 UTC FreeBSD src repository Modified files: sys/compat/freebsd32 freebsd32_misc.c sys/compat/linux linux_misc.c sys/kern sys_generic.c sys/sys syscallsubr.h Log: SVN rev 197049 on 2009-09-09 20:59:01Z by kib kern_select(9) copies fd_set in and out of userspace in quantities of longs. Since 32bit processes longs are 4 bytes, 64bit kernel may copy in or out 4 bytes more then the process expected. Calculate the amount of bytes to copy taking into account size of fd_set for the current process ABI. Diagnosed and tested by: Peter Jeremy <peterjeremy acm org> Reviewed by: jhb MFC after: 1 week Revision Changes Path 1.94 +2 -1 src/sys/compat/freebsd32/freebsd32_misc.c 1.241 +1 -1 src/sys/compat/linux/linux_misc.c 1.177 +9 -5 src/sys/kern/sys_generic.c 1.58 +1 -1 src/sys/sys/syscallsubr.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909092059.n89KxGpa012441>