From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de ([195.135.220.15]:43683 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1425299AbcBRI6c (ORCPT ); Thu, 18 Feb 2016 03:58:32 -0500 Date: Thu, 18 Feb 2016 09:58:25 +0100 From: David Sterba To: Anand Jain Cc: Chris Mason , Dan Carpenter , Josef Bacik , kernel-janitors@vger.kernel.org, linux-btrfs@vger.kernel.org Subject: Re: [patch] btrfs: array overflow in btrfs_ioctl_rm_dev_v2() Message-ID: <20160218085825.GU4374@suse.cz> Reply-To: dsterba@suse.cz References: <20160218050109.GA7781@mwanda> <56C56F3C.3030408@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <56C56F3C.3030408@oracle.com> Sender: linux-btrfs-owner@vger.kernel.org List-ID: On Thu, Feb 18, 2016 at 03:14:04PM +0800, Anand Jain wrote: > > > Thanks Dan. > Chris pointed out as well. We are working on it.. In for next since yesterday. > Just one concern when device is added the max device length is > BTRFS_PATH_NAME_MAX. However below fix is proper from the vol_args > perspective. Yeah, there's mess in the various PATH constants, but they're all > 4000 and that should be enough for most uses.