Re: fix buffer refcount races v2

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

 



On Thu, 16 Jan 2025 07:01:40 +0100, Christoph Hellwig wrote:
> this series fixes two races in buffer refcount handling, that I've
> so far not actually seen in real life, but only found while reading
> through the buffer cache code to understand some of the stranger looking
> locking decisions.
> 
> One can cause a buffer about to be freed to be returned from
> xfs_buf_insert.  I think this one is extremely unlikely to be hit,
> as it requires the buffer to not be present for the initial lookup,
> but already being evicted when trying to add the new buffer.  But
> at least the fix is trivial.
> 
> [...]

Applied to for-next, thanks!

[1/2] xfs: check for dead buffers in xfs_buf_find_insert
      commit: 07eae0fa67ca4bbb199ad85645e0f9dfaef931cd
[2/2] xfs: fix buffer lookup vs release race
      commit: ee10f6fcdb961e810d7b16be1285319c15c78ef6

Best regards,
-- 
Carlos Maiolino <cem@xxxxxxxxxx>





[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux