lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-Id: <20241206172828.3219989-2-cascardo@igalia.com> Date: Fri, 6 Dec 2024 14:28:24 -0300 From: Thadeu Lima de Souza Cascardo <cascardo@...lia.com> To: linux-ext4@...r.kernel.org Cc: "Theodore Ts'o" <tytso@....edu>, Andreas Dilger <adilger.kernel@...ger.ca>, linux-kernel@...r.kernel.org, kernel-dev@...lia.com, Thadeu Lima de Souza Cascardo <cascardo@...lia.com> Subject: [PATCH 1/5] ext4: inline: remove extra size check when writing data ext4_prepare_inline_data which is called right after the removed check has the same check. This avoids extra calls to ext4_get_inode_loc and having to traverse all xattrs in the inode twice for that check. Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@...lia.com> --- fs/ext4/inline.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/ext4/inline.c b/fs/ext4/inline.c index 401a224f0956..0611a050668b 100644 --- a/fs/ext4/inline.c +++ b/fs/ext4/inline.c @@ -668,9 +668,6 @@ int ext4_try_to_write_inline_data(struct address_space *mapping, struct folio *folio; struct ext4_iloc iloc; - if (pos + len > ext4_get_max_inline_size(inode)) - goto convert; - ret = ext4_get_inode_loc(inode, &iloc); if (ret) return ret; -- 2.34.1
Powered by blists - more mailing lists