Re: [PATCH] btrfs-progs: Fix segmentation fault

2013-07-03 Thread David Sterba
On Sat, Jun 22, 2013 at 02:39:21PM +0900, Kusanagi Kouichi wrote: > 'btrfs subvolume delete' crashes with segv if it runs in a detached mount. One does not even need to do the lazy unmount. If the there are 2 processes attempting to delete the same snapshot and one deletes the snapshot directory e

Re: [PATCH] btrfs-progs: Fix segmentation fault

2013-07-02 Thread David Sterba
On Sat, Jun 22, 2013 at 02:39:21PM +0900, Kusanagi Kouichi wrote: > @@ -224,12 +224,10 @@ again: > goto out; > } > > - cpath = realpath(path, 0); > - dname = strdup(cpath); > + dname = strdup(path); We want realpath() here, and when it returns NULL, there was an e