Re: [RESEND PATCH] btrfs: Fix UAF when cleaning up fs_devs with a single stale device

2018-02-02 Thread David Sterba
On Tue, Jan 30, 2018 at 04:07:37PM +0200, Nikolay Borisov wrote: > Commit 4fde46f0cc71 ("Btrfs: free the stale device") introduced > btrfs_free_stale_device which iterates the device lists for all > registered btrfs filesystems and deletes those devices which aren't > mounted. In a btrfs_devices

[RESEND PATCH] btrfs: Fix UAF when cleaning up fs_devs with a single stale device

2018-01-30 Thread Nikolay Borisov
Commit 4fde46f0cc71 ("Btrfs: free the stale device") introduced btrfs_free_stale_device which iterates the device lists for all registered btrfs filesystems and deletes those devices which aren't mounted. In a btrfs_devices structure has only 1 device attached to it and it is unused then

Re: [PATCH] btrfs: Fix UAF

2018-01-29 Thread Anand Jain
On 01/29/2018 03:01 PM, Nikolay Borisov wrote: On 29.01.2018 04:38, Anand Jain wrote: On 01/26/2018 09:20 PM, Nikolay Borisov wrote: Commit 4fde46f0cc71 ("Btrfs: free the stale device") introduced btrfs_free_stale_device which iterates the device lists for all registered btrfs

Re: [PATCH] btrfs: Fix UAF

2018-01-28 Thread Nikolay Borisov
On 29.01.2018 04:38, Anand Jain wrote: > > > On 01/26/2018 09:20 PM, Nikolay Borisov wrote: >> Commit 4fde46f0cc71 ("Btrfs: free the stale device") introduced >> btrfs_free_stale_device which iterates the device lists for all >> registered btrfs filesystems and deletes those devices which

Re: [PATCH] btrfs: Fix UAF

2018-01-28 Thread Anand Jain
On 01/26/2018 09:20 PM, Nikolay Borisov wrote: Commit 4fde46f0cc71 ("Btrfs: free the stale device") introduced btrfs_free_stale_device which iterates the device lists for all registered btrfs filesystems and deletes those devices which aren't mounted. In a btrfs_devices structure has only 1

[PATCH] btrfs: Fix UAF

2018-01-26 Thread Nikolay Borisov
Commit 4fde46f0cc71 ("Btrfs: free the stale device") introduced btrfs_free_stale_device which iterates the device lists for all registered btrfs filesystems and deletes those devices which aren't mounted. In a btrfs_devices structure has only 1 device attached to it and it is unused then