mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC PATCH 0/6] KEYS: From assoc_array to rhashtable migration
@ 2026-10-16 21:52 Jarkko Sakkinen
  2026-10-16 21:52 ` [RFC PATCH 1/6] keys: prevent quota overflow and widen quotalen and datalen to 32 bits Jarkko Sakkinen
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Jarkko Sakkinen @ 2026-10-16 21:52 UTC (permalink / raw)
  To: David Howells
  Cc: keyrings, Linus Torvalds, Jarkko Sakkinen, Paul Moore,
	James Morris, Serge E. Hallyn, open list:SECURITY SUBSYSTEM,
	open list

As a constant source of LLM attention this must be done.

This patch set started from Claude Opus 5.5 generated code that I got from
Linus. I tweaked what I got over one day scoping it into a proper kernel
patch, fixing some minor bugs in the core change, improved the use of
types and basic stuff like that.

This felt a good chance to try out LLM in the kernel context and I used
Gemini Flash 3.8 to seek for out-of-scope bugs intersecting with the
core change.

Since this patch set is marked as RFC, I did not yet cut out-of-context
bug fixes out, so for most part consider them as white noise. This applies
to patches 1-3.

Jarkko Sakkinen (6):
  keys: prevent quota overflow and widen quotalen and datalen to 32 bits
  keys: reclaim link quota during keyring garbage collection
  keys: verify key identity on unlink and move
  keys: Add keyring_is_empty() for {fs,dm}-verity
  KEYS: Replace assoc_array with struct keyring_index
  lib: Remove unused assoc_array

 Documentation/core-api/assoc_array.rst        |  564 ------
 Documentation/core-api/index.rst              |    1 -
 .../zh_CN/core-api/assoc_array.rst            |  473 -----
 .../translations/zh_CN/core-api/index.rst     |    1 -
 drivers/md/dm-verity-verify-sig.c             |    2 +-
 fs/smb/client/cifsacl.c                       |    6 +-
 fs/verity/signature.c                         |    2 +-
 include/keys/keyring-type.h                   |    1 -
 include/linux/assoc_array.h                   |   88 -
 include/linux/assoc_array_priv.h              |  178 --
 include/linux/key.h                           |   24 +-
 lib/Kconfig                                   |   14 -
 lib/Makefile                                  |    1 -
 lib/assoc_array.c                             | 1724 -----------------
 security/keys/Kconfig                         |    1 -
 security/keys/internal.h                      |   10 +-
 security/keys/key.c                           |   33 +-
 security/keys/keyctl.c                        |    9 +-
 security/keys/keyring.c                       |  887 ++++-----
 security/keys/request_key.c                   |    2 +-
 .../dm-verity/test-dm-verity-keyring.sh       |    2 +-
 21 files changed, 478 insertions(+), 3545 deletions(-)
 delete mode 100644 Documentation/core-api/assoc_array.rst
 delete mode 100644 Documentation/translations/zh_CN/core-api/assoc_array.rst
 delete mode 100644 include/linux/assoc_array.h
 delete mode 100644 include/linux/assoc_array_priv.h
 delete mode 100644 lib/assoc_array.c

--
2.47.3


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-10-17  5:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-16 21:52 [RFC PATCH 0/6] KEYS: From assoc_array to rhashtable migration Jarkko Sakkinen
2026-10-16 21:52 ` [RFC PATCH 1/6] keys: prevent quota overflow and widen quotalen and datalen to 32 bits Jarkko Sakkinen
2026-10-17  5:28   ` Eric Biggers
2026-10-16 21:53 ` [RFC PATCH 2/6] keys: reclaim link quota during keyring garbage collection Jarkko Sakkinen
2026-10-17  5:42   ` Eric Biggers
2026-10-16 21:53 ` [RFC PATCH 3/6] keys: verify key identity on unlink and move Jarkko Sakkinen
2026-10-16 21:53 ` [RFC PATCH 4/6] keys: Add keyring_is_empty() for {fs,dm}-verity Jarkko Sakkinen
2026-10-16 21:53 ` [RFC PATCH 5/6] KEYS: Replace assoc_array with struct keyring_index Jarkko Sakkinen
2026-10-16 22:27   ` Jarkko Sakkinen
2026-10-16 21:53 ` [RFC PATCH 6/6] lib: Remove unused assoc_array Jarkko Sakkinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®