Re: [PATCH 3.10 054/139] direct-io: Prevent NULL pointer access in submit_page_section

2017-11-01 Thread Willy Tarreau
Hi Andreas, On Wed, Nov 01, 2017 at 11:43:26PM +0100, Andreas Gruenbacher wrote: > > diff --git a/fs/direct-io.c b/fs/direct-io.c > > index e17d919..85485c1 100644 > > --- a/fs/direct-io.c > > +++ b/fs/direct-io.c > > @@ -760,6 +760,8 @@ out: > > if (sdio->boundary) { > > r

Re: [PATCH 3.10 054/139] direct-io: Prevent NULL pointer access in submit_page_section

2017-11-01 Thread Andreas Gruenbacher
Willy, On 1 November 2017 at 22:25, Willy Tarreau wrote: > From: Andreas Gruenbacher > > commit 899f0429c7d3eed886406cd72182bee3b96aa1f9 upstream. > > In the code added to function submit_page_section by commit b1058b981, > sdio->bio can currently be NULL when calling dio_bio_submit. This then

[PATCH 3.10 054/139] direct-io: Prevent NULL pointer access in submit_page_section

2017-11-01 Thread Willy Tarreau
From: Andreas Gruenbacher commit 899f0429c7d3eed886406cd72182bee3b96aa1f9 upstream. In the code added to function submit_page_section by commit b1058b981, sdio->bio can currently be NULL when calling dio_bio_submit. This then leads to a NULL pointer access in dio_bio_submit, so check for a NULL