Re: RE: Injection point: fix race condition between attach and cleanup

Started by Koshi Shibagaki (Fujitsu)16 days ago2 messageshackers

Thread notes

1 note#bug
hackorum-bot#bug
hackorum-bot
2 days ago

@global #bug

#bug
Jump to latest
#1Koshi Shibagaki (Fujitsu)
shibagaki.koshi@fujitsu.com

Kuroda-san

InjectionPointDetach()
is implemented in the core, but the condition is controlled in the extension side
thus it's opaque from the core.

As an alternative, could we let the test module supply a callback,
similar to a hook, that checks whether an injection point may be detached?

The callback would run under the same lock as the removal, keeping
checks such as PID matching in the test module.

However, this would still make the core API more complicated. Since I
cannot think of another concrete use case, I am not sure the benefit
justifies adding this mechanism. Would it nevertheless be worth
considering as an alternative?

Koshi Shibagaki
FUJITSU LIMITED
https://www.fujitsu.com/

#2Koshi Shibagaki (Fujitsu)
shibagaki.koshi@fujitsu.com
In reply to: Koshi Shibagaki (Fujitsu) (#1)

Sorry, I accidentally sent my previous message as a new thread rather than a reply. Please disregard that message.

Koshi Shibagaki
FUJITSU LIMITED
https://www.fujitsu.com/