This change goes as a separate patch for documentation purposes. Suggested by Linus Torvalds. Fixes the problem pointed out by Austin Clements. Currently, when the task execs it could be killed by the fatal signal sent by the posix timer, because exec flushes the signal handlers. See http://bugzilla.kernel.org/show_bug.cgi?id=10460 This is a user visible change. With this patch sys_timer_delete() discards the pending signal which was generated by the timer. This change goes as a separate patch for documentation purposes. We have many options how to set SIGQUEUE_CANCELLED while detroying the timer. We could set this flag in release_posix_timer() before calling sigqueue_free(), or add the new "int cancel" argument to sigqueue_free(), but since sigqueue_free() plays with q->flags anyway and nobody else uses this function, this patch changes sigqueue_free() to set SIGQUEUE_CANCELLED unconditionally. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> --- 25/kernel/signal.c~6_USE_CANCELLED 2008-05-17 17:40:09.000000000 +0400 +++ 25/kernel/signal.c 2008-05-17 18:07:10.000000000 +0400 @@ -1246,7 +1246,7 @@ void sigqueue_free(struct sigqueue *q) * __exit_signal()->flush_sigqueue(). */ spin_lock_irqsave(lock, flags); - q->flags &= ~SIGQUEUE_PREALLOC; + q->flags = SIGQUEUE_CANCELLED; /* clears SIGQUEUE_PREALLOC */ /* * If it is queued it will be freed when dequeued, * like the "regular" sigqueue. --
| Christoph Lameter | [04/14] vcompound: Core piece |
| Rafael J. Wysocki | 2.6.24-rc4-git5: Reported regressions from 2.6.23 |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Andrew Morton | Re: 2.6.21-rc2-mm1 |
git: | |
| Ken Pratt | pack operation is thrashing my server |
| Kyle Moffett | Using GIT to store /etc (Or: How to make GIT store all file permission bits) |
| Nicolas Pitre | Re: Cleaning up git user-interface warts |
| Toby White | Using Filemerge.app as a git-diff viewer |
| Richard Stallman | Real men don't attack straw men |
| Peter | OpenBSD as Virtualbox guest |
| Richard Daemon | OpenBSD 4.3 running in VirtualBox? Anyone have it working properly? |
| Mark Zimmerman | alix 2c3 bios version |
| Christoph Hellwig | Re: silent semantic changes with reiser4 |
| Al Boldi | Re: [RFD] Incremental fsck |
| Theodore Tso | Re: [RFC 0/13] extents and 48bit ext3 |
| Josef Jeff Sipek | [PATCH 22 of 23] Unionfs: Unlink |
