Re: [PATCH] gfs2: Fix iomap buffer head reference counting bug

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

 



On Mon, Nov 19, 2018 at 05:27:18PM +0100, Andreas Gruenbacher wrote:
> commit c26b5aa8ef0d46035060fded475e6ab957b9f69f upstream.
> 
> GFS2 passes the inode buffer head (dibh) from gfs2_iomap_begin to
> gfs2_iomap_end in iomap->private.  It sets that private pointer in
> gfs2_iomap_get.  Users of gfs2_iomap_get other than gfs2_iomap_begin
> would have to release iomap->private, but this isn't done correctly,
> leading to a leak of buffer head references.
> 
> To fix this, move the code for setting iomap->private from
> gfs2_iomap_get to gfs2_iomap_begin.
> 
> Fixes: 64bc06bb32 ("gfs2: iomap buffered write support")
> Cc: stable@xxxxxxxxxxxxxxx # v4.19

Now applied, thanks.

greg k-h



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux