Re: [PATCH AUTOSEL 3.18 1/9] bfs: add sanity check at bfs_fill_super()

2018-11-22 Thread Tigran Aivazian
On Thu, 22 Nov 2018 at 19:42, Sasha Levin wrote: > Hm, but this one is not upstream yet? I'll wait with it until it gets > some time to soak upstream. It is in linux-next, so I assume it will propagate to the numbered releases soon, see here: https://git.kernel.org/pub/scm/linux/kernel/git/next/l

Re: [PATCH AUTOSEL 3.18 1/9] bfs: add sanity check at bfs_fill_super()

2018-11-22 Thread Sasha Levin
On Tue, Nov 13, 2018 at 08:00:56PM +, Tigran Aivazian wrote: On Tue, 13 Nov 2018 at 19:40, Tigran Aivazian wrote: On Tue, 13 Nov 2018 at 08:31, Tigran Aivazian wrote: > Andrew, if you would like me to make the same patch against 4.19.1 as > well, please let me know. I decided to just go

Re: [PATCH AUTOSEL 3.18 1/9] bfs: add sanity check at bfs_fill_super()

2018-11-22 Thread Sasha Levin
On Tue, Nov 13, 2018 at 08:00:56PM +, Tigran Aivazian wrote: On Tue, 13 Nov 2018 at 19:40, Tigran Aivazian wrote: On Tue, 13 Nov 2018 at 08:31, Tigran Aivazian wrote: > Andrew, if you would like me to make the same patch against 4.19.1 as > well, please let me know. I decided to just go

Re: [PATCH AUTOSEL 3.18 1/9] bfs: add sanity check at bfs_fill_super()

2018-11-13 Thread Tigran Aivazian
On Tue, 13 Nov 2018 at 19:40, Tigran Aivazian wrote: > > On Tue, 13 Nov 2018 at 08:31, Tigran Aivazian > wrote: > > Andrew, if you would like me to make the same patch against 4.19.1 as > > well, please let me know. > > I decided to just go ahead and backport it to 4.19.1 anyway (see > attached)

Re: [PATCH AUTOSEL 3.18 1/9] bfs: add sanity check at bfs_fill_super()

2018-11-13 Thread Tigran Aivazian
On Tue, 13 Nov 2018 at 08:31, Tigran Aivazian wrote: > Andrew, if you would like me to make the same patch against 4.19.1 as > well, please let me know. I decided to just go ahead and backport it to 4.19.1 anyway (see attached). Tested thoroughly under 4.19.1. From: Tigran Aivazian Subject: bfs:

Re: [PATCH AUTOSEL 3.18 1/9] bfs: add sanity check at bfs_fill_super()

2018-11-13 Thread Tigran Aivazian
On Tue, 13 Nov 2018 at 05:52, Sasha Levin wrote: > syzbot is reporting too large memory allocation at bfs_fill_super() [1]. > Since file system image is corrupted such that bfs_sb->s_start == 0, > bfs_fill_super() is trying to allocate 8MB of continuous memory. Fix > this by adding a sanity check

[PATCH AUTOSEL 3.18 1/9] bfs: add sanity check at bfs_fill_super()

2018-11-12 Thread Sasha Levin
From: Tetsuo Handa [ Upstream commit 9f2df09a33aa2c76ce6385d382693f98d7f2f07e ] syzbot is reporting too large memory allocation at bfs_fill_super() [1]. Since file system image is corrupted such that bfs_sb->s_start == 0, bfs_fill_super() is trying to allocate 8MB of continuous memory. Fix this