]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFV r361938:
authorCy Schubert <cy@FreeBSD.org>
Tue, 9 Jun 2020 05:39:37 +0000 (05:39 +0000)
committerCy Schubert <cy@FreeBSD.org>
Tue, 9 Jun 2020 05:39:37 +0000 (05:39 +0000)
commit7d748adc91eaf3a31357e66e567118e515917b5a
tree444cc64f9c465ffd90f9287886cccb0fa006eaf6
parentb266d2f2063bb7ed6daf390d726dcc6e9d0dcf1c
parent6d919a01040e46b22e218811127f0bac2a12f267
MFV r361938:

Upstream commit message:

[PATCH 3/3] WPS UPnP: Handle HTTP initiation failures for events more
properly

While it is appropriate to try to retransmit the event to another
callback URL on a failure to initiate the HTTP client connection, there
is no point in trying the exact same operation multiple times in a row.
Replve the event_retry() calls with event_addr_failure() for these cases
to avoid busy loops trying to repeat the same failing operation.

These potential busy loops would go through eloop callbacks, so the
process is not completely stuck on handling them, but unnecessary CPU
would be used to process the continues retries that will keep failing
for the same reason.

Obtained from: https://w1.fi/security/2020-1/\
0003-WPS-UPnP-Handle-HTTP-initiation-failures-for-events-.patch
MFC after: 3 days
Security: VU#339275 and CVE-2020-12695
contrib/wpa/src/wps/wps_upnp_event.c