Re: greybus: CAP IMS/auth memcpy not capped to ioctl buffer

From: Greg KH

Date: Fri Sep 04 2026 - 00:31:54 EST


On Thu, Sep 03, 2026 at 11:35:13PM +0530, Suraj Theekshana wrote:
> Reproduce (no Greybus hardware)
> ===============================
>
> git clone --depth 1 https://github.com/torvalds/linux.git
> # tree used: 8ab1afb
>
> gcc -fsanitize=address -g -O0 -fno-builtin -U_FORTIFY_SOURCE \
> -I gb-poc \
> -I linux/drivers/staging/greybus \
> -I linux/include/linux/greybus \
> gb-poc/poc_cap_headers.c -o poc_cap_headers
>
> ./poc_cap_headers
> ./poc_cap_headers auth

That's not a reproducer if you don't have the hardware, right?

> Files in the attached zip
> =========================

As Willy said, please just provide a patch, like the documentation asked
for, that you have tested with your reproducer.

thanks,

greg k-h