* Mon Feb 16 2026 Jan Stancek <jstancek@redhat.com> [6.12.0-201.1.el10nv] - redhat: update build targets for aie-nv (Jan Stancek) - iommu/arm-smmu-v3: Perform per-domain invalidations using arm_smmu_invs (Nicolin Chen) [VOYAGER-1] - iommu/arm-smmu-v3: Add arm_smmu_invs based arm_smmu_domain_inv_range() (Nicolin Chen) [VOYAGER-1] - iommu/arm-smmu-v3: Populate smmu_domain->invs when attaching masters (Nicolin Chen) [VOYAGER-1] - iommu/arm-smmu-v3: Pre-allocate a per-master invalidation array (Nicolin Chen) [VOYAGER-1] - iommu/arm-smmu-v3: Introduce a per-domain arm_smmu_invs array (Jason Gunthorpe) [VOYAGER-1] - iommu/arm-smmu-v3: Add an inline arm_smmu_domain_free() (Nicolin Chen) [VOYAGER-1] - iommu/arm-smmu-v3: Explicitly set smmu_domain->stage for SVA (Nicolin Chen) [VOYAGER-1] - iommu/arm-smmu-v3: Add a missing dma_wmb() for hitless STE update (Nicolin Chen) [VOYAGER-1] - lib/sort.c: add _nonatomic() variants with cond_resched() (Kent Overstreet) [VOYAGER-1] - lib/sort: clarify comparison function requirements in sort_r() (Kuan-Wei Chiu) [VOYAGER-1] - sort.h: hoist cmp_int() into generic header file (Fedor Pchelkin) [VOYAGER-1] - iommu/tegra241-cmdqv: Reset VCMDQ in tegra241_vcmdq_hw_init_user() (Nicolin Chen) [VOYAGER-44] - mm: add stubs for PFNMAP memory failure registration functions (Aristeu Rozanski) [VOYAGER-9] - vfio/nvgrace-gpu: register device memory for poison handling (Aristeu Rozanski) [VOYAGER-9] - mm: fixup pfnmap memory failure handling to use pgoff (Aristeu Rozanski) [VOYAGER-9] - mm: handle poisoning of pfn without struct pages (Aristeu Rozanski) [VOYAGER-9] - mm: change ghes code to allow poison of non-struct pfn (Aristeu Rozanski) [VOYAGER-9] - .gitlab-ci.yml: rename c10s_rhel10_compat_merge_request pipeline v2 (Jan Stancek) - .gitlab-ci.yml: rename c10s_rhel10_compat_merge_request pipeline (Jan Stancek) - .gitlab-ci.yml: customize pipeline (Jan Stancek) - redhat: make genlog consider only VOYAGER project issues (Jan Stancek) - redhat: build only for aarch64 64k and x86_64 variants (Jan Stancek) - redhat: update self-test-data (Jan Stancek) - redhat: set up initial Makefile.variables (Jan Stancek) Resolves: VOYAGER-1, VOYAGER-44, VOYAGER-9 Signed-off-by: Jan Stancek <jstancek@redhat.com>
167 lines
4.1 KiB
Python
Executable File
167 lines
4.1 KiB
Python
Executable File
#!/usr/bin/python3
|
|
#
|
|
# check-kabi - Red Hat kABI reference checking tool
|
|
#
|
|
# We use this script to check against reference Module.kabi files.
|
|
#
|
|
# Author: Jon Masters <jcm@redhat.com>
|
|
# Copyright (C) 2007-2009 Red Hat, Inc.
|
|
#
|
|
# This software may be freely redistributed under the terms of the GNU
|
|
# General Public License (GPL).
|
|
|
|
# Changelog:
|
|
#
|
|
# 2018/06/01 - Update for python3 by Petr Oros.
|
|
# 2009/08/15 - Updated for use in RHEL6.
|
|
# 2007/06/13 - Initial rewrite in python by Jon Masters.
|
|
|
|
__author__ = "Jon Masters <jcm@redhat.com>"
|
|
__version__ = "2.0"
|
|
__date__ = "2009/08/15"
|
|
__copyright__ = "Copyright (C) 2007-2009 Red Hat, Inc"
|
|
__license__ = "GPL"
|
|
|
|
import getopt
|
|
import string
|
|
import sys
|
|
|
|
true = 1
|
|
false = 0
|
|
|
|
|
|
def load_symvers(symvers, filename):
|
|
"""Load a Module.symvers file."""
|
|
|
|
symvers_file = open(filename, "r")
|
|
|
|
while true:
|
|
in_line = symvers_file.readline()
|
|
if in_line == "":
|
|
break
|
|
if in_line == "\n":
|
|
continue
|
|
checksum, symbol, directory, type, *ns = in_line.split()
|
|
ns = ns[0] if ns else None
|
|
|
|
symvers[symbol] = in_line[0:-1]
|
|
|
|
|
|
def load_kabi(kabi, filename):
|
|
"""Load a Module.kabi file."""
|
|
|
|
kabi_file = open(filename, "r")
|
|
|
|
while true:
|
|
in_line = kabi_file.readline()
|
|
if in_line == "":
|
|
break
|
|
if in_line == "\n":
|
|
continue
|
|
checksum, symbol, directory, type, *ns = in_line.split()
|
|
ns = ns[0] if ns else None
|
|
|
|
kabi[symbol] = in_line[0:-1]
|
|
|
|
|
|
def check_kabi(symvers, kabi):
|
|
"""Check Module.kabi and Module.symvers files."""
|
|
|
|
fail = 0
|
|
warn = 0
|
|
changed_symbols = []
|
|
moved_symbols = []
|
|
ns_symbols = []
|
|
|
|
for symbol in kabi:
|
|
abi_hash, abi_sym, abi_dir, abi_type, *abi_ns = kabi[symbol].split()
|
|
abi_ns = abi_ns[0] if abi_ns else None
|
|
if symbol in symvers:
|
|
sym_hash, sym_sym, sym_dir, sym_type, *sym_ns = symvers[symbol].split()
|
|
sym_ns = sym_ns[0] if sym_ns else None
|
|
if abi_hash != sym_hash:
|
|
fail = 1
|
|
changed_symbols.append(symbol)
|
|
|
|
if abi_dir != sym_dir:
|
|
warn = 1
|
|
moved_symbols.append(symbol)
|
|
|
|
if abi_ns != sym_ns:
|
|
warn = 1
|
|
ns_symbols.append(symbol)
|
|
else:
|
|
fail = 1
|
|
changed_symbols.append(symbol)
|
|
|
|
if fail:
|
|
print("*** ERROR - ABI BREAKAGE WAS DETECTED ***")
|
|
print("")
|
|
print("The following symbols have been changed (this will cause an ABI breakage):")
|
|
print("")
|
|
for symbol in changed_symbols:
|
|
print(symbol)
|
|
print("")
|
|
|
|
if warn:
|
|
print("*** WARNING - ABI SYMBOLS MOVED ***")
|
|
if moved_symbols:
|
|
print("")
|
|
print("The following symbols moved (typically caused by moving a symbol from being")
|
|
print("provided by the kernel vmlinux out to a loadable module):")
|
|
print("")
|
|
for symbol in moved_symbols:
|
|
print(symbol)
|
|
print("")
|
|
if ns_symbols:
|
|
print("")
|
|
print("The following symbols changed symbol namespaces:")
|
|
print("")
|
|
for symbol in ns_symbols:
|
|
print(symbol)
|
|
print("")
|
|
|
|
"""Halt the build, if we got errors and/or warnings. In either case,
|
|
double-checkig is required to avoid introducing / concealing
|
|
KABI inconsistencies."""
|
|
if fail or warn:
|
|
sys.exit(1)
|
|
sys.exit(0)
|
|
|
|
|
|
def usage():
|
|
print("""
|
|
check-kabi: check Module.kabi and Module.symvers files.
|
|
|
|
check-kabi [ -k Module.kabi ] [ -s Module.symvers ]
|
|
|
|
""")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
symvers_file = ""
|
|
kabi_file = ""
|
|
|
|
opts, args = getopt.getopt(sys.argv[1:], 'hk:s:')
|
|
|
|
for o, v in opts:
|
|
if o == "-s":
|
|
symvers_file = v
|
|
if o == "-h":
|
|
usage()
|
|
sys.exit(0)
|
|
if o == "-k":
|
|
kabi_file = v
|
|
|
|
if (symvers_file == "") or (kabi_file == ""):
|
|
usage()
|
|
sys.exit(1)
|
|
|
|
symvers = {}
|
|
kabi = {}
|
|
|
|
load_symvers(symvers, symvers_file)
|
|
load_kabi(kabi, kabi_file)
|
|
check_kabi(symvers, kabi)
|