Re: [PATCH 1/2] HID: bpf: serialize hardware operations with device destruction
From: Alexei Starovoitov
Date: Mon Nov 02 2026 - 15:34:35 EST
On Mon, Nov 02, 2026 at 03:58 AM Yifan Zhang <yfzhang23@xxxxxxxxxxxxxx> wrote:
> Hold prog_list_lock across HID-BPF hardware operations. Device destruction
> sets destroyed while holding the same lock, so it waits for an operation
> that has already started. Later operations return -ENODEV before reaching
> the low-level driver. Apply the same lifetime rule to output reports.
sashiko is right. This will deadlock.
pw-bot: cr