Upstream: no
For livepatch module, always force full vermagic match since kernel
function may updated in minor releases.
For other modules, only check the major version, and first two field of
kernel release number.
eg. our vermagic could look like this:
- vermagic: 5.18.0-2207.3.tks SMP preempt mod_unload modversions
- vermagic: 5.18.0-2207.3.1.tks SMP preempt mod_unload modversions
- vermagic: 5.18.0-2207.3.1.test.tks SMP preempt mod_unload modversions
In these examples, "2207" and "3" is the kabi compatiblilty indicator.
If the first two field of release number matches, it's a kabi compatible
release.
Signed-off-by: Kairui Song <kasong@tencent.com>