]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
linux/cve-exclusion: do not shift first_affected
authorPeter Marko <peter.marko@siemens.com>
Sun, 27 Apr 2025 09:43:02 +0000 (11:43 +0200)
committerSteve Sakoman <steve@sakoman.com>
Tue, 1 Jul 2025 13:54:26 +0000 (06:54 -0700)
Stop shifting first_affected if backport is indicated. This does not
have effect on generated list, but makes the logic cleaner as it will
not shift it to "first affected on our branch" and also make it behave
like in defaultStatus==affected case.

Cc: daniel.turull@ericsson.com
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit dc1ecb69389dd79354084757ba6b9af0781afcc0)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-kernel/linux/generate-cve-exclusions.py

index 5c85c0db8847bde21371da5966a16630a10d6e05..302ec8ebc9fae8cbd47a3d165b5d759c38a99ee8 100755 (executable)
@@ -69,7 +69,6 @@ def get_fixed_versions(cve_info, base_version):
                     first_affected = v
                 fixed = less_than
                 if base_version < v and v < next_version:
-                    first_affected = v
                     fixed_backport = less_than
 
     return first_affected, fixed, fixed_backport