On Feb 09, 2023 / 10:51, Sathya Prakash Veerichetty wrote: > On Thu, Jan 26, 2023 at 11:35 PM Shin'ichiro Kawasaki > <shinichiro.kawasaki@xxxxxxx> wrote: > > > > The function mpi3mr_get_all_tgt_info calculates min_entrylen which holds > > the valid entry length in alltgt_info. However, it does not refer > > min_entrylen when it calls sg_copy_from_buffer to copy the valid entries > > from alltgt_info to job->request_payload. Instead, it specifies the > > payload length which is larger than the alltgt_info size, then it causes > > "BUG: KASAN: slab-out-of-bounds". Fix the BUG by specifying the correct > > length referring the calculated min_entrylen. > > >>both this and the first patch could have been merged. We will do some more cleanup on this function and provide a new patch, we can hold 1 and 2 for now. I see. I will squash the first patch and the second patch in v5 series. -- Shin'ichiro Kawasaki