Re: [PATCH] btrfs: fix NULL pointer dereference from free_reloc_roots()

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

 



On Fri, Aug 25, 2017 at 08:49:11AM +0300, Nikolay Borisov wrote:
> 
> 
> On 25.08.2017 08:15, Naohiro Aota wrote:
> > __del_reloc_root should be called before freeing up reloc_root->node.
> > If not, calling __del_reloc_root() dereference reloc_root->node, causing
> > the system BUG.
> > 
> > Signed-off-by: Naohiro Aota <naohiro.aota@xxxxxxx>
> 
> This patch should also have:
> 
> Fixes: 6bdf131fac23 ("Btrfs: don't leak reloc root nodes on error")
> Cc: <stable@xxxxxxxxxxxxxxx> # 4.9
> 
> With that:
> 
> Reviewed-by: Nikolay Borisov <nborisov@xxxxxxxx>

Reviewed-by: David Sterba <dsterba@xxxxxxxx>

I'll add the other tags, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux