public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] pstore: Initial use of cleanup.h
@ 2023-12-05 18:26 Kees Cook
  2023-12-05 18:26 ` [PATCH v2 1/4] pstore: inode: Convert kfree() usage to __free(kfree) Kees Cook
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Kees Cook @ 2023-12-05 18:26 UTC (permalink / raw)
  To: Guilherme G. Piccoli; +Cc: Kees Cook, Tony Luck, linux-kernel, linux-hardening

Hi,

Mostly as practice for myself, I rewrote a bunch of the error handling
paths in pstore to use the new cleanup.h routines. I'm enjoying this part:
"44 insertions(+), 65 deletions(-)"

It also passes basic testing. :)

-Kees

 v2: do not add a global iput macro
 v1: https://lore.kernel.org/lkml/20231202211535.work.571-kees@kernel.org/

Kees Cook (4):
  pstore: inode: Convert kfree() usage to __free(kfree)
  pstore: inode: Convert mutex usage to guard(mutex)
  pstore: inode: Use __free(pstore_iput) for inode allocations
  pstore: inode: Use cleanup.h for struct pstore_private

 fs/pstore/inode.c | 109 +++++++++++++++++++---------------------------
 1 file changed, 44 insertions(+), 65 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2023-12-05 18:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-05 18:26 [PATCH v2 0/4] pstore: Initial use of cleanup.h Kees Cook
2023-12-05 18:26 ` [PATCH v2 1/4] pstore: inode: Convert kfree() usage to __free(kfree) Kees Cook
2023-12-05 18:26 ` [PATCH v2 2/4] pstore: inode: Convert mutex usage to guard(mutex) Kees Cook
2023-12-05 18:26 ` [PATCH v2 3/4] pstore: inode: Use __free(pstore_iput) for inode allocations Kees Cook
2023-12-05 18:26 ` [PATCH v2 4/4] pstore: inode: Use cleanup.h for struct pstore_private Kees Cook

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