https://github.com/torvalds/linux
Revision 86aea56f14929ff1c05eca1776e9068e907429d5 authored by Christos Gkekas on 08 July 2017, 19:50:21 UTC, committed by John Johansen on 22 September 2017, 20:00:57 UTC
verify_header() is currently checking whether interface version is less
than 5 *and* greater than 7, which always evaluates to false. Instead it
should check whether it is less than 5 *or* greater than 7.

Signed-off-by: Christos Gkekas <chris.gekas@gmail.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
1 parent 19fe43a
Raw File
Tip revision: 86aea56f14929ff1c05eca1776e9068e907429d5 authored by Christos Gkekas on 08 July 2017, 19:50:21 UTC
apparmor: Fix logical error in verify_header()
Tip revision: 86aea56
elfcore.c
#include <linux/elf.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/binfmts.h>

Elf_Half __weak elf_core_extra_phdrs(void)
{
	return 0;
}

int __weak elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset)
{
	return 1;
}

int __weak elf_core_write_extra_data(struct coredump_params *cprm)
{
	return 1;
}

size_t __weak elf_core_extra_data_size(void)
{
	return 0;
}
back to top