From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F57F3C197A for ; Tue, 16 Jun 2026 02:50:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781578229; cv=none; b=aZtdmJnoBkTRjLRuMK6YLvMeE8VO6Nz6abGr3LuISVUk6LKg+6DbpqIKAJBNMMgOrN2C71dNLadXcMYtP5425wlZa3IJj774D2PpIVWKjJYYJ9+lGsm8WRzNXuqlLbfdjdw0Jw7Rt81oYb7vsw07XbqnmEV4Bv86i8pCOakUSKM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781578229; c=relaxed/simple; bh=v6ivHpNixQvCAD6nDePYcvDaztufwwG6cgermnPfmkM=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=PqvAc9gh2G0StQYAJ90tF1PukluLTG5t/GiFj8XuZusQNLIwzjh/REH9DTSCYwIVdCDReKGDL6IwL7qUO70x7YMf2dfRexi+kfnVw+0ZtH7+deOjIYcee2cXDSg0hbM5Soc8iuCQ07/DFDXWWnARKoIiTBGbspMPE6XKJ/8dTIs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=m8hQwDCS; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="m8hQwDCS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E97D01F000E9; Tue, 16 Jun 2026 02:50:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1781578219; bh=sT0rUb65ahglhmRVZn82Ro8tthKKXAkAqEyeGl8D1Qk=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=m8hQwDCS1lXrpsbaaln4OXbijIboBnu7z5YjH7GQpJEzqkPa5YIgsEMOulkBBZIzQ x1/tRKm6Rwms7febgNvpRVD/A7EQg5v9GnQq0h1jXQyGj5zcK4GTnn3oPo4noBO+ZX cF57a3gFy/W8rEx0QJy6d9uxb5eT74KOQ31rhAZ/kCOjeX1Sse2MtEaoMGa9Cc56x1 B2XnyzVIatwr8KuKcE0/Kmn1nQC0H4zGSD2IyHK4vtuXqac+Bm2lAlGfH3Hkek/hI/ K/HkPxHetMtPusrK2HbwdAfgLIp3/vgeyZaGlCvqXHpjG3++x61xHfEsmZ83dUBjVS Vnu42OtHJo9HA== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 198393839A26; Tue, 16 Jun 2026 02:50:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [f2fs-dev] [PATCH v3] f2fs: validate ACL entry sizes in f2fs_acl_from_disk() From: patchwork-bot+f2fs@kernel.org Message-Id: <178157821363.407856.4167191226848764493.git-patchwork-notify@kernel.org> Date: Tue, 16 Jun 2026 02:50:13 +0000 References: <20260615071954.4118409-1-rollkingzzc@gmail.com> In-Reply-To: <20260615071954.4118409-1-rollkingzzc@gmail.com> To: Cen Zhang Cc: jaegeuk@kernel.org, chao@kernel.org, 2045gemini@gmail.com, zerocling0077@gmail.com, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Hello: This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim : On Mon, 15 Jun 2026 15:19:54 +0800 you wrote: > f2fs_acl_count() only validates the aggregate ACL xattr length. A > malformed ACL can still place ACL_USER or ACL_GROUP in a slot that only > contains struct f2fs_acl_entry_short bytes, and f2fs_acl_from_disk() > then reads entry->e_id before verifying that a full entry fits. > > Require a short entry before reading e_tag and e_perm, and require a > full entry before reading e_id for ACL_USER and ACL_GROUP. Return > -EFSCORRUPTED from these new truncated-entry checks, while keeping the > pre-existing -EINVAL paths unchanged. > > [...] Here is the summary with links: - [f2fs-dev,v3] f2fs: validate ACL entry sizes in f2fs_acl_from_disk() https://git.kernel.org/jaegeuk/f2fs/c/f3b87155543b You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html