[Bug]: [Android 10 / EMUI 12] Kernel watchdog reset (AP_S_AWDT / HI_APWDT_LPM3) under QUIC/UDP load on Lantern v11 (Radiance)

Open
#9,383 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
android, dart, linux
Domain
mobile, networking

Research direction

Start by reading the attached lantern_android.log and tracing the Android connection setup for the Radiance TUN backend, UDP handling, and UID exclusion rules. The issue does not identify relevant source files or a failing test, and its kernel deadlock evidence does not isolate a cause. Done means reproducing the watchdog reset and confirming a fix or a documented workaround on the described device and workload.

Written by the indexing model from the issue text.

Description

What happened?
Environment
  • Device: Huawei Nova 5T (YAL-L61 / YAL-L21H, HiSilicon Kirin 980, arm64-v8a)
  • OS & Kernel: EMUI 12 (Android 10, Linux version 4.14.116)
  • Wi-Fi Chipset: hi1103 (wlan0)
  • Lantern Version: v11 Stable (Radiance core)
Issue Description

When connected to Lantern v11 on Wi-Fi (wlan0), sustained parallel UDP/QUIC traffic (e.g., downloading/updating apps in Google Play Store or scrolling video feeds in Instagram for ~5–10 minutes) causes a complete system freeze followed by a hard hardware watchdog reboot.

Kernel & Diagnostic Evidence
  1. Bootloader Reboot Reason (extracted via adb bugreport):

    reboot_reason=AP_S_AWDT
    exception_subtype=HI_APWDT_LPM3
    androidboot.bootreason=abnormal
    

    This confirms an Application Processor kernel-space deadlock (AP_S_AWDT) caught by the LPM3 power management controller (HI_APWDT_LPM3), rather than an app-level crash or OOM kill.

  2. Lantern Logs:

    • lantern-crash.log is 0 bytes because the kernel deadlocks before user-space exception handlers can write to disk.
    • In lantern_android.log, the session terminates abruptly after Connected to server with no Disconnecting or postServiceClose events, and the subsequent boot's log starts with 0x00 null bytes.
    • Note: Kernel iptables on EMUI 12 runs custom haware_firewall / xt_bpf chains (prog_hwnetd_skfilter_*), which may conflict with Radiance's TUN packet handling and automatic UID exclusion rules (Excluded com.eg.android.AlipayGphone, com.tencent.mm) under heavy UDP bursts.
Steps to Reproduce
  1. Run Lantern v11 Stable on a Kirin 980 / Android 10 (Kernel 4.14, EMUI 12) device.
  2. Connect to any server over Wi-Fi (wlan0).
  3. Start an app download in Google Play Store or browse Instagram Reels for 5–10 minutes.
  4. Device freezes completely and triggers an AP_S_AWDT hardware reboot.
Expected Behavior

The Radiance TUN backend should handle parallel UDP/QUIC traffic on Linux Kernel 4.14 without triggering a kernel driver deadlock or hardware watchdog reset (or provide an option to disable UDP/QUIC tunneling / UID filtering on older kernels).

Attachments
  • Attached lantern_android.log (13 KB) capturing the abrupt reset timestamp.

lantern_android.log

Version

11 and others

Which platform(s) does this affect?
  • Android
  • iOS
  • Desktop (Windows)
  • Desktop (MacOS)
  • Desktop (Linux)
Related Support Tickets

No response

Dominant language
Dart
Stars
16.9k
Forks
11k
Avg merge
16h 25m
Merged PRs (30d)
128

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getlantern/lantern

All issues in getlantern/lantern

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.