From owner-freebsd-current Tue Feb 23 7:37:50 1999 Delivered-To: freebsd-current@freebsd.org Received: from burka.carrier.kiev.ua (burka.carrier.kiev.ua [193.193.193.107]) by hub.freebsd.org (Postfix) with ESMTP id 626691138E for ; Tue, 23 Feb 1999 07:37:40 -0800 (PST) (envelope-from netch@lucky.net) Received: (from netch@localhost) by burka.carrier.kiev.ua (8.Who.Cares/8.Who.Cares) id RAA07564; Tue, 23 Feb 1999 17:37:39 +0200 (EET) (envelope-from netch) Date: Tue, 23 Feb 1999 17:37:39 +0200 (EET) From: Valentin Nechayev Message-Id: <199902231537.RAA07564@burka.carrier.kiev.ua> To: freebsd-current@freebsd.org Subject: Re: Filesystem deadlock In-Reply-To: <36D1898A.6D9C7B44@sti.cz> Organization: Lucky Netch Incorporated User-Agent: tin/pre-1.4-980226 (UNIX) (FreeBSD/2.2.6-RELEASE (i386)) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Alexander N. Kabaev wrote: ANK> The following script reliably causes FreeBSD 4.0-CURRENT (and 3.1-STABLE ANK> as of today) to lookup. 2.2.8 and 3.0-RELEASE are not vulnerable, by the way. ANK> Shortly after this script is started, all disk ANK> activity stops and any attempt to create new process causes system to ANK> freese. No, creating of new process is possible, but no file can be opened. All memory activity does not hang: i.e., top redraws list of active processes. Also, command '( export A=1 B=2 set )' works - that is, fork() works. ANK> While in DDB, ps command shows, that all ten fgrep processes are ANK> sleeping on inode, all xargs are in waitpid and ANK> all sh processes are in wait. In original tests, any process can stop in 'inode' state when it try to open a file. For example, try type 'ps' at another terminal and You can see shell stopped in 'inode' state ;( ANK> #!/bin/sh ANK> for j in 1 2 3 4 5 6 7 8 9 10; do ANK> echo -n $i $j ~~ ;( ANK> nohup sh -c 'while :; do find /usr -type f | xargs fgrep zukabuka; ANK> done' \ >>/dev/null 2>&1 & ANK> echo ANK> done -- -- Valentin Nechayev netch@lucky.net II:LDXIII/MCMLXXII.CCC To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message