diff options
author | Zhihao Cheng <chengzhihao1@huawei.com> | 2022-10-11 06:47:31 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2023-02-02 23:13:40 +0300 |
commit | 25fce616a61fc2f1821e4a9ce212d0e064707093 (patch) | |
tree | 637a0857fd919e9426f161c27b5d240df6581686 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | b248eaf049d9cdc5eb76b59399e4d3de233f02ac (diff) | |
download | linux-25fce616a61fc2f1821e4a9ce212d0e064707093.tar.xz |
ubifs: do_rename: Fix wrong space budget when target inode's nlink > 1
If target inode is a special file (eg. block/char device) with nlink
count greater than 1, the inode with ui->data will be re-written on
disk. However, UBIFS losts target inode's data_len while doing space
budget. Bad space budget may let make_reservation() return with -ENOSPC,
which could turn ubifs to read-only mode in do_writepage() process.
Fetch a reproducer in [Link].
Link: https://bugzilla.kernel.org/show_bug.cgi?id=216494
Fixes: 1e51764a3c2ac0 ("UBIFS: add new flash file system")
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions