On 03/25, Atsushi Tsuji wrote:Hmm. Yes, group_send_sig_info() doesn't need tasklist_lock. But we take tasklist_lock to "freeze" the tasks list, so that we can't miss a new forked process. Same for __kill_pgrp_info(), we take tasklist to kill the whole group "atomically". However. Is it really needed? copy_process() returns -ERESTARTNOINTR if signal_pending(), and the new task is always placed at the tail of the list. Looks like nobody can escape the signal, at least fatal or SIGSTOP. If the signal is blocked/ignored or has a handler, we can miss a forked child, but this looks OK, we can pretend it was forked after we dropped tasklist_lock. Note also that copy_process() does list_add_tail_rcu(p->tasks) under ->siglock, this means kill_something_info() must see the new childs after group_send_sig_info() drops ->siglock. Except: We don't send the signal to /sbin/init. This means that (say) kill(-1, SIGKILL) can miss the task forked by init. Note that this task could be forked even before we start kill_something_info(), but without tasklist there is no guarantee we will see it on the ->tasks list. I think this is the only problem with this change. Eric, Roland? (Unfortunately, attach_pid() adds the task to the head of hlist, this means we can't avoid tasklist for __kill_pgrp_info). Oleg. --
| Rafael J. Wysocki | [Bug #11355] Regression in 2.6.27-rc2 when cross-building the kernel |
| David Miller | [GIT]: Networking |
| Robin Lee Powell | NFS hang + umount -f: better behaviour requested. |
| Artem Bityutskiy | [PATCH 11/22 take 3] UBI: user-interfaces unit |
git: | |
| David Symonds | Re: I don't want the .git directory next to my code. |
| Petr Baudis | [ANNOUNCE] TopGit - A different patch queue manager |
| Daniel Barkalow | Non-http dumb protocols |
| Kevin Ballard | Re: git on MacOSX and files with decomposed utf-8 file names |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| Linus Benedict Torvalds | Trying to answer ... |
| Linus Torvalds | Re: mget / mput = bad director components |
| Gerard A. Allan | BUG REPORT --- call chsvga (really call getkey) |
| c l | site-to-site vpn 4.0 to cisco 3000 |
| Darren Spruell | Re: OpenBSD as Virtualbox guest |
| Richard Stallman | Real men don't attack straw men |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
