Re: [PATCH] usb: gadget: f_tcm: put the overlapped command's request back on ep_cmd

From: Yehyeong Lee

Date: Fri Nov 20 2026 - 10:06:17 EST


On Thu, Nov 19, 2026 at 02:21:37PM +0000, sashiko-bot@xxxxxxxxxx wrote:
> [Severity: Critical]
> This problem wasn't introduced by this patch, but can usbg_aborted_task()
> dereference a NULL stream->req_out pointer in Bulk-Only Transport (BOT)
> mode [1]?
>
> Aborting a task in BOT mode therefore causes a NULL pointer dereference and
> kernel panic.

Right, this is a real bug, but it needs a non-default setup. With
emulate_tas at its default of 1 the core sends TASK ABORTED instead of
calling .aborted_task(), and a BOT session can't send a TMF itself. So
it takes a LUN RESET from a second fabric sharing the backstore, with
emulate_tas set to 0. It's an Oops in the target_completion worker, not
a panic.

Fixed in a separate patch:
https://lore.kernel.org/all/20261120113956.3071640-1-yhlee@xxxxxxxxxxxxxxxxxx/

Best regards,
Yehyeong Lee