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

2017-08-24 Thread Naohiro Aota
__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 --- fs/btrfs/relocation.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/rel

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

2017-08-24 Thread Nikolay Borisov
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 This patch should also have: Fixes: 6bdf131fac23 ("Btrf

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

2017-09-06 Thread David Sterba
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. > > > > Signe