From owner-cvs-all@FreeBSD.ORG Thu Jan 24 17:10:19 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AAB2E16A417; Thu, 24 Jan 2008 17:10:19 +0000 (UTC) (envelope-from dumbbell@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 9D85113C459; Thu, 24 Jan 2008 17:10:19 +0000 (UTC) (envelope-from dumbbell@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m0OHAJf6083389; Thu, 24 Jan 2008 17:10:19 GMT (envelope-from dumbbell@repoman.freebsd.org) Received: (from dumbbell@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m0OHAJCG083388; Thu, 24 Jan 2008 17:10:19 GMT (envelope-from dumbbell) Message-Id: <200801241710.m0OHAJCG083388@repoman.freebsd.org> From: Jean-Sebastien Pedron Date: Thu, 24 Jan 2008 17:10:19 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/sys event.h src/sys/kern vfs_aio.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2008 17:10:19 -0000 dumbbell 2008-01-24 17:10:19 UTC FreeBSD src repository Modified files: sys/sys event.h sys/kern vfs_aio.c Log: When asked to use kqueue, AIO stores its internal state in the `kn_sdata' member of the newly registered knote. The problem is that this member is overwritten by a call to kevent(2) with the EV_ADD flag, targetted at the same kevent/knote. For instance, a userland application may set the pointer to NULL, leading to a panic. A testcase was provided by the submitter. PR: kern/118911 Submitted by: MOROHOSHI Akihiko MFC after: 1 day Revision Changes Path 1.237 +6 -4 src/sys/kern/vfs_aio.c 1.38 +2 -0 src/sys/sys/event.h