From: Sergey Vlasov <vsu@altlinux.ru>
To: ALT Linux kernel packages development <devel-kernel@altlinux.ru>
Subject: [d-kernel] Re: Fw: [Comm] Обновил ядро до 2.4.20-alt8, теперь не работает ps
Date: Thu, 7 Aug 2003 15:29:14 +0400
Message-ID: <20030807152914.342bbce7.vsu@altlinux.ru> (raw)
In-Reply-To: <20030806172720.GA12412@basalt.office.altlinux.org>
On Wed, 6 Aug 2003 21:27:21 +0400
"Dmitry V. Levin" <ldv@altlinux.org> wrote:
> On Wed, Aug 06, 2003 at 07:09:50PM +0400, Sergey Vlasov wrote:
> > Если у меня 2.4.20-alt8 скомпилировалось так же, то упало вот здесь
> > (include/linux/sched.h):
> >
> > #define is_dumpable(tsk) ((tsk)->task_dumpable && (tsk)->mm->dumpable)
> >
> > поскольку (tsk)->mm оказался NULL.
> >
> > В 2.4.21 здесь написано:
> >
> > #define is_dumpable(tsk) ((tsk)->task_dumpable && (tsk)->mm && (tsk)->mm->dumpable)
>
> Да, похоже.
>
> А как это воспроизводить?
Очень просто:
#include <unistd.h>
int main(void)
{
if (fork() == 0) {
_exit(0);
}
sleep(100000);
return 0;
}
Либо создать зомби любым другим способом. После этого ps при запуске
от root (либо cat /proc/$zombie_pid/environ) вызывает Oops.
prev parent reply other threads:[~2003-08-07 11:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-06 15:09 [d-kernel] " Sergey Vlasov
2003-08-06 17:27 ` Dmitry V. Levin
2003-08-07 11:01 ` Dmitry V. Levin
2003-08-07 11:15 ` [d-kernel] " Sergey Vlasov
2003-08-07 15:45 ` Sergey Vlasov
2003-08-07 11:29 ` Sergey Vlasov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030807152914.342bbce7.vsu@altlinux.ru \
--to=vsu@altlinux.ru \
--cc=devel-kernel@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux kernel packages development
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
public-inbox-index devel-kernel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git