From owner-freebsd-stable@FreeBSD.ORG Fri Jul 27 15:29:47 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B6BC16A41A for ; Fri, 27 Jul 2007 15:29:47 +0000 (UTC) (envelope-from dennis.melentyev@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.232]) by mx1.freebsd.org (Postfix) with ESMTP id D56DB13C48E for ; Fri, 27 Jul 2007 15:29:46 +0000 (UTC) (envelope-from dennis.melentyev@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so696898nzf for ; Fri, 27 Jul 2007 08:29:46 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=g6gQA7GusHkvSf4J4CfRHUPSRQi4x0iGFBNXVCPh15ZgEeYQBSY4nGaC1xMs6PFY6/bevQf0IpfTYNs0yXWn1sh2SR2KG5fSwS99U39v0TI2NomsoPw/eqAtaNuh69nL0W4rv4o/K3RjJiNQKCWG+JnhYdpB7iEHx1PU3TRT9sw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QEYJI1fIu+3sMauOXcRxZWh2XQViLEpHTCwL7KNqHXu9bodzS9OOIY8LPK2Ihr917rl2twejMvc5Vr0yYRzO2RrRNWl/n7LQO+/S9NqB1/91n+eyiViJv58xh9I59dYX7WEvA/fvlyIkM6RdIxQ/BznvZvjceXZpGEbpzSeOADw= Received: by 10.114.175.16 with SMTP id x16mr2015204wae.1185550185296; Fri, 27 Jul 2007 08:29:45 -0700 (PDT) Received: by 10.70.118.15 with HTTP; Fri, 27 Jul 2007 08:29:44 -0700 (PDT) Message-ID: Date: Fri, 27 Jul 2007 18:29:44 +0300 From: "Dennis Melentyev" To: "Peter Jeremy" In-Reply-To: <20070724094451.GB1162@turion.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <469E6545.3070600@FreeBSD.org> <200707231415.l6NEFuRo035076@lurza.secnetix.de> <20070724094451.GB1162@turion.vk2pj.dyndns.org> Cc: freebsd-stable@freebsd.org Subject: Re: removing external usb hdd without unmounting causes reboot? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jul 2007 15:29:47 -0000 Hello Peter and everybody, Sorry for continuing this thread, but let's not forgot the security aspect of this issue: If you run amd on some host configured to automount USB drives, it's easy to force DoS attack. Just insert the flash/HDD and remove it short after it's mounted. Sure, it's almost close to ability of just pulling off power cable or pressing reset, but still a problem. Even if nobody will put out the USB stick, just in case of a Flash with dead blocks on it or just badly formatted one it's too easy to get totally unexpected panics. I'd rather consider this problem as security one. Is there any correct way to initiate funding to rewrite VM/VFS related parts (getting non-panicable removable devices)? Who should one contact for this? PS. Happy sysadmin day! *drink* 2007/7/24, Peter Jeremy : > On 2007-Jul-23 16:15:56 +0200, Oliver Fromme wrote: > >So, currently the best work-around is to use amd with a > >very short timeout. Or simply remember to umount your > >removable media manually. > > Or ports/emulators/mtools > > -- > Peter Jeremy > > -- Dennis Melentyev