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
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250319180416.GL32661@twin.jikos.cz>
Date: Wed, 19 Mar 2025 19:04:16 +0100
From: David Sterba <dsterba@...e.cz>
To: Sidong Yang <sidong.yang@...iosa.ai>
Cc: Josef Bacik <josef@...icpanda.com>, David Sterba <dsterba@...e.com>,
	Mark Harmstone <maharmstone@...a.com>, linux-btrfs@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/1] btrfs: ioctl: don't free iov when -EAGAIN in uring
 encoded read

On Wed, Mar 19, 2025 at 11:24:01AM +0000, Sidong Yang wrote:
> This patch fixes a bug on encoded_read. In btrfs_uring_encoded_read(),
> btrfs_encoded_read could return -EAGAIN when receiving requests concurrently.
> And data->iov goes to out_free and it freed and return -EAGAIN. io-uring
> subsystem would call it again and it doesn't reset data. And data->iov
> freed and iov_iter reference it. iov_iter would be used in
> btrfs_uring_read_finished() and could be raise memory bug.
> 
> Signed-off-by: Sidong Yang <sidong.yang@...iosa.ai>

Thanks, added to for-next, with a bit updated changelog and added stable
tag for 6.13.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ