]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Annotate geom modules with MODULE_VERSION
authorkevans <kevans@FreeBSD.org>
Tue, 10 Apr 2018 19:18:16 +0000 (19:18 +0000)
committerkevans <kevans@FreeBSD.org>
Tue, 10 Apr 2018 19:18:16 +0000 (19:18 +0000)
commitdd6f2f2c8db6f6b0def5142f024bc873b1151cdf
tree3e6d9ef593fed46793c51eaebd08ccd03ad495d6
parentdd3a6ab1cc9dc024fb6c5ede3ab3e4dbd42e7ef9
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
35 files changed:
sys/geom/bde/g_bde.c
sys/geom/cache/g_cache.c
sys/geom/concat/g_concat.c
sys/geom/eli/g_eli.c
sys/geom/gate/g_gate.c
sys/geom/geom_bsd.c
sys/geom/geom_ccd.c
sys/geom/geom_fox.c
sys/geom/geom_map.c
sys/geom/geom_mbr.c
sys/geom/geom_redboot.c
sys/geom/geom_sunlabel.c
sys/geom/geom_vol_ffs.c
sys/geom/journal/g_journal_ufs.c
sys/geom/label/g_label.c
sys/geom/linux_lvm/g_linux_lvm.c
sys/geom/mirror/g_mirror.c
sys/geom/mountver/g_mountver.c
sys/geom/multipath/g_multipath.c
sys/geom/nop/g_nop.c
sys/geom/part/g_part_apm.c
sys/geom/part/g_part_bsd.c
sys/geom/part/g_part_bsd64.c
sys/geom/part/g_part_ebr.c
sys/geom/part/g_part_gpt.c
sys/geom/part/g_part_ldm.c
sys/geom/part/g_part_mbr.c
sys/geom/part/g_part_vtoc8.c
sys/geom/raid3/g_raid3.c
sys/geom/shsec/g_shsec.c
sys/geom/stripe/g_stripe.c
sys/geom/uzip/g_uzip.c
sys/geom/vinum/geom_vinum.c
sys/geom/virstor/g_virstor.c
sys/geom/zero/g_zero.c