Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1196579

Re: [patch] inherited events not signalling parent on overflow

From Vince Weaver <vincent.weaver@maine.edu>
Newsgroups linux.kernel
Subject Re: [patch] inherited events not signalling parent on overflow
Date 2015-07-31 06:40 +0200
Message-ID <pSagV-3gr-3@gated-at.bofh.it> (permalink)
References <pvblM-4mw-31@gated-at.bofh.it> <pvm7w-3Bp-25@gated-at.bofh.it> <pA2hP-2Zh-7@gated-at.bofh.it> <pA6bM-eK-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, 11 Jun 2015, Peter Zijlstra wrote:

> Right, I had a peek earlier at how fasync worked but came away confused.
> 
> Today I seem to have had better luck. Installing fasync allocates memory
> and sets filp->f_flags |= FASYNC, which upon the demise of the file
> descriptor ensures the allocation is freed.
> 
> Now for perf, we can have the events stick around for a while after the
> original FD is dead because of references from child events. With the
> above patch these events would still have a pointer into this free'd
> fasync. This is bad.
> 
> A further problem with the patch is that if the parent changes its
> fasync state the children might lag and again have pointers into dead
> space.
> 
> All is not lost though; does something like the below work?

I had meant to reply to this earlier but maybe I forgot.

I've been running with this patch for a month now and haven't had 
problems, and it fixes the issue of inherited signals.  So it no one else 
has issues with the patch it would be nice if it could be pushed upstream.

Thanks,

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

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [patch] inherited events not signalling parent on overflow Vince Weaver <vincent.weaver@maine.edu> - 2015-07-31 06:40 +0200

csiph-web