lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20080506045811.GA23821@night.netis.ru>
Date:	Tue, 6 May 2008 08:58:11 +0400
From:	"Alexander V. Lukyanov" <lav@...is.ru>
To:	linux-kernel@...r.kernel.org
Subject: unkillable process during core dump

Hello!

I have noticed that a process doing a core dump is unkillable.
Now imagine that there are many such processes and they are large.
An example:

#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
int main() {
        calloc(1000000000,1);
        signal(SIGCLD,SIG_IGN);
        while(1) {
                if(fork()==0) {
                        raise(SIGABRT);
                        _exit(0);
                }
                sleep(10);
        }
        return 0;
}

Try with large enough ulimit -c and with sysctl kernel.core_uses_pid=0.
You kill the parent, but the children are still doing their core dumps.

-- 
   Alexander.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ