]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
quota: Fix possible GPF due to uninitialised pointers
authorNikolay Borisov <kernel@kyup.com>
Thu, 3 Mar 2016 09:54:57 +0000 (10:54 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 18 Apr 2016 12:50:45 +0000 (08:50 -0400)
commitab1cc52b3f62f2445c60cbe390d26c50ebc0f3bd
treebb8f4a16b7f4c014071073399c107b06bf9ab023
parent594103da3005639712b3123a612791c8f4d3f4e9
quota: Fix possible GPF due to uninitialised pointers

[ Upstream commit ab73ef46398e2c0159f3a71de834586422d2a44a ]

When dqget() in __dquot_initialize() fails e.g. due to IO error,
__dquot_initialize() will pass an array of uninitialized pointers to
dqput_all() and thus can lead to deference of random data. Fix the
problem by properly initializing the array.

CC: stable@vger.kernel.org
Signed-off-by: Nikolay Borisov <kernel@kyup.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
fs/quota/dquot.c