From: Colin King <hidden> Date: 2015-09-03 09:58:17
From: Colin Ian King <redacted>
xfs_vm_set_page_dirty checks to see if mapping is NULL however
before this unlikely check it already dereferenced mapping when
initializing inode. Move the inode initialization after the mapping
null check to avoid a potential null pointer dereference.
Fixes: 22e757a49cf0 ("xfs: don't dirty buffers beyond EOF")
Signed-off-by: Colin Ian King <redacted>
---
fs/xfs/xfs_aops.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
From: Brian Foster <hidden> Date: 2015-09-03 10:45:40
On Thu, Sep 03, 2015 at 10:57:40AM +0100, Colin King wrote:
From: Colin Ian King <redacted>
xfs_vm_set_page_dirty checks to see if mapping is NULL however
before this unlikely check it already dereferenced mapping when
initializing inode. Move the inode initialization after the mapping
null check to avoid a potential null pointer dereference.
Fixes: 22e757a49cf0 ("xfs: don't dirty buffers beyond EOF")
Signed-off-by: Colin Ian King <redacted>
---
From: Eric Sandeen <hidden> Date: 2015-09-03 13:50:11
On 9/3/15 5:45 AM, Brian Foster wrote:
On Thu, Sep 03, 2015 at 10:57:40AM +0100, Colin King wrote:
quoted
From: Colin Ian King <redacted>
xfs_vm_set_page_dirty checks to see if mapping is NULL however
before this unlikely check it already dereferenced mapping when
initializing inode. Move the inode initialization after the mapping
null check to avoid a potential null pointer dereference.
Fixes: 22e757a49cf0 ("xfs: don't dirty buffers beyond EOF")
Signed-off-by: Colin Ian King <redacted>
---
Reviewed-by: Brian Foster <redacted>
Reviewed-by: Eric Sandeen <redacted>
Should probably cc: stable on this one too, the commit it
fixes went in at 3.17, and it also cc'd stable.
-Eric