On 2018年05月17日 17:46, james harvey wrote:
> Looks like Qu may have taken care of corrupted compressed data with
> NODATASUM from causing causing random kernel memory corruption.
>
> As long as the compressed data was valid and could be uncompressed,
> there were no problems, even on data marked
Thanks again.
David, could you apply this on top of my v7 patch in for-next tree?
Regards,
Tomohiro Misono
On 2018/05/31 15:21, Dan Carpenter wrote:
> memdup_user() returns error pointers, it doesn't return NULL.
>
> Fixes: 01141b08dee5 ("btrfs: Add unprivileged ioctl which returns subvolume's
memdup_user() returns error pointers, it doesn't return NULL.
Fixes: 01141b08dee5 ("btrfs: Add unprivileged ioctl which returns subvolume's
ROOT_REF")
Signed-off-by: Dan Carpenter
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index ff5018587bd9..d8dd4504bdab 100644
--- a/fs/btrfs/ioctl.c
+++
Add unprivileged version of ino_lookup ioctl BTRFS_IOC_INO_LOOKUP_USER
to allow normal users to call "btrfs subvolume list/show" etc. in
combination with BTRFS_IOC_GET_SUBVOL_INFO/BTRFS_IOC_GET_SUBVOL_ROOTREF.
This can be used like BTRFS_IOC_INO_LOOKUP but the argument is
different. This is becau
Thanks for the reporting.
I will update the patch.
Regards,
Tomohiro Misono
On 2018/05/30 19:19, Dan Carpenter wrote:
> Hello Tomohiro Misono,
>
> The patch 56bfce6502b7: "btrfs: Add unprivileged version of
> ino_lookup ioctl" from May 16, 2018, leads to the following static
> checker warning:
>
On 05/30/2018 11:33 PM, David Sterba wrote:
> On Wed, May 30, 2018 at 02:49:10PM +0800, Su Yue wrote:
>> btrfs_alloc_path() may fail due to no enough memory,
>> so let the function return -ENOMEM instead of -ENOENT is better.
>>
>> Signed-off-by: Su Yue
>
> Reviewed-by: David Sterba
>
> Thank
On 28.05.2018 19:12, David Sterba wrote:
> On Mon, May 28, 2018 at 03:26:58PM +0300, Nikolay Borisov wrote:
>> dmesg looks like:
>> [6.649213] WARNING: CPU: 0 PID: 2838 at fs/btrfs/transaction.c:303
>> record_root_in_trans+0x38/0xd0
>
> Found in the logs. I reported it to the p
On Tue, May 29, 2018 at 12:24:31PM -0700, Omar Sandoval wrote:
> On Tue, May 22, 2018 at 09:59:50AM -0700, Omar Sandoval wrote:
> > From: Omar Sandoval
> >
> > btrfs_truncate() uses two variables for error handling, ret and err (if
> > this sounds familiar, it's because btrfs_truncate_inode_items
tree: https://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-next.git
blk-iolatency
head: 6fd950dfd5f71e7eba6d0763c6861669cec7963f
commit: f624090ed7dadc44d46a8a0b4381ab286c9f45fb [12/13] block: introduce
blk-iolatency io controller
config: i386-allyesconfig (attached as .config)
compile
On Wed, May 02, 2018 at 03:19:32PM +0300, Nikolay Borisov wrote:
> Currently this function handles both the READ and WRITE dio cases. This
> is facilitated by a bunch of 'if' statements, a goto short-circuit
> statement and a very perverse aliasing of "!created"(READ) case
> by setting lockstart =
On Wed, May 30, 2018 at 02:49:10PM +0800, Su Yue wrote:
> btrfs_alloc_path() may fail due to no enough memory,
> so let the function return -ENOMEM instead of -ENOENT is better.
>
> Signed-off-by: Su Yue
Reviewed-by: David Sterba
Thanks. I've audited all return codes after failed path allocati
On Wed, May 30, 2018 at 04:48:56PM +0800, Su Yue wrote:
> In cow_file_range(), create_io_em() may fail, but its return value is
> not recorded.
> Then return value may be 0 even it failed which is a wrong behavior.
>
> Let cow_file_range() return PTR_ERR(em) if create_io_em() failed.
>
> Signed-o
On Wed, May 30, 2018 at 12:58:24PM +0800, Qu Wenruo wrote:
>
> Reported-by: James Harvey
> Signed-off-by: Qu Wenruo
> ---
> changelog:
> v3->v4:
Patch replaced, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.or
On Wed, May 30, 2018 at 11:00:38AM +0800, Gu Jinxiang wrote:
> From: Gu JinXiang
>
> Since commit 7775c8184ec0
> ("btrfs: remove unused parameter from btrfs_subvolume_release_metadata")
> parameter qgroup_reserved is not used by caller
> of function btrfs_subvolume_reserve_metadata.
> So remove i
Hello Tomohiro Misono,
The patch 56bfce6502b7: "btrfs: Add unprivileged version of
ino_lookup ioctl" from May 16, 2018, leads to the following static
checker warning:
fs/btrfs/ioctl.c:2478 btrfs_search_path_in_tree_user()
error: 'temp_inode' dereferencing possible ERR_PTR()
fs/bt
On 30.05.2018 11:48, Su Yue wrote:
> In cow_file_range(), create_io_em() may fail, but its return value is
> not recorded.
> Then return value may be 0 even it failed which is a wrong behavior.
>
> Let cow_file_range() return PTR_ERR(em) if create_io_em() failed.
>
> Signed-off-by: Su Yue
Re
In cow_file_range(), create_io_em() may fail, but its return value is
not recorded.
Then return value may be 0 even it failed which is a wrong behavior.
Let cow_file_range() return PTR_ERR(em) if create_io_em() failed.
Signed-off-by: Su Yue
---
fs/btrfs/inode.c | 4 +++-
1 file changed, 3 inser
On 30.05.2018 10:25, Misono Tomohiro wrote:
> Print tree name instead of number to make output more readable.
>
> Example:
> [before]
>extent data backref root 5 objectid 257 offset 16384 count 1
>
>tree block backref root 18446744073709551607
>
> [after]
>extent data backref r
Print tree name instead of number to make output more readable.
Example:
[before]
extent data backref root 5 objectid 257 offset 16384 count 1
tree block backref root 18446744073709551607
[after]
extent data backref root FS_TREE objectid 257 offset 16384 count 1
tree block bac
On 2018年05月30日 15:01, Nikolay Borisov wrote:
>
>
> On 30.05.2018 07:40, Qu Wenruo wrote:
>> Under certain KVM load and LTP tests, we are possible to hit the
>> following calltrace if quota is enabled:
>> --
>> BTRFS critical (device vda2): unable to find logical 8820195328 length 4096
>> B
On 30.05.2018 09:58, Anand Jain wrote:
> btrfs_free_stale_devices() is a static function drop the btrfs prefix.
>
> Signed-off-by: Anand Jain
Nit: I think this patch could be dropped, it's not a set-in-stone rule
that static function shouldn't have btrfs_ prefix. Personally, I'd
prefer all su
On 30.05.2018 07:40, Qu Wenruo wrote:
> Under certain KVM load and LTP tests, we are possible to hit the
> following calltrace if quota is enabled:
> --
> BTRFS critical (device vda2): unable to find logical 8820195328 length 4096
> BTRFS critical (device vda2): unable to find logical 882019
On 30.05.2018 09:55, Misono Tomohiro wrote:
> On 2018/05/30 15:28, Nikolay Borisov wrote:
>>
>>
>> On 30.05.2018 07:55, Misono Tomohiro wrote:
>>> Print tree name instead of number to make output more readable.
>>>
>>> Signed-off-by: Misono Tomohiro
>>> ---
>>> print-tree.c | 5 +++--
>>> 1 fi
23 matches
Mail list logo