Summary: | dev:md:md.c: Fix a kernel address leakage | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Fuqian <huangfq.daxian> | ||||
Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
Status: | New --- | ||||||
Severity: | Affects Only Me | ||||||
Priority: | --- | ||||||
Version: | CURRENT | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Created attachment 205154 [details] 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.