On 10/12, Andrew Morton wrote:No, the reason is that pthread_join() succeeds while it shouldn't. The main thread does exit_group() and kills the sub-thread sleeping in nanosleep. ERESTART_RESTARTBLOCK is not delivered to the user-space (sub-thread is dying), it is just reported by gdb. I bet something like this void *threda(void *arg) { for (;;) pause(); return NULL; } int main(void) { pthread_t tid; pthread_create(&tid, NULL, thread, NULL); pthread_join(tid, NULL); return 0; } won't work as well. Because do_fork() doesn't use parent_tidptr. At all! So it is very clear why 2.6.23-mm1 is broken. This? http://marc.info/?l=linux-mm-commits&m=118712242002039 Pavel, this patch has a subtle difference compared to what we discussed on containers list. It moves put_user(parent_tidptr) from copy_process() to do_fork(), so we don't report child's pid if copy_process() failed. I do not think this is bad, but Eric seems to disagree with such a change. But I can't understand why Andrew sees the same problem _after_ this patch! And which patch removed the "put_user(nr, parent_tidptr)" chunk? Andrew, could I get the kernel source after bisection somehow? (I am not familiar with guilt, will try to study it later) Mathieu, could you try the patch below? Oleg. --- kernel/fork.c~ 2007-10-13 15:41:35.000000000 +0400 +++ kernel/fork.c 2007-10-13 15:41:41.000000000 +0400 @@ -1443,6 +1443,9 @@ long do_fork(unsigned long clone_flags, task_pid_nr_ns(p, current->nsproxy->pid_ns) : task_pid_vnr(p); + if (clone_flags & CLONE_PARENT_SETTID) + put_user(nr, parent_tidptr); + if (clone_flags & CLONE_VFORK) { p->vfork_done = &vfork; init_completion(&vfork); -
| Linus Torvalds | Linux 2.6.27-rc8 |
| Trent Piepho | [PATCH] [POWERPC] Improve (in|out)_beXX() asm code |
| Satyam Sharma | Re: 2.6.23-rc4-mm1 "no CRC" MODPOST warnings |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
git: | |
| Bill Lear | Dangers of working on a tracking branch |
| Jeff King | Re: What's cooking in git/spearce.git (topics) |
| Jason Garber | git push [rejected] question |
| Maxim Gordienko | [GIT-P4] usage under Windows |
| Richard Stallman | Real men don't attack straw men |
| Leon Dippenaar | New tcp stack attack |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Brandon Lee | DELL PERC 5iR slow performance |
| Jeff Garzik | Re: [PATCH] drivers/net: remove network drivers' last few uses of IRQF_SAMPLE_RANDOM |
| Paul Moore | [PATCH v7 00/17] Labeled networking patches for 2.6.28 |
| Denys Vlasenko | Re: bnx2 dirver's firmware images |
| Herbert Xu | Re: csum offload and af_packet |
