Skip to content

gendwarfksyms: Add more kABI rules

Sami Tolvanen linux-kbuild linux-modules lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 1 replyIn review
  2. v24 patches 3 repliesSuperseded
  3. v14 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- Added a patch to drop documentation section numbers based on Masahiro's suggestion.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5gendwarfksyms: Clean up kABI rule look-upsscripts/gendwarfksyms/kabi.c+44 -570 replies
2/5gendwarfksyms: Add a kABI rule to override byte_size attributesscripts/gendwarfksyms/dwarf.c scripts/gendwarfksyms/examples/kabi.h scripts/gendwarfksyms/examples/kabi_ex.c +3 more+70 -10 replies
3/5gendwarfksyms: Add a kABI rule to override type stringsscripts/gendwarfksyms/examples/kabi.h scripts/gendwarfksyms/examples/kabi_ex.c scripts/gendwarfksyms/examples/kabi_ex.h +3 more+246 -180 replies
4/5Documentation/kbuild: Drop section numbersDocumentation/kbuild/gendwarfksyms.rst+22 -220 replies
5/5Documentation/kbuild: Add new gendwarfksyms kABI rulesDocumentation/kbuild/gendwarfksyms.rst+92 -50 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchPetr Pavlu
1/5R-b
2/5R-b
3/5R-b
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/5] gendwarfksyms: Add more kABI rules

Hi,

While looking deeper into the genksyms hacks that have been needed during Android's 5.10 and 5.15 GKI lifecycles so far, we found a few instances that are not covered by the existing gendwarfksyms kABI stability rules. The first case involved appending new members to a partially opaque data structure, and the second case completely changing opaque types due to a large backport that was necessary for both stability and security.

These patches add rules that allow distribution maintainers to deal with structure size changes, and as a last resort, to completely override a type string used for version calculation.

Sami

---

v3:
- Added a patch to drop documentation section numbers based on Masahiro's suggestion.

v2: https://lore.kernel.org/r/[email protected]/
- Cleaned up type string parsing based on Petr's feedback.

v1: https://lore.kernel.org/r/[email protected]/

---

Sami Tolvanen (5):
gendwarfksyms: Clean up kABI rule look-ups
gendwarfksyms: Add a kABI rule to override byte_size attributes
gendwarfksyms: Add a kABI rule to override type strings Documentation/kbuild: Drop section numbers Documentation/kbuild: Add new gendwarfksyms kABI rules

 Documentation/kbuild/gendwarfksyms.rst   | 141 +++++++++++++++++-----
 scripts/gendwarfksyms/dwarf.c            |  14 ++-
 scripts/gendwarfksyms/examples/kabi.h    |  21 +++-
 scripts/gendwarfksyms/examples/kabi_ex.c |   7 ++
 scripts/gendwarfksyms/examples/kabi_ex.h | 101 +++++++++++++++-
 scripts/gendwarfksyms/gendwarfksyms.h    |   2 +
 scripts/gendwarfksyms/kabi.c             | 143 ++++++++++++++---------
 scripts/gendwarfksyms/types.c            | 140 +++++++++++++++++++---
 8 files changed, 470 insertions(+), 99 deletions(-)

base-commit: 92a09c47464d040866cf2b4cd052bc60555185fb

Signature · 1 line
2.49.0.987.g0cc8ee98dc-goog