Hi Jonathan,
I've sent my previous mail before I received your's. :-/
Jonathan Nieder wrote:
> > 10/0/0 root@acromantula:pts/4 18:53:47 [~] # ps auxwwwf | fgrep git
> > abe 11352 77.1 0.0 4552 596 pts/2 R+ 18:53 0:10 |
> > | \_ strace -f -e fork git status
> > abe 11353 6.3 0.1 24632 6848 pts/2 S+ 18:53 0:00 |
> > | \_ git status
> > abe 11354 7.3 0.1 24632 6856 pts/2 S+ 18:53 0:00 |
> > | \_ git status --porcelain
> > abe 11355 8.0 0.1 24632 6856 pts/2 S+ 18:53 0:00 |
> > | \_ git status --porcelain
> > abe 11358 9.8 0.1 24632 6852 pts/2 S+ 18:53 0:00 |
> > | \_ git status --porcelain
>
> Yeah, this is a submodule issue.
Indeed. See my other mail.
> What is the output of
>
> git ls-files -s | grep ^160000 | cut -d$'\t' -f2 | xargs ls -ld
For the proof of concept example in my other mail:
# git ls-files -s | grep ^160000 | cut -d$'\t' -f2 | xargs ls -ld
drwxr-xr-x 3 root root 80 Jun 5 21:12 foo
On the original system:
drwxr-xr-x 16 root root 4096 Jun 10 2011 etc/apache2
drwxr-xr-x 3 root root 4096 Jun 10 2011 etc/dokuwiki
drwxr-xr-x 3 root root 4096 Apr 5 2011 export/data1/wiki/global-include
drwxr-xr-x 3 root root 4096 Jun 10 2011 usr/share/dokuwiki/inc/auth
drwxr-xr-x 7 root root 4096 Jun 10 2011
var/lib/dokuwiki/lib/plugins/discussion
drwxr-xr-x 4 root root 4096 Jun 10 2011
var/lib/dokuwiki/lib/plugins/svgpureInsert
drwxr-xr-x 6 root root 4096 Jun 10 2011 var/lib/dokuwiki/lib/tpl
Doesn't look too suspicious to me. But it makes me suspecting that
there are more options where a "chmod 700" would cause such breakage.
:-)
> > So this issue has quite some potential to bring down a system within
> > minutes and trigger an OOM condition.
>
> That's a general feature of fork bombs.
Sure. :-)
> I think we should try to figure out why git is recursing into the
> same repository again and again
Definitely. That's why I wrote this bug report. :-)
Regards, Axel
--
,''`. | Axel Beckert <[email protected]>, http://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
`- | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]