Re: [PATCH] fs: btrfs: fix out of bounds write

2024-06-18 Thread David Disseldorp
On Mon, 17 Jun 2024 22:49:47 +0300, Alex Shumsky wrote: > Fix btrfs_read/read_and_truncate_page write out of bounds of destination > buffer. Old behavior break bootstd malloc'd buffers of exact file size. > Previously this OOB write have not been noticed because distroboot usually > read files int

Re: [PATCH] fs: btrfs: fix out of bounds write

2024-06-18 Thread Marek Behún
On Mon, 17 Jun 2024 22:49:47 +0300 Alex Shumsky wrote: > Fix btrfs_read/read_and_truncate_page write out of bounds of destination > buffer. Old behavior break bootstd malloc'd buffers of exact file size. > Previously this OOB write have not been noticed because distroboot usually > read files int

Re: [PATCH] fs: btrfs: fix out of bounds write

2024-06-17 Thread Dan Carpenter
On Mon, Jun 17, 2024 at 10:49:47PM +0300, Alex Shumsky wrote: > Fix btrfs_read/read_and_truncate_page write out of bounds of destination > buffer. Old behavior break bootstd malloc'd buffers of exact file size. > Previously this OOB write have not been noticed because distroboot usually > read file

[PATCH] fs: btrfs: fix out of bounds write

2024-06-17 Thread Alex Shumsky
Fix btrfs_read/read_and_truncate_page write out of bounds of destination buffer. Old behavior break bootstd malloc'd buffers of exact file size. Previously this OOB write have not been noticed because distroboot usually read files into huge static memory areas. Signed-off-by: Alex Shumsky --- f

Re: [PATCH] fs: btrfs: fix out of bounds write

2024-06-17 Thread Qu Wenruo
在 2024/6/18 05:19, Alex Shumsky 写道: Fix btrfs_read/read_and_truncate_page write out of bounds of destination buffer. Old behavior break bootstd malloc'd buffers of exact file size. Previously this OOB write have not been noticed because distroboot usually read files into huge static memory are