Re: [PATCH] imfs: Fix index underrun when extending empty file

2022-04-07 Thread Chris Johns
On 7/4/2022 6:50 pm, Christian MAUDERER wrote: > I applied the patch to all three branches (master, 5, 4.11). Thanks and I appreciate updating 4.11 as well. > I only skipped > adding the test for 4.11 because that part didn't apply without problems. But > the bug is fixed there too. Understood.

Re: [PATCH] imfs: Fix index underrun when extending empty file

2022-04-07 Thread Christian MAUDERER
Am 04.04.22 um 16:41 schrieb Christian MAUDERER: Am 04.04.22 um 16:40 schrieb Joel Sherrill: On Mon, Apr 4, 2022, 9:28 AM Christian MAUDERER > wrote:     Please note: I would like to apply this to the 5 branch too. I     created a     ticket

Re: [PATCH] imfs: Fix index underrun when extending empty file

2022-04-04 Thread Christian MAUDERER
Am 04.04.22 um 16:40 schrieb Joel Sherrill: On Mon, Apr 4, 2022, 9:28 AM Christian MAUDERER > wrote: Please note: I would like to apply this to the 5 branch too. I created a ticket for 5 here: https://devel.rtems.org/ticket/4638

Re: [PATCH] imfs: Fix index underrun when extending empty file

2022-04-04 Thread Joel Sherrill
On Mon, Apr 4, 2022, 9:28 AM Christian MAUDERER < christian.maude...@embedded-brains.de> wrote: > Please note: I would like to apply this to the 5 branch too. I created a > ticket for 5 here: > >https://devel.rtems.org/ticket/4638 > > Note that both tickets (5 and 6) are clones of an old 4.11

Re: [PATCH] imfs: Fix index underrun when extending empty file

2022-04-04 Thread Christian MAUDERER
Please note: I would like to apply this to the 5 branch too. I created a ticket for 5 here: https://devel.rtems.org/ticket/4638 Note that both tickets (5 and 6) are clones of an old 4.11 ticket: https://devel.rtems.org/ticket/2353 I didn't plan to backport the patch to 4.11. I'll add a

[PATCH] imfs: Fix index underrun when extending empty file

2022-04-04 Thread Christian Mauderer
Currently the following sequence causes a endless loop when extending an IMFS file: - Create a file with zero length and close it. - Make sure nearly no allocatable memory is left. - Open the file and write enough data into it that more than the remaining memory will be used. In that case when