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

Aperta
#9,383 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
android, dart, linux
Ambito
mobile, networking

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Dart
Stelle
16.9k
Fork
11k
Merge medio
16h 25m
PR unite (30g)
128

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di getlantern/lantern

Tutte le issue di getlantern/lantern

Issue simili

Altre issue su Dart

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.