On Wed, 24 Apr 2024 21:44:17 +0700, Bui Quang Minh wrote: > I found that some drivers contains an out-of-bound read pattern like this > > kern_buf = memdup_user(user_buf, count); > ... > sscanf(kern_buf, ...); > > The sscanf can be replaced by some other string-related functions. This > pattern can lead to out-of-bound read of kern_buf in string-related > functions. > > [...] Applied to 6.10/scsi-queue, thanks! [3/6] bfa: ensure the copied buf is NUL terminated https://git.kernel.org/mkp/scsi/c/13d0cecb4626 [4/6] qedf: ensure the copied buf is NUL terminated https://git.kernel.org/mkp/scsi/c/d0184a375ee7 -- Martin K. Petersen Oracle Linux Engineering