Re: [PATCH] usb: gadget: f_printer: prevent OOB write in GET_DEVICE_ID
From: Haofeng Li
Date: Fri Aug 21 2026 - 10:49:57 EST
Hi Greg,
You're right, thanks for the reminder.
The DeepSeek large language model assisted in finding this bug: it
helped locate the unbounded memcpy() in printer_func_setup() and
trace how pnp_string is stored via configfs. I then reproduced
the overflow with KASAN in a virtual machine.
I'll send a v2 with the tool usage noted in the changelog and an
Assisted-by: tag, per Documentation/process/generated-content.rst.
Best regards,
Haofeng