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
ne...@lucky.net
II:LDXIII/MCMLXXII.CCC


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to