wireguard: Clear keys after suspend despite CONFIG_ANDROID=y
authorBen Hutchings <benh@debian.org>
Thu, 7 Jul 2022 16:58:43 +0000 (18:58 +0200)
committerSalvatore Bonaccorso <carnil@debian.org>
Fri, 29 Sep 2023 04:25:15 +0000 (05:25 +0100)
commitbeeff351d5597a228c2b43e1749aa30cb697b37d
tree8239137b925a534a63434ee7ae0cee7883616632
parenta989351a411e940c57e022e8e31624e65499754e
wireguard: Clear keys after suspend despite CONFIG_ANDROID=y

Forwarded: not-needed

WireGuard assumes that CONFIG_ANDROID implies Android power
management, i.e. user-space suspending the system automatically at
short intervals, and so does not clear keys after a suspend/resume
cycle.  Debian systems don't do that kind of power management but we
do set CONFIG_ANDROID on some architectures as a dependency of Binder.

In 5.20, CONFIG_PM_USERSPACE_AUTOSLEEP will be introduced to tell the
kernel that this kind of power management is in use, and
CONFIG_ANDROID will be removed.  For now, remove this one test that
does the wrong thing for us.

References: https://lwn.net/Articles/899743/

Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name wireguard-ignore-config_android.patch
drivers/net/wireguard/device.c