Re: [PATCH] fix regression by 8c43ba62('filesetup: align layout buffer')

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

 



On 09/01/2017 06:24 AM, kusumi.tomohiro@xxxxxxxxx wrote:
> From: Tomohiro Kusumi <tkusumi@xxxxxxxxxx>
> 
> 8c43ba62('filesetup: align layout buffer') needs to use the same size
> for fio_memalign() and fio_memfree().
> 
> If the size `bs' gets decreased while in the write(2) loop, the size
> for freeing is smaller than it should be, and results in segfault
> by dereferencing ->offset of the footer via irrelevant address somewhere
> in user data.

Good catch, should have been reviewed more carefully. Applied.

-- 
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux