[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <37ae1c44-fe7e-3f0f-0eea-0c684fe04d50@suse.com>
Date: Wed, 26 Jul 2023 10:33:22 +0200
From: Oliver Neukum <oneukum@...e.com>
To: Dingyan Li <18500469033@....com>,
Greg KH <gregkh@...uxfoundation.org>
Cc: Oliver Neukum <oneukum@...e.com>, stern@...land.harvard.edu,
sebastian.reichel@...labora.com, linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] USB: add usbfs ioctl to get specific superspeedplus rates
On 25.07.23 18:11, Dingyan Li wrote:
> In proc_conninfo_ex(), the number of returned bytes is determined by
> the smaller number between sizeof(struct usbdevfs_conninfo_ex) and a
> user specified size. So if we only append new members to the end of
> struct usbdevfs_conninfo_ex, it won't impact the bytes in the beginning.
You have just caused memory corruption in user space by overwriting what
was right behind the buffer of the agreed upon size. Or, not much better,
caused a segmentation fault.
Regards
Oliver
Powered by blists - more mailing lists