Skip to content

service: Both Cancel and Stop Online Checks where Appropriate

Grant Erickson connman 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2service: Add support for 'CONNMAN_IPCONFIG_TYPE_ALL' to 'cancel_online_check'.src/service.c+28 -100 replies
2/2service: Both cancel and stop online checks where appropriate.src/service.c+5 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] service: Both Cancel and Stop Online Checks where Appropriate

This both cancels, via 'cancel_online_check', and stops, via '__connman_wispr_stop' online checks on service disconnect or free. The former terminates any in-flight or recurring check activity in "service.c" and the latter terminates the same in "wispr.c".

Failure to cancel as well as stop can lead to a use-after-free fault in one-shot or continuous online check mode when a latent online check reschedule timer fires after the service has been disconnected or deallocated.

To support these cancelations with a single 'cancel_online_check' function call, support is added for passing 'CONNMAN_IPCONFIG_TYPE_ALL' to 'cancel_online_check' as the IP configuration type parameter.

Grant Erickson (2):
service: Add support for 'CONNMAN_IPCONFIG_TYPE_ALL' to
'cancel_online_check'.
service: Both cancel and stop online checks where appropriate.

 src/service.c | 43 +++++++++++++++++++++++++++++++++----------
 1 file changed, 33 insertions(+), 10 deletions(-)
Signature · 1 line
2.42.0