Linux s390 Architecture development
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/3] btrfs: add error injection support for checksum verification
@ 2026-07-24  2:12 Song Chen
  2026-07-24  2:12 ` [RFC PATCH v2 1/3] error-injection: Introduce EI_ETYPE_FALSE for fail_function Song Chen
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Song Chen @ 2026-07-24  2:12 UTC (permalink / raw)
  To: arnd, kees, clm, dsterba, linux, catalin.marinas, will, guoren,
	kernel, maddy, mpe, npiggin, chleroy, pjw, palmer, aou, alex, gor,
	borntraeger, agordeev, svens, tglx, mingo, bp, dave.hansen, x86,
	hpa, jpoimboe
  Cc: linux-arm-kernel, linux-csky, loongarch, linuxppc-dev,
	linux-riscv, linux-s390, linux-arch, linux-kernel, Song Chen

This patchset adds fault injection support for btrfs_data_csum_ok,
enabling controlled simulation of checksum mismatches to test btrfs
silent data corruption detection and reporting paths.

The first patch extends the error injection framework with a new type,
EI_ETYPE_FALSE, which allows bool-returning functions to be overridden
with a false return value directly.

The second patch marks btrfs_data_csum_ok with ALLOW_ERROR_INJECTION
using this new type.

The third patch adds a parent field to fei_attr to allow fault injection
on a function only when called from a specific parent function. 

Song Chen (3):
  error-injection: Introduce EI_ETYPE_FALSE for fail_function
  btrfs: Allow error injection on btrfs_data_csum_ok
  error-injection: Introduce parent in fei_attr

 arch/arm/lib/error-inject.c           |  6 ++
 arch/arm64/lib/error-inject.c         |  6 ++
 arch/csky/lib/error-inject.c          |  6 ++
 arch/loongarch/lib/error-inject.c     |  6 ++
 arch/powerpc/lib/error-inject.c       |  6 ++
 arch/riscv/lib/error-inject.c         |  6 ++
 arch/s390/lib/error-inject.c          |  6 ++
 arch/x86/lib/error-inject.c           |  6 ++
 fs/btrfs/inode.c                      |  1 +
 include/asm-generic/error-injection.h |  6 ++
 kernel/fail_function.c                | 98 ++++++++++++++++++++++++++-
 11 files changed, 152 insertions(+), 1 deletion(-)

---
changelog:
v1 --- v2:
Add a parent field to struct fei_attr.

-- 
2.43.0


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

end of thread, other threads:[~2026-07-24  2:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-24  2:12 [RFC PATCH v2 0/3] btrfs: add error injection support for checksum verification Song Chen
2026-07-24  2:12 ` [RFC PATCH v2 1/3] error-injection: Introduce EI_ETYPE_FALSE for fail_function Song Chen
2026-07-24  2:20   ` sashiko-bot
2026-07-24  2:12 ` [RFC PATCH v2 2/3] btrfs: Allow error injection on btrfs_data_csum_ok Song Chen
2026-07-24  2:21   ` sashiko-bot
2026-07-24  2:12 ` [RFC PATCH v2 3/3] error-injection: Introduce parent in fei_attr Song Chen
2026-07-24  2:25   ` sashiko-bot

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