Re: [PATCH v2] mm: alloc_pages_bulk: remove assumption of populating only NULL elements

2025-03-07 Thread Dave Chinner
On Tue, Mar 04, 2025 at 08:09:35PM +0800, Yunsheng Lin wrote: > On 2025/3/4 16:18, Dave Chinner wrote: > > ... > > > > >> > >> 1. > >> https://lore.kernel.org/all/bd8c2f5c-464d-44ab-b607-390a87ea4...@huawei.com/ > >> 2. > >> https://lore.kernel.org/all/20250212092552.1779679-1-linyunsh...@huaw

[PATCH v2] erofs-utils: lib: error out if fragment_off is crafted

2025-03-07 Thread Gao Xiang
Found in some fuzzed images. Fixes: f511cfbbc0da ("erofs-utils: introduce fragment cache") Signed-off-by: Gao Xiang --- lib/fragments.c | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/fragments.c b/lib/fragments.c index 2f5fbf9..05bbf0d 100644 --- a/lib/fragments.c +++ b/lib/fragmen

[PATCH] erofs-utils: lib: error out if fragment_off is crafted

2025-03-07 Thread Gao Xiang
Found in some fuzzed images. Fixes: f511cfbbc0da ("erofs-utils: introduce fragment cache") Signed-off-by: Gao Xiang --- lib/fragments.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/fragments.c b/lib/fragments.c index 2f5fbf9..a345acf 100644 --- a/lib/fragments.c +++ b/lib/fragment

Re: [PATCH v2] mm: alloc_pages_bulk: remove assumption of populating only NULL elements

2025-03-07 Thread NeilBrown
On Fri, 07 Mar 2025, Yunsheng Lin wrote: > On 2025/3/7 5:14, NeilBrown wrote: > > On Thu, 06 Mar 2025, Yunsheng Lin wrote: > >> On 2025/3/6 7:41, NeilBrown wrote: > >>> On Wed, 05 Mar 2025, Yunsheng Lin wrote: > > For the existing btrfs and sunrpc case, I am agreed that there > might