diff options
author | Sasha Levin <sasha.levin@oracle.com> | 2013-02-27 17:03:28 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-27 19:10:12 -0800 |
commit | fe88f2ee33731f0934e8fb26f762b6715e43ff6f (patch) | |
tree | b6e8af3812192ca5d8a60c51faaa9a025dbe7a5e /fs/compat_binfmt_elf.c | |
parent | 0d0bf6674136eb861b37213160b16388cfc1926d (diff) | |
download | op-kernel-dev-fe88f2ee33731f0934e8fb26f762b6715e43ff6f.zip op-kernel-dev-fe88f2ee33731f0934e8fb26f762b6715e43ff6f.tar.gz |
kexec: prevent double free on image allocation failure
If kimage_normal_alloc() fails to initialize an allocated kimage, it will
free the image but would still set 'rimage', as a result kexec_load will
try to free it again.
This would explode as part of the freeing process is accessing internal
members which point to uninitialized memory.
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/compat_binfmt_elf.c')
0 files changed, 0 insertions, 0 deletions