Date: Mon, 17 Jun 2019 01:25:51 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 238634] [Patch] dev:md:md.c: Fix a kernel address leakage Message-ID: <bug-238634-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238634 Bug ID: 238634 Summary: [Patch] dev:md:md.c: Fix a kernel address leakage Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: huangfq.daxian@gmail.com Created attachment 205154 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=205154&action=edit The patch file If the kernel is create with option MD_ROOT, g_md_init will call md_preload and use mfs_root as the image. In function md_preload, the address of image will be printed out. In this case, the address of image is the address of a global object mfs_root. A kernel leakage happens. Fix this by making this printing only happen when md_debug > 0. -- 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-238634-227>
