Subject: CVS commit: pkgsrc/sysutils
From: Manuel Bouyer
Date: 2024-04-03 00:01:24
Message id: 20240402220124.72323FA2C@cvs.NetBSD.org

Log Message:
xentools415, xentools418: fix bug in BSD symbol table support for i386:
When computing the size of the ELF symbol table, the code use
sizeof(Elf64_Shdr) or sizeof(Elf32_Shdr) depending on the kernel being
loaded. But later when computing offsets, the code uses
sizeof(struct elf_sym_header) which contains a union of both Shdr. This result
in an overflow of 64 bytes. Fortunably the code checks the size being copied
with the allocated size and silently ignores the copy if there isn't enough
space. Fortunably as well, the allocated size is rounded up to the next page
boundary, so most of the time there is enough space. Unfortunably, the official
i386 GENERIC kernel from the 10.0 release has the right size to trigger
this bug.
Bump PKGREVISION.

Files:
RevisionActionfile
1.30modifypkgsrc/sysutils/xentools415/Makefile
1.15modifypkgsrc/sysutils/xentools415/distinfo
1.5modifypkgsrc/sysutils/xentools418/Makefile
1.3modifypkgsrc/sysutils/xentools418/distinfo
1.1addpkgsrc/sysutils/xentools415/patches/patch-xen_common_libelf_libelf-loader.c
1.1addpkgsrc/sysutils/xentools418/patches/patch-xen_common_libelf_libelf-loader.c