Bug 216569

Summary: ubifs: Missing budget for ubifs_xrename()
Product: File System Reporter: Zhihao Cheng (chengzhihao1)
Component: OtherAssignee: fs_other
Status: NEW ---    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 6.0.0 Subsystem:
Regression: No Bisected commit-id:
Attachments: setup.sh
a.c
diff

Description Zhihao Cheng 2022-10-11 03:18:18 UTC
CONFIG_FS_ENCRYPTION=y
CONFIG_UBIFS_FS=m
CONFIG_MTD_UBI=m
CONFIG_MTD_NAND_NANDSIM=m

1. Apply diff and compile kernel
2. ./setup.sh 1
3. dmesg
[12035.118788] <2809> budget: len 260 len_encrypted 290
[12035.119500] <2809> budget: data_growth(new inode + new dent + new ino_data) 736
[12035.120891] <2809> disk: newdent 312 newinode+ino_data 456

[root@localhost ~]# dmesg -c
[ 1548.794608] <8045> budget: dd_growth + data_growth 0
[ 1548.799021] <8045> disk: new + mod 288

budget <0> < disk (288)
Comment 1 Zhihao Cheng 2022-10-11 03:18:31 UTC
Created attachment 302967 [details]
setup.sh
Comment 2 Zhihao Cheng 2022-10-11 03:18:42 UTC
Created attachment 302968 [details]
a.c
Comment 3 Zhihao Cheng 2022-10-11 03:18:53 UTC
Created attachment 302969 [details]
diff
Comment 4 Zhihao Cheng 2022-10-11 03:21:46 UTC
(In reply to Zhihao Cheng from comment #0)
> CONFIG_FS_ENCRYPTION=y
> CONFIG_UBIFS_FS=m
> CONFIG_MTD_UBI=m
> CONFIG_MTD_NAND_NANDSIM=m
> 
> 1. Apply diff and compile kernel
> 2. ./setup.sh 1
3. Compile and execute a.c
> 4. dmesg
> [root@localhost ~]# dmesg -c
> [ 1548.794608] <8045> budget: dd_growth + data_growth 0
> [ 1548.799021] <8045> disk: new + mod 288
> 
> budget <0> < disk (288)