diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2018-04-10 19:18:16 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2018-04-10 19:18:16 +0000 |
commit | 74d6c131cbe23e88d13763cb056a03b4d077868f (patch) | |
tree | 3e6d9ef593fed46793c51eaebd08ccd03ad495d6 /sys/geom/geom_vol_ffs.c | |
parent | f98bd69cbb4701e490d4c603f9b174570217c5a9 (diff) | |
download | src-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_vol_ffs.c')
-rw-r--r-- | sys/geom/geom_vol_ffs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/geom_vol_ffs.c b/sys/geom/geom_vol_ffs.c index 703b4bdbb62e..82b8eaa8d8ab 100644 --- a/sys/geom/geom_vol_ffs.c +++ b/sys/geom/geom_vol_ffs.c @@ -164,3 +164,4 @@ static struct g_class g_vol_ffs_class = { }; DECLARE_GEOM_CLASS(g_vol_ffs_class, g_vol_ffs); +MODULE_VERSION(geom_vol_ffs, 0); |