Re: [PATCH v1 1/1] treewide: Align match_string() with sysfs_match_string()

2024-06-03 Thread Zhihao Cheng
ame, CRYPTO_MAX_ALG_NAME, "hmac(%s)", c->auth_hash_name); Reviewed-by: Zhihao Cheng # fs/ubifs

Re: [PATCH 02/22] [RESEND^2] jffs2: mark __jffs2_dbg_superblock_counts() static

2023-11-08 Thread Zhihao Cheng
'__jffs2_dbg_superblock_counts' [-Werror=missing-prototypes] Reviewed-by: Tudor Ambarus Signed-off-by: Arnd Bergmann --- fs/jffs2/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Zhihao Cheng

Re: [RFC PATCH 05/21] ubifs: Pass worst-case buffer size to compression routines

2023-07-19 Thread Zhihao Cheng
在 2023/7/19 22:38, Ard Biesheuvel 写道: On Wed, 19 Jul 2023 at 16:23, Zhihao Cheng wrote: 在 2023/7/19 16:33, Ard Biesheuvel 写道: On Wed, 19 Jul 2023 at 00:38, Eric Biggers wrote: On Tue, Jul 18, 2023 at 02:58:31PM +0200, Ard Biesheuvel wrote: Currently, the ubifs code allocates a worst case

Re: [RFC PATCH 05/21] ubifs: Pass worst-case buffer size to compression routines

2023-07-19 Thread Zhihao Cheng
should pass the real lenghth of 'buf'. Reviewed-by: Zhihao Cheng the additional space, and might fail spuriously due to lack of space. So let's multiply out_len by WORST_COMPR_FACTOR after allocating the buffer. Doing so is guaranteed not to overflow, given that the preceding kma