[Bug 224875] kldxref fails if a mod_depend md_cval is too close to the end of allocated sections
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Jan 16 18:20:37 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224875
--- Comment #4 from commit-hook at freebsd.org ---
A commit references this bug:
Author: emaste
Date: Tue Jan 16 18:20:12 UTC 2018
New revision: 328052
URL: https://svnweb.freebsd.org/changeset/base/328052
Log:
kldxref: handle modules with md_cval at the end of allocated sections
Attempting to retrieve an md_cval string from a kernel module with
kldxref would throw a offset error for modules created using lld, since
this value would be placed at the end of all allocated sections.
Add an ef_read_seg_string method to the ef interface, to allow reading
strings of varying size without attempting to read beyond the segment's
bounds.
PR: 224875
Submitted by: Mitchell Horne <mhorne063 at gmail.com>
Reviewed by: cem, kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D13923
Changes:
head/usr.sbin/kldxref/ef.c
head/usr.sbin/kldxref/ef.h
head/usr.sbin/kldxref/ef_obj.c
head/usr.sbin/kldxref/kldxref.c
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list