Re: [PATCH v2] qedi: Fix crash while reading debugfs attribute.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 15 Apr 2024 12:51:55 +0530, Manish Rangankar wrote:

> The qedi_dbg_do_not_recover_cmd_read() function invokes sprintf()
> directly on a __user pointer, which results into the crash.
> 
> To fix this issue, use a small local stack buffer for sprintf() and then
> call simple_read_from_buffer(), which in turns make the copy_to_user()
> call.
> 
> [...]

Applied to 6.10/scsi-queue, thanks!

[1/1] qedi: Fix crash while reading debugfs attribute.
      https://git.kernel.org/mkp/scsi/c/28027ec8e32e

-- 
Martin K. Petersen	Oracle Linux Engineering




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux