From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263294AbVGAJio (ORCPT ); Fri, 1 Jul 2005 05:38:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263295AbVGAJio (ORCPT ); Fri, 1 Jul 2005 05:38:44 -0400 Received: from frankvm.xs4all.nl ([80.126.170.174]:49078 "EHLO janus.localdomain") by vger.kernel.org with ESMTP id S263294AbVGAJg2 (ORCPT ); Fri, 1 Jul 2005 05:36:28 -0400 Date: Fri, 1 Jul 2005 11:36:27 +0200 From: Frank van Maarseveen To: Miklos Szeredi Cc: akpm@osdl.org, aia21@cam.ac.uk, arjan@infradead.org, linux-kernel@vger.kernel.org, frankvm@frankvm.com Subject: Re: FUSE merging? Message-ID: <20050701093627.GB4317@janus> References: <20050630022752.079155ef.akpm@osdl.org> <1120125606.3181.32.camel@laptopd505.fenrus.org> <1120126804.3181.34.camel@laptopd505.fenrus.org> <1120129996.5434.1.camel@imp.csi.cam.ac.uk> <20050630124622.7c041c0b.akpm@osdl.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Subliminal-Message: Use Linux! Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 01, 2005 at 08:36:02AM +0200, Miklos Szeredi wrote: > > Here's a description of a theoretical DoS scenario: > > http://marc.theaimsgroup.com/?l=linux-fsdevel&m=111522019516694&w=2 So the open() hangs indefinately. but what if blackhat tries to install a package from a no longer existing server on /net or via NFS? A user supplied pathname is not to be trusted by any setuid (or full root) program. Another example: I'm not sure if there are still /dev/tty devices which may block indefinately upon open() but: - I have yet to see a setuid program which always uses O_NONBLOCK when opening user supplied pathnames. - one cannot stat() and then open() because that gives a race. -- Frank