| To: | Brian Foster <bfoster@xxxxxxxxxx>, Jan Kara <jack@xxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] xfs: Fix uninitialized return value in xfs_alloc_fix_freelist() |
| From: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
| Date: | Wed, 19 Aug 2015 12:40:17 -0500 |
| Cc: | xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <20150715111649.GA60463@xxxxxxxxxxxxxxx> |
| References: | <1436948168-25051-1-git-send-email-jack@xxxxxxxx> <20150715111649.GA60463@xxxxxxxxxxxxxxx> |
On 7/15/15 6:16 AM, Brian Foster wrote: > On Wed, Jul 15, 2015 at 10:16:08AM +0200, Jan Kara wrote: >> xfs_alloc_fix_freelist() can sometimes jump to out_agbp_relse without >> ever setting value of 'error' variable which is then returned. This can >> happen e.g. when pag->pagf_init is set but AG is for metadata and we >> want to allocate user data. >> >> Fix the problem by initializing 'error' to 0, which is the desired >> return value when we decide to skip this group. >> >> CC: xfs@xxxxxxxxxxx >> Coverity-id: 1309714 >> Signed-off-by: Jan Kara <jack@xxxxxxxx> >> --- > > Reviewed-by: Brian Foster <bfoster@xxxxxxxxxx> Dave, ping on this one? I don't see it in your latest update, looks important. (xfsprogs has the same problem, FWIW) -Eric |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Goodbye from our Newsletter, workgrowth.ml |
|---|---|
| Next by Date: | v5 filesystem corruption due to log recovery lsn ordering, Brian Foster |
| Previous by Thread: | Goodbye from our Newsletter, workgrowth.ml |
| Next by Thread: | v5 filesystem corruption due to log recovery lsn ordering, Brian Foster |
| Indexes: | [Date] [Thread] [Top] [All Lists] |