From owner-cvs-all Wed Apr 18 15:18:45 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9EA4F37B424; Wed, 18 Apr 2001 15:18:40 -0700 (PDT) (envelope-from alfred@FreeBSD.org) Received: (from alfred@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3IMIek60049; Wed, 18 Apr 2001 15:18:40 -0700 (PDT) (envelope-from alfred) Message-Id: <200104182218.f3IMIek60049@freefall.freebsd.org> From: Alfred Perlstein Date: Wed, 18 Apr 2001 15:18:40 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys signal.h src/sys/kern vfs_aio.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG alfred 2001/04/18 15:18:40 PDT Modified files: sys/sys signal.h sys/kern vfs_aio.c Log: Check validity of signal callback requested via aio routines. Also move the insertion of the request to after the request is validated, there's still looks like there may be some problems if an invalid address is passed to the aio routines, basically a possible leak or having a not completely initialized structure on the queue may still be possible. A new sig macro was made _SIG_VALID to check the validity of a signal, it would be advisable to use it from now on (in kern/kern_sig.c) rather than rolling your own. PR: kern/17152 Revision Changes Path 1.26 +2 -1 src/sys/sys/signal.h 1.98 +14 -3 src/sys/kern/vfs_aio.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message