[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <19a5409a3bf.50871c0e1607989.1264040958211475507@linux.beauty>
Date: Wed, 05 Nov 2025 20:41:49 +0800
From: Li Chen <me@...ux.beauty>
To: "Kees Cook" <kees@...nel.org>, "Nathan Chancellor" <nathan@...nel.org>,
"Nicolas Schier" <nicolas.schier@...ux.dev>,
"linux-kernel" <linux-kernel@...r.kernel.org>,
"linux-hardening" <linux-hardening@...r.kernel.org>,
"linux-kbuild" <linux-kbuild@...r.kernel.org>
Subject: Re: [PATCH 0/3] dm-pcache: built-in support and metadata hardening
My apologies, please disregard the dm-pcache portion of this series. This series will focus solely on gcc-plugin.
---- On Wed, 05 Nov 2025 16:46:51 +0800 Li Chen <me@...ux.beauty> wrote ---
> From: Li Chen <chenl311@...natelecom.cn>
>
> This three-patch series tidies dm-pcache’s build glue and tightens the metadata scan.
>
> Patch 1 allow dm-pcache to be linked into vmlinux and avoids clashing with the sunrpc
> cache_flush() by using obj-$(CONFIG_DM_PCACHE) and renaming the helper across the tree.
>
> Patch 2 drops a redundant recomputation of the metadata slot pointer while walking headers.
>
> Patch 3 zero-allocates a temporary buffer so callers never see stale metadata,
> relies on __free(kvfree) for cleanup, and only copies back once a valid record is found.
>
> Thanks for your review.
>
> Li Chen (3):
> dm-pcache: allow built-in build and rename flush helper
> dm-pcache: reuse meta_addr in pcache_meta_find_latest
> dm-pcache: avoid leaking invalid metadata in pcache_meta_find_latest()
>
> drivers/md/dm-pcache/Makefile | 2 +-
> drivers/md/dm-pcache/cache.c | 2 +-
> drivers/md/dm-pcache/cache.h | 2 +-
> drivers/md/dm-pcache/cache_req.c | 6 +++---
> drivers/md/dm-pcache/pcache_internal.h | 15 ++++++++++-----
> 5 files changed, 16 insertions(+), 11 deletions(-)
>
> --
> 2.51.0
>
>
Regards,
Li
Powered by blists - more mailing lists