[PATCH 0/6] ubifs: Fix wrong space calculation while doing budget

Zhihao Cheng posted 6 patches 3 years, 5 months ago
fs/ubifs/budget.c |  9 ++++-----
fs/ubifs/dir.c    | 18 +++++++++++++++++-
2 files changed, 21 insertions(+), 6 deletions(-)
[PATCH 0/6] ubifs: Fix wrong space calculation while doing budget
Posted by Zhihao Cheng 3 years, 5 months ago
This series of patches fix ubifs wrong budget space calculations,
which could make make_reservation() failed with ENOSPC error code
and let ubifs become read-only.

Zhihao Cheng (6):
  ubifs: Rectify space budget for ubifs_symlink() if symlink is
    encrypted
  ubifs: Rectify space budget for ubifs_xrename()
  ubifs: Add comments and debug info for ubifs_xrename()
  ubifs: Fix wrong dirty space budget for dirty inode
  ubifs: do_rename: Fix wrong space budget when target inode's nlink > 1
  ubifs: Reserve one leb for each journal head while doing budget

 fs/ubifs/budget.c |  9 ++++-----
 fs/ubifs/dir.c    | 18 +++++++++++++++++-
 2 files changed, 21 insertions(+), 6 deletions(-)

-- 
2.31.1
Re: [PATCH 0/6] ubifs: Fix wrong space calculation while doing budget
Posted by Zhihao Cheng 3 years, 4 months ago
在 2022/10/11 11:47, Zhihao Cheng 写道:

Hi. Richard
Just a reminding. Could you please look through following series(Some of 
them is sent several months ago), I wish these can be merged in 6.1, 
thanks a lot:

ubi infinite loop: 
https://patchwork.ozlabs.org/project/linux-mtd/list/?series=304485
ubi uaf in sysfs: 
https://patchwork.ozlabs.org/project/linux-mtd/list/?series=311956
ubi fastmap: 
https://patchwork.ozlabs.org/project/linux-mtd/list/?series=313063
ubifs assertion failed about writepage: 
https://patchwork.ozlabs.org/project/linux-mtd/list/?series=302776
ubifs space budget: 
https://patchwork.ozlabs.org/project/linux-mtd/list/?series=322220

> This series of patches fix ubifs wrong budget space calculations,
> which could make make_reservation() failed with ENOSPC error code
> and let ubifs become read-only.
>
> Zhihao Cheng (6):
>    ubifs: Rectify space budget for ubifs_symlink() if symlink is
>      encrypted
>    ubifs: Rectify space budget for ubifs_xrename()
>    ubifs: Add comments and debug info for ubifs_xrename()
>    ubifs: Fix wrong dirty space budget for dirty inode
>    ubifs: do_rename: Fix wrong space budget when target inode's nlink > 1
>    ubifs: Reserve one leb for each journal head while doing budget
>
>   fs/ubifs/budget.c |  9 ++++-----
>   fs/ubifs/dir.c    | 18 +++++++++++++++++-
>   2 files changed, 21 insertions(+), 6 deletions(-)
>

Re: [PATCH 0/6] ubifs: Fix wrong space calculation while doing budget
Posted by Richard Weinberger 3 years, 4 months ago
----- Ursprüngliche Mail -----
> Von: "chengzhihao1" <chengzhihao1@huawei.com>
> An: "richard" <richard@nod.at>, "Sascha Hauer" <s.hauer@pengutronix.de>, "Miquel Raynal" <miquel.raynal@bootlin.com>
> CC: "linux-mtd" <linux-mtd@lists.infradead.org>, "linux-kernel" <linux-kernel@vger.kernel.org>, "yi zhang"
> <yi.zhang@huawei.com>
> Gesendet: Freitag, 18. November 2022 09:53:38
> Betreff: Re: [PATCH 0/6] ubifs: Fix wrong space calculation while doing budget

> 在 2022/10/11 11:47, Zhihao Cheng 写道:
> 
> Hi. Richard
> Just a reminding. Could you please look through following series(Some of
> them is sent several months ago), I wish these can be merged in 6.1,
> thanks a lot:
> 
> ubi infinite loop:
> https://patchwork.ozlabs.org/project/linux-mtd/list/?series=304485
> ubi uaf in sysfs:
> https://patchwork.ozlabs.org/project/linux-mtd/list/?series=311956
> ubi fastmap:
> https://patchwork.ozlabs.org/project/linux-mtd/list/?series=313063
> ubifs assertion failed about writepage:
> https://patchwork.ozlabs.org/project/linux-mtd/list/?series=302776
> ubifs space budget:
> https://patchwork.ozlabs.org/project/linux-mtd/list/?series=322220

Sure. Let me check what happened to them.

Thanks,
//richard
Re: [PATCH 0/6] ubifs: Fix wrong space calculation while doing budget
Posted by Zhihao Cheng 3 years, 4 months ago
在 2022/11/18 16:56, Richard Weinberger 写道:
>> 在 2022/10/11 11:47, Zhihao Cheng 写道:
>>
>> Hi. Richard
>> Just a reminding. Could you please look through following series(Some of
>> them is sent several months ago), I wish these can be merged in 6.1,
>> thanks a lot:
>>
>> ubi infinite loop:
>> https://patchwork.ozlabs.org/project/linux-mtd/list/?series=304485
>> ubi uaf in sysfs:
>> https://patchwork.ozlabs.org/project/linux-mtd/list/?series=311956
>> ubi fastmap:
>> https://patchwork.ozlabs.org/project/linux-mtd/list/?series=313063
>> ubifs assertion failed about writepage:
>> https://patchwork.ozlabs.org/project/linux-mtd/list/?series=302776
>> ubifs space budget:
>> https://patchwork.ozlabs.org/project/linux-mtd/list/?series=322220
> Sure. Let me check what happened to them.
OK. Thanks again.
> Thanks,
> //richard
> .