aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/nop
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/nop
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/nop')
-rw-r--r--sys/geom/nop/g_nop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/nop/g_nop.c b/sys/geom/nop/g_nop.c
index 549bb211020c..23a06cda34fd 100644
--- a/sys/geom/nop/g_nop.c
+++ b/sys/geom/nop/g_nop.c
@@ -717,3 +717,4 @@ g_nop_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp,
}
DECLARE_GEOM_CLASS(g_nop_class, g_nop);
+MODULE_VERSION(geom_nop, 0);