Date: Tue, 16 Jan 2018 18:20:37 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 224875] kldxref fails if a mod_depend md_cval is too close to the end of allocated sections Message-ID: <bug-224875-8-r6ci2ZTMab@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-224875-8@https.bugs.freebsd.org/bugzilla/> References: <bug-224875-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224875 --- Comment #4 from commit-hook@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@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 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224875-8-r6ci2ZTMab>