[RFC PATCH v4 1/1] kern/dl: Add module vermagic check

2022-12-25 Thread Zhang Boyang
This commit add vermagic string to GRUB modules. Specifically, a unique but shared vermagic string is embedded in .modver section of each module, and it is checked at module loading time. The vermagic string is uniquely generated by configure script in each run (formatted like "{version} {target}-{

[RFC PATCH v4 0/1] kern/dl: Add module vermagic check

2022-12-25 Thread Zhang Boyang
Hi, This is the V4 of my patch. V3 is at: https://lists.gnu.org/archive/html/grub-devel/2022-12/msg00280.html V2 is at: https://lists.gnu.org/archive/html/grub-devel/2022-12/msg00234.html V1 is at: https://lists.gnu.org/archive/html/grub-devel/2022-12/msg00213.html [ TL;DR ] 1) V4 use a stri