aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/geom_ccd.c
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2018-04-10 19:18:16 +0000
committerKyle Evans <kevans@FreeBSD.org>2018-04-10 19:18:16 +0000
commit74d6c131cbe23e88d13763cb056a03b4d077868f (patch)
tree3e6d9ef593fed46793c51eaebd08ccd03ad495d6 /sys/geom/geom_ccd.c
parentf98bd69cbb4701e490d4c603f9b174570217c5a9 (diff)
downloadsrc-74d6c131cbe23e88d13763cb056a03b4d077868f.tar.gz
src-74d6c131cbe23e88d13763cb056a03b4d077868f.zip
Annotate geom modules with MODULE_VERSION
GEOM ELI may double ask the password during boot. Once at loader time, and once at init time. This happens due a module loading bug. By default GEOM ELI caches the password in the kernel, but without the MODULE_VERSION annotation, the kernel loads over the kernel module, even if the GEOM ELI was compiled into the kernel. In this case, the newly loaded module purges/invalidates/overwrites the GEOM ELI's password cache, which causes the double asking. MFC Note: There's a pc98 component to the original submission that is omitted here due to pc98 removal in head. This part will need to be revived upon MFC. Reviewed by: imp Submitted by: op Obtained from: opBSD MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D14992
Notes
Notes: svn path=/head/; revision=332387
Diffstat (limited to 'sys/geom/geom_ccd.c')
-rw-r--r--sys/geom/geom_ccd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c
index ce9a435fa9d6..c113a20f0916 100644
--- a/sys/geom/geom_ccd.c
+++ b/sys/geom/geom_ccd.c
@@ -936,3 +936,4 @@ static struct g_class g_ccd_class = {
};
DECLARE_GEOM_CLASS(g_ccd_class, g_ccd);
+MODULE_VERSION(geom_ccd, 0);