lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260206-vfs-fserror-v70-7d1adc65b98d@brauner>
Date: Fri,  6 Feb 2026 17:50:01 +0100
From: Christian Brauner <brauner@...nel.org>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Christian Brauner <brauner@...nel.org>,
	linux-fsdevel@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: [GIT PULL 05/12 for v7.0] vfs fserror

Hey Linus,

/* Summary */

This contains the changes to support generif I/O error reporting.

Filesystems currently have no standard mechanism for reporting metadata
corruption and file I/O errors to userspace via fsnotify. Each
filesystem (xfs, ext4, erofs, f2fs, etc.) privately defines
EFSCORRUPTED, and error reporting to fanotify is inconsistent or absent
entirely.

This series introduces a generic fserror infrastructure built around
struct super_block that gives filesystems a standard way to queue
metadata and file I/O error reports for delivery to fsnotify. Errors
are queued via mempools and queue_work to avoid holding filesystem locks
in the notification path; unmount waits for pending events to drain. A
new super_operations::report_error callback lets filesystem drivers
respond to file I/O errors themselves (to be used by an upcoming XFS
self-healing patchset).

On the uapi side, EFSCORRUPTED and EUCLEAN are promoted from private
per-filesystem definitions to canonical errno.h values across all
architectures.

/* Testing */

gcc (Debian 14.2.0-19) 14.2.0
Debian clang version 19.1.7 (3+b1)

No build failures or warnings were observed.

/* Conflicts */

Merge conflicts with mainline
=============================

No known conflicts.

Merge conflicts with other trees
================================

The following changes since commit 8f0b4cce4481fb22653697cced8d0d04027cb1e8:

  Linux 6.19-rc1 (2025-12-14 16:05:07 +1200)

are available in the Git repository at:

  git@...olite.kernel.org:pub/scm/linux/kernel/git/vfs/vfs tags/vfs-7.0-rc1.fserror

for you to fetch changes up to 347b7042fb26beaae1ea46d0f6c47251fb52985f:

  Merge patch series "fs: generic file IO error reporting" (2026-01-13 09:58:07 +0100)

----------------------------------------------------------------
vfs-7.0-rc1.fserror

Please consider pulling these changes from the signed vfs-7.0-rc1.fserror tag.

Thanks!
Christian

----------------------------------------------------------------
Christian Brauner (1):
      Merge patch series "fs: generic file IO error reporting"

Darrick J. Wong (6):
      uapi: promote EFSCORRUPTED and EUCLEAN to errno.h
      fs: report filesystem and file I/O errors to fsnotify
      iomap: report file I/O errors to the VFS
      xfs: report fs metadata errors via fsnotify
      xfs: translate fsdax media errors into file "data lost" errors when convenient
      ext4: convert to new fserror helpers

 arch/alpha/include/uapi/asm/errno.h        |   2 +
 arch/mips/include/uapi/asm/errno.h         |   2 +
 arch/parisc/include/uapi/asm/errno.h       |   2 +
 arch/sparc/include/uapi/asm/errno.h        |   2 +
 fs/Makefile                                |   2 +-
 fs/erofs/internal.h                        |   2 -
 fs/ext2/ext2.h                             |   1 -
 fs/ext4/ext4.h                             |   3 -
 fs/ext4/ioctl.c                            |   2 +
 fs/ext4/super.c                            |  13 +-
 fs/f2fs/f2fs.h                             |   3 -
 fs/fserror.c                               | 194 +++++++++++++++++++++++++++++
 fs/iomap/buffered-io.c                     |  23 +++-
 fs/iomap/direct-io.c                       |  12 ++
 fs/iomap/ioend.c                           |   6 +
 fs/minix/minix.h                           |   2 -
 fs/super.c                                 |   3 +
 fs/udf/udf_sb.h                            |   2 -
 fs/xfs/xfs_fsops.c                         |   4 +
 fs/xfs/xfs_health.c                        |  14 +++
 fs/xfs/xfs_linux.h                         |   2 -
 fs/xfs/xfs_notify_failure.c                |   4 +
 include/linux/fs/super_types.h             |   7 ++
 include/linux/fserror.h                    |  75 +++++++++++
 include/linux/jbd2.h                       |   3 -
 include/uapi/asm-generic/errno.h           |   2 +
 tools/arch/alpha/include/uapi/asm/errno.h  |   2 +
 tools/arch/mips/include/uapi/asm/errno.h   |   2 +
 tools/arch/parisc/include/uapi/asm/errno.h |   2 +
 tools/arch/sparc/include/uapi/asm/errno.h  |   2 +
 tools/include/uapi/asm-generic/errno.h     |   2 +
 31 files changed, 373 insertions(+), 24 deletions(-)
 create mode 100644 fs/fserror.c
 create mode 100644 include/linux/fserror.h

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ