Re: [PATCH v2 3/3] ext4: Add a few overflow checks in the writing code

2025-04-18 Thread Tom Rini
On Fri, Apr 18, 2025 at 04:59:15AM -0600, Simon Glass wrote: > From: Simon Glass > > Some memory allocations make use of data from the disk, so add some > overflow checks. > > Adjust LOG2_BLOCK_SIZE() so it is easier to read. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Use Li

[PATCH v2 3/3] ext4: Add a few overflow checks in the writing code

2025-04-18 Thread Simon Glass
From: Simon Glass Some memory allocations make use of data from the disk, so add some overflow checks. Adjust LOG2_BLOCK_SIZE() so it is easier to read. Signed-off-by: Simon Glass --- Changes in v2: - Use Linux macros instead of gcc built-ins fs/ext4/ext4_write.c | 25 +-