Re: [PATCH v2] ext4: fix buffer_head leak in ext4_init_orphan_info

"Theodore Ts'o" <[email protected]>
Newsgroups org.kernel.vger.linux-ext4,org.kernel.vger.linux-kernel
Message-ID <178481171748.796182.16133332077893825293.b4-ty@b4>
On Thu, 09 Jul 2026 14:41:51 +0000, Guanghui Yang wrote:
> ext4_init_orphan_info() reads orphan file blocks with ext4_bread()
> and stores the returned buffer_head in oi->of_binfo[i].ob_bh.
> 
> If ext4_bread() succeeds but the orphan block magic or checksum
> validation fails, the function jumps to out_free. However, the old
> out_free loop starts releasing buffers from i - 1, so the current
> buffer_head at index i is skipped.
> 
> [...]

Applied, thanks!

[1/1] ext4: fix buffer_head leak in ext4_init_orphan_info
      commit: 05704335803b69c1bfa8637b7ada942bf2ee8a41

Best regards,
-- 
Theodore Ts'o <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.