The patch titled elf: include terminating zero in n_namesz has been added to the -mm tree. Its filename is elf-include-terminating-zero-in-n_namesz.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: elf: include terminating zero in n_namesz From: Magnus Damm <magnus@xxxxxxxxxxxxx> The ELF32 spec says we should plus we include the zero on other platforms. Signed-off-by: Magnus Damm <magnus@xxxxxxxxxxxxx> Cc: Daniel Jacobowitz <drow@xxxxxxxxx> Cc: Roland McGrath <roland@xxxxxxxxxx> Cc: Jakub Jelinek <jakub@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- arch/mips/kernel/irixelf.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -puN arch/mips/kernel/irixelf.c~elf-include-terminating-zero-in-n_namesz arch/mips/kernel/irixelf.c --- a/arch/mips/kernel/irixelf.c~elf-include-terminating-zero-in-n_namesz +++ a/arch/mips/kernel/irixelf.c @@ -1009,7 +1009,7 @@ static int notesize(struct memelfnote *e int sz; sz = sizeof(struct elf_note); - sz += roundup(strlen(en->name), 4); + sz += roundup(strlen(en->name) + 1, 4); sz += roundup(en->datasz, 4); return sz; @@ -1028,7 +1028,7 @@ static int writenote(struct memelfnote * { struct elf_note en; - en.n_namesz = strlen(men->name); + en.n_namesz = strlen(men->name) + 1; en.n_descsz = men->datasz; en.n_type = men->type; _ Patches currently in -mm which might be from magnus@xxxxxxxxxxxxx are origin.patch elf-always-define-elf_addr_t-in-linux-elfh.patch elf-include-terminating-zero-in-n_namesz.patch elf-fix-kcore-note-size-calculation.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html